#ot1-perplexing-regexing

1 messages · Page 638 of 1

drowsy pumice
#

also

#

their trait bullshit too

#

their book is absolutely garbage and fragmented

distant hazel
#

ahahaha

rough sapphire
#

it was disappointment

#

:'/

small coral
#

you can do this ```rust
let i: u32 = 0
'a: loop {
'b: loop {
// ...
break 'a;
}
// shouldn't increment i if 'a is broken
i += 1;
}

rough sapphire
#

i was excited about it

#

:'/

small coral
drowsy pumice
#

same amount of lines and in a understandable format

small coral
edgy pelican
#

doesn't rust have some funky let thing to avoid nested loops

small coral
# drowsy pumice same amount of lines and in a understandable format

??? ```py

"""let i: u32 = 0
... 'a: loop {
... 'b: loop {
... // ...
... break 'a;
... }
... // shouldn't increment i if 'a is broken
... i += 1;
... }""".count('\n')
8
"""i = 0
... while True:
... break_a = False
... while True:
... # ...
... break_a = True
... break
... if break_a:
... break
... # shouldn't increment i if this loop is broken
... i += 1""".count('\n')
10

drowsy pumice
#

close enough

small coral
#

you may have to backtrack to see what break_name is when you have nested loops with big blocks

drowsy pumice
#

Rust is just CoffeeScript on drugs (and compiled)

small coral
#

coffeescript doesn't even look like the majority of rust code??

#

also full of lambdas wtf

drowsy pumice
#

coffeescript also has weird syntax like rust

small coral
#

why is coffeescript full of arrow syntax stuff

tardy rain
#

What about arrow functions

#

Theyre not that bad

small coral
#

i don't have any problem if they're not used too much

floral apex
low chasm
#

In rust?

#

_ is the catchall, not just got errors

pastel prism
#

If we say check if a number is within plus or minus 10% of another number what does it mean?

rough sapphire
#

Hmm, I think it's slightly vague, but it's something like "n is 20; m is 2, which is 10% of n; this number i is somewhere between 18 and 22, inclusive"

onyx mist
#

match and case is sexyyyy

jovial oriole
#

what version is this?

small coral
#

i'm pretty sure you've been here for a month now so shouldn't you have noticed?

lunar widget
#

i see

wraith hound
#

It basically says "I'm going to provide a unified interface for X thing, and I'll also give some fancy good stuff to anything that wants this unified interface"

wraith hound
#

I've heard many many people, even Rust haters, say that The Book is very good

civic stag
wraith hound
#

exactly

#

The idea originated from Haskell's typeclasses

civic stag
#

Yeah Haskell's type classes are amazing

wraith hound
#

type classes are exactly what traits are

civic stag
#

In Haskell there are instance rules that say, you know, Show a => Show [a] (if you can display some type a, you can also display a list of a automatically)

#

Do Protocols have this kind of inference system?

#

I haven't used them much

wraith hound
civic stag
#

It can get pretty crazy

#

To the point of allowing some very cool type level programming

wraith hound
royal lakeBOT
#

library/alloc/src/vec/mod.rs lines 2894 to 2899

#[stable(feature = "rust1", since = "1.0.0")]
impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        fmt::Debug::fmt(&**self, f)
    }
}```
wraith hound
#

It basically means: for any vector of type T that implements Debug, then implement Debug for the Vec<T>

civic stag
#

Ah neat

jovial oriole
#

!user

royal lakeBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

jovial oriole
#

around 8 months ago

#

i've seen it in rust sure, but not in python

#

might be because im running an older build, i'd have to check

drowsy pumice
floral apex
#

I've came from Python with a dash of Typescript and Dart

#

It's a good book

drowsy pumice
#

Dart is c-like, your point is invalid.

floral apex
#

You're only disproving nothing from that. Dart's more akin to JavaScript + Java and less C

#

There's also Typescript and Python. I did Python first and honestly, I'm more familiar with Typescript than Dart

#

Dart however was easy to pick up given it's description of being "a hybrid of JavaScript and Java"

drowsy pumice
#

Imo, Rust is very overwhelming

floral apex
#

I mean, it's a lower level language just like C++

drowsy pumice
#

I guess but rather than taking my opinion as fact take it as entertainment since I don't have enough experience with lower level languages to argue with someone

floral apex
#

Well, I'd expect all of them to be overwhelming in their own ways

#

Like how in C, memory management is absolutely onto you

drowsy pumice
#

I find C to be much easier to work with

floral apex
#

There's no reference counter or garbage collector to help you out

drowsy pumice
#

It's not "screaming" in your face

#

It is less overwhelming

floral apex
#

I mean, I'd rather have a pedantic compiler than a compiler that gives no shit in what you're doing

#

Because I'd know in the long term that'll bite in the ass

#

imo, it'd be more overwhelming to deal with C's lack of hand holding

drowsy pumice
#

Rust holds your hand too much

floral apex
#

Aren't all high level languages like that too

#

You have hand holding in the form of garbage collection, objects, classes, reference counting, etc.

#

And with C++, similar case there too

drowsy pumice
#

C++ is for maniacs

#

I can't bear working with rust

#

I open a project

#

start writing

#

then quit in about 60 seconds

#

I wanted to try using Rust for a simple downloader

#

the other day

#

It was 70% done but I just dropped the project

floral apex
#

Hm, maybe you'll like Google's languages

#

Go or Dart

floral apex
#

Go is designed by the people who made C

drowsy pumice
#

Go is for concurrency

#

not speed

floral apex
#

Speed is one of it's selling points

drowsy pumice
#

hmm

floral apex
#

Speed in the form of development time and runtime speed

#

The runtime speed coming from Go's supposedly blazing fast garbage collector

#

Development time coming from the fact you don't have to deal with C's manual memory management

tight granite
#

i hate tailwind elitists

wraith hound
#

Which is fair enough

floral apex
tight granite
#

Nevermind i forgot it had @apply

#

I love tailwind

#

I take my statement back

limpid gazelle
#

UORFDSHJK

#

MINECRAFT JAVA WORKS ON 10??

tardy agate
#

yes

#

it does

floral apex
#

Yes

limpid gazelle
#

bruhhh

#

thats the only reason i updated

tardy agate
#

the rights to minecraft are owned by microsoft

limpid gazelle
#

it didnt work on 10 for me

twin hearth
#

whats the diff between java 8 and 17

floral apex
#

Microsoft would definitely be interested in making sure their games run at least on Windows and Xbox

tardy agate
twin hearth
#

react native depends on java 8, seems like minecraft also depended on java 8

tardy agate
#

java 18 is the current version

twin hearth
#

whats "new" java

tardy agate
limpid gazelle
tardy agate
twin hearth
#

is it any good?

floral apex
tardy agate
limpid gazelle
#

nooooooooooooooooooo

tardy agate
#

because its java

limpid gazelle
#

bruh

twin hearth
#

lol

#

i think i like java?

limpid gazelle
#

i had no reason to update then

wraith hound
#

Why wouldn't it support Win10, it was one of the biggest operating systems for a fairly long time.

tardy agate
#

cooler

#

lighter weight

floral apex
#

Linux is nice but not what I'm looking for

twin hearth
#

yeah especially since microsoft owns minecraft lmao

tardy agate
#

and the 2018 version

floral apex
#

Just needed to target Windows, Android and Linux

#

And Windows provides the most convenient way to do that

tardy agate
#

whats sad is nobody develops for unix 2018 anymore

#

except for me

limpid gazelle
#

damn

twin hearth
#

whats the relationship between unix and windows

tardy agate
#

bad

#

unix essentially spawned off every enemy of windows

floral apex
twin hearth
#

also what is unix

#

is it a kernel?

tardy agate
#

Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.Initially intended for use inside the Bell System, AT&T licensed Unix to outside parties in the late...

twin hearth
#

bro whys it still relevant

tardy agate
#

because its the basis of macos and linux

floral apex
#

Existing systems

#

Like those that run on HP UX, IBM AIX and Solaris

tardy agate
#

ah yes ibm

twin hearth
#

okay, i always thought that unix -> windows but really its unix -> linux

floral apex
#

IBM also helped to spawn Windows

tardy agate
#

ibm creates basically the only computers used for servers

#

and owns redhat so they can get more money from servers

floral apex
#

They own a Linux distro, a Unix OS and a completely custom OS

#

At one point a desktop OS in collaboration with Microsoft, OS/2

tardy agate
#

what

#

bro ups british columbia the army of great britian bmw microsoft the damn deutsche bank all use redhat

#

WHY DOES AN ARMY USE REDHAT

#

not even microsoft uses windows server

floral apex
tardy agate
#

what

#

microsoft linux

floral apex
#

Yes, Microsoft has their own Linux distro

tardy agate
#

redhat based microsoft linux

floral apex
#

That only uses Red Hat's package format

tardy agate
#

where

#

where do i download this

floral apex
tardy agate
#

they made a distro in go

#

microsoft made a linux distro in go

twin hearth
#

heh?

tardy agate
#

just found the source

twin hearth
#

send bro

tardy agate
floral apex
#

It's pretty barebones though

#

And used internally in Azure

rough sapphire
#

@tardy agate do you know Ruby programming language?

twin hearth
#

ruby looks like its ruby to python as cpp is to c

rough sapphire
#

huh

twin hearth
#

oh wait, nah i said that wrong

#

ruby is to python as cpp is to c

rough sapphire
#

i still don't agree with analogy

#

but at least it's properly formed

twin hearth
#

lol

#

ruby code looks more inolved than python but i've never written more than hello world in ruby

rough sapphire
#

same

#

but i find ruby's backticks REALLY appealing

#

👌

twin hearth
#

what's that

graceful basin
#

Ruby does have fewer leaky abstractions than python in my fairly limited experience. It is quite a clever language, and rails is excellent, but not really worthwhile in the microservice era

rough sapphire
#

you can run shell commands with backticks

#

so in

`cd MyFolder`
graceful basin
#

raku has qx{echo hi}

twin hearth
#

oh no way

rough sapphire
#

yea

#

ikr?

twin hearth
#

straight up in the language? just write shell code?

rough sapphire
#

in the language

twin hearth
#

thats mad

rough sapphire
#

awesome right??

graceful basin
#

not sure cd would work tbh, it may run in a subshell make style

#

but yeah, it is neat

#

especially for scripting

#

how did python manage to be popular for scripting with its popen I will never understand

acoustic moss
#

exclusively for scripting 🤔

rough sapphire
twin hearth
#

python's not for scripting

#

perl is for scripting, python is something else

graceful basin
#

it is very popular for scripting

#

definitely more so than perl

#

I know very few people who voluntarily use perl

twin hearth
#

i have no clue what scripting even is, how does it differe from jsut code

rough sapphire
#

python is common for scripting, even though it's pretty terrible for scripting..

rough sapphire
#

it's nothing formal

twin hearth
#

i hate it when ppl call something a "script"

graceful basin
#

keep in mind that perl was beaten by PHP for web backends.

#

PHP

twin hearth
#

but perl is still used though

graceful basin
#

indeed it is

rough sapphire
#

unfortunately yea

graceful basin
#

it is not a bad scripting language

#

python is just better

twin hearth
#

its niche, and no where near mine

rough sapphire
#

put perl also has backtick for shell commands

twin hearth
#

it has built in regex

rough sapphire
#

so does JS

graceful basin
#

so does python and javascript

rough sapphire
#

and C#

twin hearth
#

but perl is old

rough sapphire
#

well

#

yes

twin hearth
#

also zuccy used it for facemash

#

:p enough ethos for perl scripting xD

#

wait is scripting like automation code?

graceful basin
#

for example

twin hearth
#

like would a scraping algo be called a script?

graceful basin
#

often yes

#

it's just stuff you don't want to create a full program with config files and such for

#

a very single purpose thing designed to be adapted by changing the source code rather than by configuring it

twin hearth
#

and it doesnt require use input right?

#

its designed just to run and produce results

graceful basin
#

sometimes scripts do

#

it isn't exact or anything

rough sapphire
#

i'd say it's extremely bad practice to put STDIO requirement in scripts

#

defeats the purpose

#

it's better to use env vars for example

graceful basin
#

it depends, there are some scripts that munge data from stdin and put it on stdout

twin hearth
#

i always try to impliment some sort of interactivity into my "scripts"

graceful basin
#

which honestly is way less common than unix zealots would have you belive

twin hearth
#

they start out as scripts but then i imagine that scripts can use some more customisation

rough sapphire
#

customize with env vars, it's easier to script

graceful basin
#

indeed

rough sapphire
#

or simply positional args

twin hearth
#

i dont understand the correllation between env vars and scripts

rough sapphire
#

$1 $2 is trivial to write

#

okay, so we have trivial script

#

and you want the user to specify a URL for example

#

all they do is specify the env var

#

and your script will act accordingly

#

this way scripts don't need to pause

#

they just work

#

but are still customizable

#

or, you can have positional args

twin hearth
#

i see

#

i'm just not very used to using virtual envs and i dont mess around with env vars for my os

#

i suppose i should try to more often

rough sapphire
#

virtual envs have nothing to do with it

twin hearth
#

nah i get your point

rough sapphire
#

windows has tons of env vars, as you can see

#

some may be powershell specific env vars, but you get the point

#

if you had to list 3 most widely adopted shells on linux, what would they be?

#

surely Bash and Zsh? but idk 3rd, or fourth

graceful basin
#

dash has been gaining popularity with some distros. Maybe fish or ksh as well

rough sapphire
#

dash is pretty fast

steel trail
#

hi im new and i don

#

don't know much abt python so is it ok if i stay in this group?

tardy rain
#

Yes?

steel trail
#

ok thanks

tardy rain
#

You should learn some python anyway tho

#

Its cool

steel trail
#

ok but idk where to start of with

tardy rain
#

!resources take your time to look through these

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

steel trail
#

ok thanks will look into it

twin hearth
tardy agate
#

yes they have no fur

agile dove
#

Damn. Dont real ponies have fur tho

tardy agate
#

yeah but

#

real ponies dont have wings

#

or magic

#

or horns

agile dove
#

Ofc lol.

#

Hmm.

#

That's a bit strange but then again not really. People have different things they like and stuff.

#

(again, no offense)

tardy agate
agile dove
#

Sorry

#

I didn't mean to offend you

tardy agate
#

its ok

#

also i would like to ask that you ping me when responding because it helps me not take 14 minutes to respond

craggy crypt
#

make snake in snake 💀

twin hearth
#

@sterile sapphire i just finished season 3 of 13 reasons. its was so dumb

#

i was like, tf are they trying to teach to the audience, what kind of message is being taught, that we shouldnt ever let anything move on or heal? and that we should become worse and act out? like season one was good and tense but after that it jsut became so stupid

foggy barn
#

joined a discord server

#

instantly moderator

#

go on a moderator power spree

#

get banned

#

why are discord moderators like this

twin hearth
#

i got banned cos a mod didnt like me

rough sapphire
#

when i was younger, i was moderating a large game clan's discord server (1000+ people) and i didn't ban a single person as far as i know

#

idk why people have this obsession with banning

twin hearth
rough sapphire
#

that's pretty sad though

twin hearth
#

yeah, well broadband, screens and keyboards have made it quite easy to play god

rough sapphire
#

unfortunate

#

but true

#

well, more accurately: get a SENSE of playing god

dapper dew
#

Maybe I'm biased but I don't see our mods power tripping

twin hearth
#

thats because the python server is an prime example for the best of the best discord has to offer

#

i've yet to find a better server

dapper dew
#

The Rust lang server is pretty chill

rough sapphire
#

i didn't say anything about pydis mods, i don't know why you're assuming that was my aim? pithink

twin hearth
#

i mean I said discord mods, i mean the stereotypical power trippin mods

#

altough i've seen mods just outright ban people in this server

dapper dew
#

I assumed it was a generalized statement for all mods

rough sapphire
#

absolutely not

dapper dew
#

But I'm also not in many servers, so I haven't had the experience of getting banned

twin hearth
#

the programmers hangout server is a disgrace if im being honest

#

compared to the python server, the programmers hangout is lacking so many ethics

dapper dew
#

Interesting, I'm not sure if that makes me want to join or stay away lol

twin hearth
#

im not looking to slander other servers, but one time i got a notification from the server, the mods had "at all"'ed the whole server

rough sapphire
#

i'd like to see for myself, can you throw me invite link?

twin hearth
#

and then when asking why they do it, the mods and or participants started being highly corrosive on why i asked

rough sapphire
#

cba looking for it by myself

twin hearth
rough sapphire
#

what search

twin hearth
#

you can just search programmers hangout in the discord server search and itll be there

rough sapphire
#

got it

dapper dew
#

Did they remove that from Android? Or has it always been missing

twin hearth
#

my sister bought bubble gum, i nabbed some, im blowing the biggest bubbles istg

sterile sapphire
#

idek what to say to it

#

i’m not sure if i’m happy or upset about it

#

or what even

twin hearth
#

just stupid

#

first we see bryce as the worst human alive

#

and then we get so much sympathy for bryce in season 3

#

and then he gets killed callously.

#

its like tf is the plot

sterile sapphire
#

that’s what i’m saying

#

it’s so twisted, events are out of order inexplicably

#

it’s almost deliberately intended

#

psychologically the frameworks of the characters seem to form some kind of graph

#

where they replace each other as terrible people

#

yet it’s completely jumbled

#

and the last season is legit a horror show

twin hearth
#

i didnt bother watching season 4, netflix told me it was the same psychological turmoil bullshit from the previous 3 seasons

sterile sapphire
#

it’s awful

#

this isn’t psychology bro this is pop psych

#

😭😭😭

#

schizophrenia doesn’t magically go away w no drugs

twin hearth
#

nah i was refering to whatever they pass off as "psychology"

sterile sapphire
#

ik fam

#

total agreement

#

clay isn’t schizophrenic he’s just a horny idiot

#

😭😭😭

twin hearth
#

at least euphoria was somewhat relevant for the teens in this day and age

#

tbh thats not fair, 13 reasons why is quite old also

sterile sapphire
#

which is precisely why i said 13 rw walked so euphoria could run

#

nate jacobs is bryce tenfold

#

what’s hidden between the lines in bryce’s life

#

is nate

twin hearth
#

nate is fucked bro

sterile sapphire
#

i unfortunately understand nate

#

and i feel bad for him

twin hearth
#

that scene when he arrives home and his dad like mounts him cos of an argument

sterile sapphire
#

i feel so awful

#

stop please

twin hearth
#

that scene got fucked up

sterile sapphire
#

please stop it

#

stop it

#

i can’t i’m gonna cry

#

my dad did that shit to me so many times

twin hearth
#

mb fam

sterile sapphire
#

it’s fucked up man

twin hearth
#

moving on

sterile sapphire
#

nah

#

it ain’t your fault

#

honestly idk what’s wrong w this generation anymore

twin hearth
#

im glad im in the cut off, i wouldnt have survived this fucked up gen

sterile sapphire
#

the more i learn the more confused i am

#

you have it easier than me bro

#

idk what to do anymore

twin hearth
#

feel sorry for my parents they have to deal with my sister growing up in this world

sterile sapphire
#

fuck man

#

i have two cousins

#

in

#

TEXAS

#

and an unc

#

wtf am i supposed to do???

twin hearth
#

uncs can be okay?

#

maybe?

sterile sapphire
#

nah bro

#

he gone

twin hearth
#

one of those uncs

sterile sapphire
#

mentally he robotic

#

yep

twin hearth
#

tbh this sounds kinda messed, but i just block it out tbh, not my problem

sterile sapphire
#

yeah same bro

#

gotta filter out the shit

twin hearth
#

if it was personally happening to me

sterile sapphire
#

to get to the gold

twin hearth
#

cos my shit matters as well

sterile sapphire
#

fax

#

i’m coping well tho

#

i would say

twin hearth
#

like i could spend energy worrying about my sisters future, my brothers, mums or dads future, but i cant waste emotional energy on that

sterile sapphire
#

exactly

#

it’s their life

twin hearth
#

we just got get by man

sterile sapphire
#

it is what it is

#

what can’t stop

#

is our biz.

#

you can guide a camel to water

#

can’t force it to drink

twin hearth
#

the worst part is, parents cant and wont understand, thier life was some what comparably easy.

sterile sapphire
#

always is

#

unless they’re in touch

#

and actually try

#

even then

twin hearth
#

but whatevs man, just solid whatevs, gotta move on and keep goign

sterile sapphire
#

exactly

#

the mental strength they’ve given me

#

like honestly thank you

#

😭

twin hearth
#

that i can agree, if they've taught me anything, is how to deal with shit times.

#

which im hella thankful for

sterile sapphire
#

hella grateful bro

twin hearth
sterile sapphire
#

fuck silver spoons

#

we make diamonds

hidden pebble
#

what are these buttons called?

#

BooleanButtons?

carmine apex
hidden pebble
#

oh ok thanks

rough sapphire
tight granite
#

tired of these people using "educational purposes" as an excuse

floral apex
tight granite
#

ikr

barren sedge
#

Helipop

gritty zinc
steel trail
#

hi i have a question what's a comment in python?

rough sapphire
#

non-executable line

steel trail
#

oh so it's a line which won't be executed meaning it won't be printed in the output?

rough sapphire
#

I don't know

steel trail
#

like will it be in the output?

rough sapphire
#

maybe there is a way I don't know

steel trail
#

k thx

rough sapphire
#

what the interpreter will do

gritty zinc
#

there's plenty of lines that won't result in any printing without being comments.

x = 1
#

a comment also doesn't have to be a full line

x = 10 # assign x to 10 (this is a very useless comment, don't leave ones like this - comment on stuff that's actually complicated)
steel trail
#

ohhhh ok thx

rough sapphire
#

there is a way to acess the part of the code that do that

#

?

steel trail
#

what's a space character then?

gritty zinc
#

uhh, ?

runic wigeon
#

Those are called toggle/ switches

steel trail
runic wigeon
#

Whitespace

#

It's just literally a space

#

Like the space between the words

steel trail
#

oh ok

rough sapphire
#

its not like a invisible character?

steel trail
#

then why did this yt guy use a space character here?

#

first name = "bro"

#

full_name = + "-----"+ last_name

#

last_name = "code"

#

the yt vi guy wrote this code but idk why he used this "-----" (a space character)

gritty zinc
#

that's literally just a string literal of 5 dashes; it means exactly what it looks like

#

I can hardly have an idea why some youtuber called it something. :p

steel trail
#

so do i rlly even need to add this "-----" to the input to get the out put as bro code?

tight granite
#

anyone know of any fun little web app ideas

floral apex
#

Like a web app you can make some random tunes in

#

Not necessarily a DAW but you can do that too if you like

steel trail
#

hi idk why this ain't working (i just started so i'm not familiar with python)

#

print("i love burgers")
print("it's better than pizza")
first_name = hello
last_name = people
print("first_name + last_name")

#

print("i love burgers")
print("it's better than pizza") this part as in the output but the other's aren't in the output

rough sapphire
#

it works like this?

rough sapphire
steel trail
#

but the part i don't get is why you put this print(f"(first_name) (last_name)

#

why do you need to add a f before the first_name?

floral apex
#

!e

first_name = "John"
last_name = "Doe"
print(f"{first_name} {last_name}")
royal lakeBOT
#

@floral apex :white_check_mark: Your eval job has completed with return code 0.

John Doe
steel trail
#

and your supposed to add a + right when it combines those two variables the first and last name?

floral apex
#

With f-strings that's unnecessary, and it won't even yield the expected result

#

!e

first_name = "John"
last_name = "Doe"
print(f"{first_name} + {last_name}")
print("Not what you're expecting")
royal lakeBOT
#

@floral apex :white_check_mark: Your eval job has completed with return code 0.

001 | John + Doe
002 | Not what you're expecting
floral apex
#

Well, I've already shown you what an f-string is. It's a formatted string

steel trail
#

ik what a string is but idk what a f-string is

floral apex
#

It's a lot easier to work with than print("My name is" + first_name + last_name)

#

You can simplify that to print(f"My name is {first_name} {last_name}")

rough sapphire
steel trail
#

ohhhh ok thx

wraith hound
royal lakeBOT
#

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.

rough sapphire
#

anyone want to help me do scripting for a new game on roblox-

#

Reply me if you do

steel trail
rough sapphire
#

I don't intend to start a flaming war, I don't want this to begin a discussion, I'm just asking for any radically left aligned resources or youtube creators that that I should look at, in order to get a good/positive opinion on the radical left. I think it's important to look at both sides, and I think i'm being shown too much conservative content. If you have any serious content, @ me

Thank in advance to everyone 👍

twin hearth
#

@rough sapphire https://www.youtube.com/watch?v=VspjfNMPHyc the conservative right and thier corrosive beliefs really make us leftists look good

Thanks to Skillshare for sponsoring this video! The first 1000 people to use this link will get a 2 month free trial of Skillshare Premium Membership: https://skl.sh/jubilee5

Follow us on INSTAGRAM: 👉https://www.instagram.com/jubileemedia/ 👈
Evan: https://www.instagram.com/evansigel/
Michael: https://www.instagram.com/michaeldonte_/

SUBSCRIBE ...

▶ Play video
#

tbh me as a 18 year old, i've discovered my morals and where i stand on the spectrum, also being an australian, i've come to acknowledge the righteous left as my ideology.

#

but im 18 so i cant write in stone where i stand

soft violet
#

Well, you can write it on paper, soon.

#

Two colours of paper, at that.

#

Par-tay.

soft violet
#

All you need is a stone and another stone and a bit of grunt.

#

Or, more ideally, a hammer, chisel and some safety goggles.

#

You'll be complaining about substandard copper in no time.

#

Though that was probably pressed clay or something.

twin hearth
#

i mean either way its impressive

#

but i'll appreciate one over the other

soft violet
#

Not mockery. I wouldn't dare to call myself a history buff, by any stretch.

twin hearth
#

yeah but that was a really cool tidbit

soft violet
#

It's gratifying to have one's references appreciated.

twin hearth
soft violet
#

Much is possible.

thin cloak
rough sapphire
#

yoo

#

i made some pic with a message in it 😎

tardy rain
heady sinew
#

could anyone by any chance know where I can find the minigame (alone) that looks like this?

graceful basin
#

@ashen emberhello, please do not advertise.

zealous comet
#

my mom just messed up quite
we are going on holiday to turkey but because she didn't read read did she pick one 3 times filled everything in we cancelled them (was free no issue there) but now we are planning to get the correct one and it is €200 more expensive probably because some bot realised that we really wanted that holiday so it is a real pain

zealous comet
#

it is but it is quite a waste

#

for me it would be the first time going to turkey

#

well that is a issue in any place where there is a lot of tourism

#

well me and my family aren't a fan of buying stuff from those people on the streets

#

we also dont really buy stuff if they disturb us when we are on the beach

zealous comet
#

now i'm wondering if a bot or something like that can do the price up would it also be able to get the price down so it would be close to 0

#

if it can it would be worth trying it and after that reporting it

clear plume
#

It's literally a bait question

rough sapphire
#

I was also deceived by youtube and I will abandon it for good, unfortunately I still go there to listen to music

mild abyss
#

but if you are talking about the algo that lets you see ridiculous idiotic videos, then i guess that's youtube's fault

rough sapphire
ashen ember
rough sapphire
#

and if asking for information from people with different values/way of thought is "bait", then you might have the wrong mindset on what being informed is

tardy rain
#

I also wanna know why its bait tbh

rough sapphire
#

I'm giving this computer to not self taugh dude

floral apex
tight granite
#

is it just me or

raven narwhal
#

can i ask something?

#

why are there 3 channels under off topic?

floral apex
tight granite
#

because if there are only one off topic, chaos ensues

raven narwhal
#

hmmmm ok

hearty linden
#

I just finished writing support for indentation syntax for a lot of languages.
My program is like 50 lines. It makes stuff like this possible:

#include <stdio.h>
int main(): // {
    if (1): // {
        puts("Hello World!");
// }}

Thoughts?

#

The comments are here just to show you equivalent code.

#

They are meaningless.

tight granite
#

this is cursed

#

it's literally CPython

small coral
tight granite
#

no

#

maybe

#

probably

#

yes

small coral
#

there's already cython for that but that looks like indent-based C with colons

hearty linden
#

it doesn’t only work C

#
// this is rust
fn main(): // {
    if true: // {
        println!("Hello World!");
// }}
#

And ruby:

for i in 0..10 do
    puts "#{i}"
# end
#

So it's very different to Cython

rough sapphire
plush bolt
#

what about js bro

hearty linden
hearty linden
floral apex
plush bolt
#

bro this is so cool

#

because i love the indent syntax

hearty linden
#

do u think it’s possibly problematic?
because it was extremely easy to make and i havent seen it before

plush bolt
#

btw how do i use it?

plush bolt
hearty linden
plush bolt
#

alright cool

hearty linden
#

the main problem I can see is tooling

#

linters will scream at you

plush bolt
#

yep definitely

tight granite
#

yo can you like

#

remove semicolon

#

atleast make it optional

viscid hemlock
hearty linden
viscid hemlock
#

Ah I didn't register that without the syntax highlighting

hearty linden
whole jewel
#

Bluehost or DigitalOcean for a wordpress website

wraith hound
hearty linden
wraith hound
#

oh sorry, I thought you had mentioned that was some weird rust-cross

hearty linden
#

nah, yeaah I had examples all over the place so it’s fair enough

sour leaf
#

Hi, can anyone point me towards some exercises (simple please as I am a beginner) to really grasp how to best use/manipulate the different types of variable (eg lists, tuples, dictionaries, arrays, etc.). Cheers

karmic gust
#

there are some resources in the pins there

raven narwhal
#

what are the minimum hardware requirements for machine learning?

#

👹

bitter tendon
#

hi

deep cedar
#

hey

deep cedar
bitter tendon
deep cedar
#

Just had an amazing desi breakfast

#

It's Eid here at my country

#

3rd day

bitter tendon
deep cedar
bitter tendon
deep cedar
#

And surprisingly, I live 15 KMs from the border

bitter tendon
#

i have never seen anyone from pak on discord :DD

bitter tendon
deep cedar
#

Lol I am a Mod in Lex Friedman's server

deep cedar
bitter tendon
deep cedar
#

There are many of us on discord

#

Mostly on gaming servers

bitter tendon
deep cedar
bitter tendon
deep cedar
#

Cool, sounds good

bitter tendon
deep cedar
#

Last night my I broke my whatever was holding me

bitter tendon
deep cedar
#

Yeah it feels nice

bitter tendon
deep cedar
#

I am gaining confidence to talk about Python because I thought I am an imposter and don't actually know anything

bitter tendon
deep cedar
#

Nah I am okay, I am training again after 4 years at work because I took a management role. I did some deep learning stuff in 2020 with some folks from Lex's server

bitter tendon
#

||
bear with me using repetitive alphabets ||

deep cedar
bitter tendon
deep cedar
bitter tendon
deep cedar
bitter tendon
deep cedar
#

After 2 years

bitter tendon
deep cedar
deep cedar
#

And I live right next to Wagha Border

#

Like close

bitter tendon
deep cedar
bitter tendon
bitter tendon
deep cedar
#

yeah, I have never been there

deep cedar
bitter tendon
deep cedar
bitter tendon
fiery quest
#

hey guys im new to python could anyone teach me plz dm me

deep cedar
bitter tendon
fiery quest
bitter tendon
deep cedar
bitter tendon
deep cedar
#

I think that's what that is here

#

I just had that in breakfast

bitter tendon
bitter tendon
deep cedar
bitter tendon
deep cedar
#

But it's worth it

#

So what brings you here in the land of Pythonistas?

bitter tendon
bitter tendon
#

xD

deep cedar
#

How is that going so far?

bitter tendon
#

*now

#

just completed the project i started that day

sour leaf
hidden pebble
#

State management is confusing 💀

rocky swallow
deep cedar
rugged anchor
torn holly
#

Is any one in here really good at college physics 2

civic stag
#

I might remember some of that haha

torn holly
#

If I showed you a solved problem could you see if it was wrong

civic stag
#

I don't know unless you try haha

drowsy rose
#

i hope eivl will give me some ram from his ram garden

#

my ram garden isn't great

tight granite
#

i hate this

#

});

#

that thing

#

in javascript

#

it keeps haunting me

floral apex
tight granite
#

i dont care !! ! ! !

#

it is part of my callback nightmares

thin cloak
rough sapphire
#

3 eletromagnetism

thin cloak
drowsy rose
#

im confosed

thin cloak
#

I gave in and wrote a project maybe having 15k lines of Python...one file almost 10k lines

#

See lmao

wraith hound
#

you seem like the type of person to draw fancy graphs in comments

thin cloak
#

No graphs there you can check lmao

floral apex
rough sapphire
#

ello

#

i am new

#

here

#

nice to meet u

wraith hound
#

that is still insanely long

thin cloak
floral apex
wraith hound
#

hmm, there are 2,790 more lines of non-blank, non-comment code in C than Python in python/cpython

floral apex
wraith hound
#

I don't know what you're looking at

floral apex
#

My entire Code folder

wraith hound
# floral apex Hm

I highly suggest aliasing tokei to tokei -n commas -s code or tokei -n commas -s lines

floral apex
#

lines since VS Code already takes code

wraith hound
#

no that's not what I mean

#

-n commas -s code are arguments to tokei

floral apex
#

Oh wait, I read it again

uneven oak
#

Whoever recognizes this guy is a true hackerman from the future

#

I just realized I couldn’t take a screenshot worse than this lmao

rough sapphire
#

@sleek yarrow

sleek yarrow
#

Click on settings on bottom left

uneven oak
rough sapphire
#

then

sleek yarrow
sleek yarrow
#

THen click Colour Theme

rough sapphire
#

then

sleek yarrow
#

WOW I MUST SAY YOU CODE ALOT

rough sapphire
#

..

sleek yarrow
#

Then select whatever you want

rough sapphire
#

bro

#

i selected peacock

#

but no colors ;-;

sleek yarrow
#

Look at the blue and red and green

#

So many colours

uneven oak
sleek yarrow
#

Peacock

uneven oak
#

Is it possible for me to pin it here

#

?

sleek yarrow
#

No

uneven oak
#

Damn

#

Then imma just screenshot it.

sleek yarrow
#

Only people with roles

#

Just click on that link

#

It'll take you there

uneven oak
#

I’m not near a pc

sleek yarrow
#

Rainglow isn't one theme by the way, it is a collection of them

craggy crypt
uneven oak
#

K

sleek yarrow
#

Oh okay

rough sapphire
wraith hound
median domeBOT
#
I can't believe you've done this

@sleek yarrow, please enable your DMs to receive the bookmark.

sleek yarrow
rough sapphire
#

lol

rough sapphire
sleek yarrow
#

White will always be there

#

Anywhere

craggy crypt
sleek yarrow
#

Rainglow

#

Under that Peacock

rough sapphire
uneven oak
#

Made this website for me to learn JavaScript on. It has a lot of reminders and little explanations for me if I forget along with the link if I need a reread. What do y’all think?

craggy crypt
#

its normal

rough sapphire
#

ye

#

see

#

white

sleek yarrow
#

White is always there

craggy crypt
#

what color do u want it to be xD

rough sapphire
uneven oak
#

Thanks!

rough sapphire
#

see those colors

#

@sleek yarrow@craggy crypt

uneven oak
#

I don’t know why but this part reminds me of the windows XP taskbar for some reason

plush bolt
rough sapphire
#

..

craggy crypt
# rough sapphire see those colors

went through like 50 themes and the ones which didn't have a lot of white was material dark (this has multiple themes) and atom one dark

uneven oak
#

I think I should try do a Skeumorphic UI for something.

plush bolt
uneven oak
#

Man I miss skeuomorphic stuff 😦

plush bolt
rough sapphire
#

ok.

plush bolt
#

bro you should follow pep8

craggy crypt
plush bolt
rough sapphire
#

lmao

plush bolt
#

lol

craggy crypt
#

pycharm is great, if copy bad code, as soon as i paste it it formats it

rough sapphire
#

then use pycharm for formatting then copy paste back to vsc

craggy crypt
#

i dont use vsc

rough sapphire
#

..

#

why

#

oh ye

#

maybe there is a different ide

#

xD

craggy crypt
#

um no

plush bolt
#

pycharm just annoys me if i have my code not formatted

#

and it forces me to follow pep8 lol

craggy crypt
#

i just use pycharm, i only know python so its fine

plush bolt
#

same

#

it's so good

craggy crypt
rough sapphire
#

i have pycharm tho

craggy crypt
#

i can't tell u the details, because i dont remember them, my hands do

plush bolt
#

imo

#

but your choice

rough sapphire
#

im opening it after a while

craggy crypt
#

i also pycharm cuz while writing regex, it tells me what group doesn't capture anything

rough sapphire
plush bolt
runic wigeon
#

how much RAM does eivl have?

craggy crypt
#

128tb 💀

craggy crypt
runic wigeon
plush bolt
#

no way

#

@everyone

jolly tinsel
#

The cheesegrater pro has 1.5 tb

#

but 128 tb?

#

Damn-

#

I wonder How fast does android studio start up?

craggy crypt
jolly tinsel
#

Cheesegrater distributed server system?

median yoke
#

Hello guys !

#

I want to buy a SATA SSD for my desctop.
I am looking at 870 EVO SATA 2.5" SSD 500GB,
but there is some places that says that the TBW(total bytes written, in terabytes) is 300*, some other places that they say it is 600 TBW², and there is some places that says that it is 2400 TBW.
I mean idk which one is the right one.

hexed sierra
#

if you scroll down, you see it tells you the TBW depend on the SSD capacity

#

2400 is for the 4TB SSD

#

it seems to be 300 for the 500 gig one

median yoke
#

isn't 300 too little ?

#

I mean it's too small right ?

hexed sierra
#

300 terabyte write? they give you a 5 year warranty for a reason

#

the average user is not expected to even get close to that

#

as an example, say you write 50 GB to your SSD every single day. your SSD is rated for 300 TBW, or 300,000 GB W. then we do 300,000/50 = 6000 days before you hit the cap

#

that comes out to a bit more than 16 years

#

so samsung gives you two numbers: either 5 years, or 300TBW. whatever you hit first ends your warranty. it is VERY likely that the 5 years will come around first. also the SSD will warn you once its health begins to decay

#

if this is for a file server that will see extensive usage from many users though, it indeed won't be enough. that's what enterprise-grade storage is for

median yoke
#

and btw is this SSD good ?

hexed sierra
#

yeah, samsung SSDs are good

median yoke
median yoke
#

and yeah one last thing

#

my cpu is 4th gen

#

i5

#

and my motherboard is MSI

#

msi h81m-p33

#

i5 4460

hexed sierra
#

and there, the samsung 870 evo is listed (along with others). should be ok, i think. for more support, you should look for some pc hardware server though. i don't know any for desktops, but i'm sure they exist

lethal stump
#

Would you guys consider charging companies for using your package? If you could charge companies whilst otherwise keeping the code as open source as possible, would you?

graceful basin
#

while that is doable, it requires you to well, be a business providing said software as a product, and the expectation is then that the software has warranty and works as advertised

#

which is a much greater commitment than may seem at first

#

so while it's a fun idea, selling software is not as simple as "company paypals me 20 bucks and I DM them a license code on linkedin"

clear plume
#

Imagine if you had to attach a credit card to GitHub and it would be charged whenever you used someone else's open source code/product

soft violet
#

"But it was MIT..."

#

"Daddy github wants sugar!"

tardy rain
#

Consider making your package free and open source, that solves all problems

lethal stump
#

Warranties depend on the license. Charging doesn't automatically imply warranty does it?

graceful basin
lethal stump
#

Most people use software without warranty. Why wont they buy? That's just a price problem isn't it?

polar vigil
tardy rain
#

Companies arent most people

lethal stump
#

ok ok

#

most companies use software without warranty

graceful basin
#

they don't

tardy rain
#

No they dont

lethal stump
#

MIT licensed software is everywhere

graceful basin
#

short of open source software they can just maintain themselves, pretty much everything is warrantied

tardy rain
#

We check for licenses and warranties on installed software like twice a month

graceful basin
#

and even for FOSS software, you can often get a warranty from companies

#

E.G. RHEL, Oracle linux

lethal stump
#

I must be missing something: companies use loads of warrantless MIT licensed software don't they?

graceful basin
#

yes, because you can just maintain it inhouse

#

if it costs money, you can't do that

lethal stump
#

why not?

graceful basin
#

because if you could, why would you buy it

lethal stump
#

Perhaps you're buying the right to use and modify it

graceful basin
#

either its open source and so won't ever go unmaintained, or its commercial and the company wants a warranty so that they know that for X years, they will have working software

#

so you would sell the right to maintain an open source project

#

that seems like a bad deal tbh

lethal stump
#

nope sell the right to modify and use the software

#

not purely open source

#

if I sell you a book, would you want a warrant?

#

why can't I sell software like authors sell a book

graceful basin
#

you read a book once and are done with it

#

software stays forever-ish

lethal stump
#

I can read a book twice

graceful basin
#

if my product is using your library, it won't stop using it in a decade

#

so it would be bad if said library was no longer available

#

since that breaks my product

lethal stump
#

how does selling make something unavailable in the future?

graceful basin
#

you will go bankrupt eventually, or decide that maintaining a random package forever is not how you imagine your life going

#

so now, no more library

lethal stump
#

what if it becomes free after a certain date?

graceful basin
#

eh, sure, but can you make something compelling enough that a company would want to adopt it even given your disadvantageous terms

lethal stump
#

my current alternative is to give it away for free. So I wouldn't be too stressed if they don't pick up on it.

graceful basin
#

most commercial software you will find comes with support, warranty, training, workshops, etc.

lethal stump
#

Sure, but I want to sell my software at scale for $10.

graceful basin
#

I know some software which gets away with just being 10 bucks a license, no strings attached. But it's deeply unpopular and chances are you won't even make enough to get the price making an LLC to sell it out of cost

tardy rain
#

What kind of software is it

#

What does it do

lethal stump
#

I wander if I can convince loads of people to sell their software like that.

graceful basin
#

I remember a very fancy macro editor, a download manager, and I believe some teaching tool for programming in gamedev style

#

oh, and a vim tutorial

lethal stump
#

Better than getting nothing for it! And not-for-profit orgs wont be charged.

graceful basin
#

is it? You have to have a company, a product page, a way to accept payments, deal with the taxation business of it all, deal with customers, ...

lethal stump
#

I bet I could build a service which takes on that role.

#

I think everyone should charge for-profit companies for their code. It should be the standard.

tardy rain
#

Dont release it in a permissive license then

#

Or at all

graceful basin
#

I mean, charging companies for open source software is a moderately common business model

lethal stump
graceful basin
#

Qt, That One Cloud MSOffice Clone, RHEL come to mind

#

GPL was created for this reason

lethal stump
#

Yes, I'd like to see it reach the long tail of developers

honest star
#

Some people just want their code to be used by anyone though, including those companies for free

tardy rain
#

good luck i guess, i dont think you'll get far tbh

lethal stump
#

Thanks for the luck. I wander if the extra income could flatten the wealth gap a bit.

tardy rain
#

wealth gap between what

#

you think people maintaining/developing these packages are broke?

lethal stump
#

Between megacorps and the average joe

#

or third world developers

tardy rain
#

the average joe doesnt get to publish code that mega corps use