#ot2-the-original-pubsta

652 messages ยท Page 6 of 1

somber night
#

It is coming wednsday

jovial island
#

@radiant socket

radiant socket
#

hey

jovial island
#

so

#

can we hop on vc?

radiant socket
#

sure

jovial island
#

Code/ Help 2?

radiant socket
#

code/help 1

jovial island
#

Ok

#

Oh shoot

#

@radiant socket

radiant socket
jovial island
#

i'm not voice verified

radiant socket
#

ah, voice gate

jovial island
#

yes

radiant socket
#

yeah, just text then

jovial island
#

i didn't send 50 messages

#

ok here i'll do it

#

right?

radiant socket
#

well, just pick a chat and ping me in it

jovial island
#

Ok

neat light
#

Woooah codeblock highlighting on android is a thing!!!

jovial island
#

@dim marsh

full summit
primal comet
#

me trying to understand what im seeing

pure rune
#

I got that same T-Force ram, it's fast

solemn thistle
#

Woooah codeblock highlighting on android is a thing!!!
Not for me :(

neat light
#

I think I'm on the android beta so that may be why

#
import foo from bar
a = 'hello'
for i in range(100):
    if i % 2 == 0:
        print(a)
#

That's what it looks like for me

next token
#

Same. On android discord v49.12

grim seal
#

lol

#

that's.. a font

next token
#

I actually have monospaced font

solemn thistle
#

Import from aniblobsweat

grim seal
#

lol

full summit
#

yikes

next token
#

Feels like this is more like english grammar compared to from ... import ...

full summit
#

the non-monospace font with syntax highlighting is probably worse than monospace without syntax highlighting

pure rune
#

Hey I'm in a screenshot! Sweet, my dream of being famous is going good

steel eagle
#

the non-monospace font with syntax highlighting is probably worse than monospace without syntax highlighting
@full summit disagree, I literally cannot read the code on mobile wihout highlighting

#

without monospace font, at least it's readable for me with highlighting

pure rune
grim seal
#

hahahahaha

full summit
#

lol

solemn thistle
#

Vestergurkans class class

upbeat sandal
#

@nova ember teach me oop

somber night
#

Bruh

#

As soon as I started learning javascript

#

(Since 3 days ago)

#

I dont want to even touch python anymore because it is just

#

So simple

#

๐Ÿคข

#

But javascript

upbeat sandal
#

people like what they like, I suppose

somber night
#

Javascript is hard

primal comet
#

is it time to learn oop with @nova ember ?

steel eagle
#

you're using ancient replies
@full summit they're not available on my client yet lol

#

shitcord being shitcord

somber night
#

๐Ÿคฃ

wheat aurora
#

ctrl+r to reload and you should get them

solemn thistle
#

JavaScript isn't any more complex than python imo @somber night

final sable
#

Javascript is as easy as python

primal comet
#

for loops in js look crazy dude

solemn thistle
#

How?

#

for(var i = 0; i < 10; i++) {do something 9 times}
for(const foo of iterable) { iterate over iterable}
iterable.forEach(function(foo) {iterate over iterable});

#

I'm not sure if arrays are the only iterable with forEach ๐Ÿค”

shadow elk
#

well, forEach is a method, so not all iterables support it

solemn thistle
#

I thought so

shadow elk
#

Map definitely supports it, but, to remind us that it's in fact JavaScript, it does it backwards

myMap.forEach((value, key) => ...)

it passes the key and value in reverse order

solemn thistle
#

Does anyone know go?

#

I still cant figure out how Goroutines work bongo

fresh pecan
#

@solemn thistle f should be capital

#

oh wait smart is false

#

right

solemn thistle
#

What f?

fresh pecan
#

your nickname

solemn thistle
#

Who said it was python kekw

fresh pecan
fluid plank
#

finally the reply feature!

fluid plank
#

wait...

#

the channel name

#

...

tranquil ridge
#

i dont get it

fluid plank
#

@tranquil ridge youre in a private server?

#

shocking

tranquil ridge
#

teammate's server

rotund swallow
#

Oh reply feaature in this server coool

jovial island
#

replyyyy!!

slow valve
#

hey Vester where are you bruh take our class

#

Teacher is late

#

$$Fine$$

#

lul

slow valve
tranquil ridge
slow valve
#

I guess no class today ๐Ÿ˜ฆ lol

tranquil ridge
#

why

slow valve
#

No now at least

#

Vester offline lul

#

he probs even don't know the ot name xD

upbeat sandal
slow valve
#

I want to learn classes from him

rotund swallow
#

OOP is the best, the reason i love python

upbeat sandal
#

python OOP py_strong

slow valve
#

I am still trying to learn them

#

I know the basics just want to know more about the special methods and inheritance

upbeat sandal
#

pyoop

tranquil ridge
#

yeah i love oop, really epic

dusk citrus
tranquil ridge
earnest lagoon
#

And replies are nice ngl

worldly berry
earnest lagoon
#

:+1:

devout loom
flint pike
#

hi

#

not in command prompt

devout loom
#

Where did you run it?

flint pike
#

cmd

devout loom
#
import colorama
colorama.init(convert=True)

print(colorama.Fore.LIGHTMAGENTA_EX, 'Something like pink?')
dusk citrus
slow valve
#

ikr

tranquil ridge
#

๐Ÿ‘€

slow valve
#

closes his eyes

dusk citrus
#

lol

slow valve
#

btw are you sure your name is appropriate? @dusk citrus

dusk citrus
#

yes sir

#

since 2019

tranquil ridge
#

respect brail

slow valve
#

is this braily

tranquil ridge
#

yes

slow valve
#

I encrypted it and it was something not nice xd

storm birch
#

!ban braille bad username

worldly berry
dusk citrus
#

!ban fisher

slow valve
#

NO GO AWAY

storm birch
#

muahhaa

#

jk ily

worldly berry
#

haha

tranquil ridge
slow valve
#

NO U

#

another flex

slow valve
#

lol

dusk citrus
#

damn everyone i know are colorful now

tranquil ridge
#

โ˜น๏ธ

storm birch
#

this is the way

worldly berry
#

I am white still

celest field
#

I'm pink

#

0.2% of pink

tranquil ridge
storm birch
#

on wednesday we wear pink

tranquil ridge
#

y?

#

and its friday

celest field
#

It's Thursday

#

Or did you fly to Canada?

tranquil ridge
storm birch
#

its thursday if you live on the greatest coast in the greatest country

next token
celest field
#

lol It's friday soon

#

But I like the sound of that

tranquil ridge
#

hm

slow valve
tranquil ridge
#

same time

storm birch
slow valve
#

I saw that vinam

#

Disastour

#

Pandamic

celest field
#

11/20 soon

slow valve
#

10 PM ๐Ÿ‘€

#

11/19

#

huh

#

Time Zones doesn't make sense

celest field
#

I'm guessing you have different formatting lol

tranquil ridge
celest field
#

We live on the greatest coast in the greatest country

slow valve
#

omg

limber pollen
slow valve
#

that emoji is literally cancer

tranquil ridge
#

?

storm birch
#

that is actually good to hear

slow valve
#

the think move one lol

tranquil ridge
#

time for you to build up the courage @storm birch

slow valve
#

lol

tranquil ridge
#

maybe tomorrow will be the day? you never know

#

you know what i mean though fisher

storm birch
#

LOLOL I know

tranquil ridge
#

good luck thumbsup

worldly berry
#

@slow valve u are western

tranquil ridge
#

you pinged the wrong guy

worldly berry
#

i know

slow valve
#

lol

#

I got 2 pings lol

#

who else pinged me

storm birch
#

I wish I had courage ๐Ÿ˜ข

#

time to watch the wizard of oz for motivation

tranquil ridge
#

nani

storm birch
#

if I could even say "hello" without my hands trembling, it would be nothing short of a miracle LOL

celest field
#

I hate sweat and itching when nervous.

#

Like there's no point lol

tranquil ridge
celest field
slow valve
#

bruh

#

nice ss

worldly berry
#

the nitro flex be getting real

slow valve
#

F

worldly berry
#

okay

tranquil ridge
#

lol

worldly berry
#

let's sacrafice vinam instead of u arnav

tranquil ridge
#

0-0

slow valve
#

I am in an English Class so boring

celest field
worldly berry
#

hhahah

slow valve
#

wtf

#

you frekin animator lol

celest field
#

lol I used some GIF maker online

slow valve
#

next level s***

celest field
#

https://www.3dgifmaker.com/, this is good

#

Lmao. I love it

jovial island
#

Irritating

#

My eyes

gentle escarp
#

a hypnotic gif indeed

nova ember
nova ember
somber belfry
#

๐Ÿง‘โ€๐ŸŽ“ ๐Ÿฅ’

gentle escarp
nova ember
#

Hahahah

slow valve
#

ok

#

but please take it lol

jovial island
#

Gearing

nova ember
#

I think itโ€™s quite funny with a Ves and Vest OT-name at the same time

rotund swallow
#

class started?

slow valve
#

is it 120min?

nova ember
#

Hours hahah

slow valve
#

bruh

#

F

#

I thought you typed 120hrs by mistake

#

big bruh

nova ember
#

Hahah, weโ€™ll see

slow valve
#

okie

stable pier
#

hey @cedar leaf

#

you know you told me to not watch that Rudy Giuliani press conference?

#

good thing i did

#

because it was fucking hilarious

#

Donald Trump's personal attorney and former New York mayor, Rudy Giuliani, was sweating profusely during a press conference on Thursday.

Giuliani made a variety of claims about the election saying Trump won a landslide, Biden knew about a plot to steal the election, and that China, Cuba and Venezuela were involved, though he provided no evidenc...

โ–ถ Play video
#

his fucking hair dye ran

#

:D:D:D

wheat aurora
#

It was uhhhhhhhh a press conference alright

stable pier
#

:D

#

hey kat

keen burrow
#

Poor guy, this thumbnail doesnโ€™t help

stable pier
#

that dude never looks good

#

like ever.

slow valve
#

that thumbnail is soo ps

#

xD

keen burrow
#

Haha

stable pier
#

what's the opposite of photogenic?

slow valve
#

lol

#

does he even pose lol

stable pier
#

these are all press conference shots, what with him being a stupid public figure

wheat aurora
#

It's just.... like I want it to be satire so badly. How does the onion even compete with reality at this point?

stable pier
#

people were like "oh now this lot are in power comedy should be easy"

#

but you hear a lot of late night writers complaining that they've had to completely scrap scripts and start over because of some shit that happened

#

that'd be maddening. writing your show then finding out at 4pm you've gotta start a whole section from scratch

wheat aurora
#

Sketch writer: "Wouldn't it be so over the top if X happened?"
News: "And today X happened"
Sketch writer: "Oh come on!"

stable pier
#

beyond satire

nova ember
#

@jovial island this was getting a bit off-topic, but you also need to be over 18 to create a developer account and submit apps to the App Store

#

If your friend is simply looking for a calculator app, there are many great ones out there

jovial island
#

I'm over 18

#

But I don't like Apple

#

How do you guys feel about this new reply thing?

#

I think it's poopy

keen burrow
#

I am very ยฏ_(ใƒ„)_/ยฏ so far

ancient whale
#

I don't like it with codeblocks

round moss
#

I like it more than quotes

#

I don't like that it's not on android yet apparently

#

I just see a pencil

ancient whale
#

I thought I was getting ghost pinged yesterday

#

because of that

radiant socket
#

on android

ancient whale
#

you're hacking tho

round moss
#

Yeah, I just see a pencil with a ping

keen burrow
#

How do you even get that

ancient whale
#

I've got quote and that's it

radiant socket
#

yikes

#

that's weird

limpid apex
#

Has anyone here used python in integration with Arduino?.... Just wanted to know what were the possibilities and how was it overall?
I would like to a ML model with python and arducam for my remote plant monitoring system
And if there are any better ways for my idea to be implemented please let me know
Thanks

slow valve
#

I've got quote and that's it
@Bepis#1445 sure lol

ancient whale
#

@Arnav#9429 that's not how you ping

slow valve
#

ik lol I didn't want to ping you

#

I should rlly get back to studies from tomorrow lol

#

otherwise I am doomed

sturdy sequoia
keen burrow
#

Because the two weren't complicated enough yet

#

But sure, you can share an article lemon_happy

drifting venture
jovial island
#

she looks like she came up with the idea while puffing a joint with her ml friends

drifting venture
#

I'm trying to pick up machine learning

#

Might be useful for what I do

jovial island
#

I've picked it up too early

drifting venture
#

Someone on my team studied ML in college and now does nothing related to it, lol

jovial island
#

I picked it up when I started (read) coding because that's one one of the reasons why I started

#

but I was new so it was mostly copy paste

#

I kinda had an idea how the thing worked

drifting venture
#

Makes sense

jovial island
#

jsut not

#

just not how

#

it applied to the code too well

drifting venture
#

It would have benefitted you more if you had a stronger foundational knowledge?

jovial island
#

if I had a stronger knowledge on how the code itself woroked

#

worked

#

can we not have this convo here please

#

thanks

#

Why python developer wear gkasses

#

because he can't c#

keen burrow
#

I don't?

jovial island
#

I always wear glasses btw

#

I wear my glasses

#

just not the ones that help me see better

#

๐Ÿ˜Ž

#

๐Ÿ˜‚ Wow

#

Cool

#

thank

keen burrow
#

Imagine coding with sunglasses haha

jovial island
#

๐Ÿ˜”

#

But for me its medical

#

best text editor

#

fight me

#

๐Ÿ˜Ž

#

Imma

#

atom is best

#

it looks nice

#

and there are plugins

#

you can use

#

to make it better

#

like kite

#

Is this goos for blind people

#

sublime pretty decent

#

it doesn't look the best

#

it's not the best

#

but

#

it's pretty fine

#

Emm

somber belfry
#

eivl used sublime for a really long time

jovial island
#

once you find something diffrent you don't really go back to it

#

I just woke up now and i cant detect colors

#

Lol

somber belfry
#

He switched to Pycharm only because his team is using it

jovial island
#

pycharm is

#

idk it just doesn't look that nice to me tbh

#

plus it's python only

#

and idr like switching between diffrent ides deppending on what I'm writting in

#

more so with something like flask

#

It's so close

#

In atom even you can write your plugin

#

yeah

#

the only thing is

#

there's nothing for syntax and errors

somber belfry
#

you can write your own plugin in sublime too

jovial island
#

you can change your theme in atom

#

and stuff like that

#

Not Pycharm

#

it's more customizable

#

Isnt it

#

I was in the python server and everytime I'd bring up that I used atom they'd be like oh no you should use pycharm or at least sublime it's so much better

#

I understand why it is

#

but

#

I don't really need those extra things

#

just a nice looking text editor and stuff is good enough

#

Oomm to be honest

#

yes?

#

Its ramkiller too

#

which?

somber belfry
#

pycharm and atom

jovial island
#

Pycharm i nean

#

oh

#

atom is?

#

I mean I've had no problem with that using atom

keen burrow
#

PC is cool

jovial island
#

and I prolly don't have the best computer for stuff that uses a lot of ram

keen burrow
#

And I have the pro edition for free

jovial island
#

Im not sure atom is

somber belfry
#

student license?

keen burrow
#

Yup

#

And apparently they are sponsoring us, as I've heard

somber belfry
#

Pydis?

jovial island
#

wdym us?

keen burrow
#

Yeah

#

I dunno, I should ask Joe

somber belfry
#

In what way are they sponsoring us?

#

giveaways/prizes for events?

jovial island
#

Github user i have connected to once by

#

I have github connected so I look smart in front of my dumb friends

jovial island
#

Idk really

wheat aurora
#

JetBrains does sponsor some of the events that PyDis does, most notably the code jams.

#

That's how we're able to give out PyCharm licenses as prizes

somber belfry
#

yeah

weak stone
#

๐Ÿ˜

jovial island
#

can you read all that text?

#

Can he

#

doesn't mater

#

text is text

#

it works

grim seal
#

lol

heady schooner
#

Some very kind soul in this server gifted me a month of Nitro today :')

#

Thank you once again @solemn thistle

nova ember
#

!self

clever salmonBOT
#

Class instance

When calling a method from a class instance (ie. instance.method()), the instance itself will automatically be passed as the first argument implicitly. By convention, we call this self, but it could technically be called any valid variable name.

class Foo:
    def bar(self):
        print('bar')

    def spam(self, eggs):
        print(eggs)

foo = Foo()

If we call foo.bar(), it is equivalent to doing Foo.bar(foo). Our instance foo is passed for us to the bar function, so while we initially gave zero arguments, it is actually called with one.

Similarly if we call foo.spam('ham'), it is equivalent to
doing Foo.spam(foo, 'ham').

Why is this useful?

Methods do not inherently have access to attributes defined in the class. In order for any one method to be able to access other methods or variables defined in the class, it must have access to the instance.

Consider if outside the class, we tried to do this: spam(foo, 'ham'). This would give an error, because we don't have access to the spam method directly, we have to call it by doing foo.spam('ham'). This is also the case inside of the class. If we wanted to call the bar method inside the spam method, we'd have to do self.bar(), just doing bar() would give an error.

nova ember
#

Here are some interesting things about class instances (check the embed above as well)

#

One thing that helped me understand the concept was knowing that self can actually be called anything. Itโ€™s simply an argument just like all other ones, which happens to have a very clear naming convention

#

When you do something like this: ```py

class Foo:
... def init(self, a, b):
... self.a = a
... self.b = b
... def test(self):
... print("Hello")
...
foo = Foo(5, 7)
foo.a
5
foo.b = 1000
foo.b
1000

#

When you do something like this, youโ€™re simply assigning foo.a and foo.b to different values inside __init__. Whenever you say self inside the methods, youโ€™re simply saying foo โ€” the instance that youโ€™re using

#

The wonderful thing about OOP in python is how it passes the instance automatically for you. Itโ€™s the same as if you wouldโ€™ve done something like this: ```py
Foo.test(foo)

It simply passes `foo` (the instance you created) as the first argument, without you needing to do anything. You simply say `foo.method` and it will pass `foo` as the positional argument `self` to the method!
#

Itโ€™s really quite pretty and the things I explained above is exactly why you can technically call self whatever you want to. Itโ€™s just a naming convention that makes like much easier for programmers, but itโ€™s not enforced by python itself

#

The importance of conventions is great, but thatโ€™s a topic for the next Vestergurkanโ€™s OOP class

#

@slow valve @rotund swallow @gentle escarp @upbeat sandal class dismissed. Glad you could attend

upbeat sandal
#

Let's do this again next time this ot name happens

nova ember
#

Oh yes, letโ€™s do it.

neat light
#

Oh lol I only just saw the ot name

#

Thought that was a bit random

nova ember
#

Hahah yeah

#

That wouldโ€™ve been very random

upbeat sandal
#

Just as some feedback, if you had defined a class named Foo with at least one non-init method my_method, you could have illustrated your pseudocode point in real Python

f = Foo()
Foo.my_method(f, a, b)
nova ember
#

Yeahh, I know. Maybe I should add it

neat light
#

Talking about random python lessons, here's one I made earlier <#help-cherries message>. I spent ages writing that and the person never replied so now I feel obliged to show it at every opportunity possible to show how selfless, helpful, and just amazing in general I am.

#

No need to thank me

nova ember
#

@upbeat sandal done. Itโ€™s updated to use real code now

upbeat sandal
#

perfect

nova ember
#

@neat light very nice. I like the images as well. Itโ€™s always nice to make things a bit more visual

primal comet
#

thank you wookie

neat light
#

Pythontutor is very cool

neat light
nova ember
#

Thank you @neat lightlemon_hyperpleased

neat light
#

Btw pls ping me if this it name comes up again and you do this again @nova ember lol

#

I like random things

nova ember
#

You mean the ot name?

neat light
#

Yeah

nova ember
#

Vestergurkanโ€™s OOP classes ping wookie

#

Thatโ€™s a note to myself when I reach for old messages with clues

neat light
#

It could be a while before a name is repeated though, ...unless I remove all the ot names apart from this hyperlemon

nova ember
#

For sure. Weโ€™ll have to loop through all of them before it can be selected again

#

remove them

toxic osprey
#

foo

pure rune
#

bar

solemn thistle
jovial island
#

:)

#

That smart=false thing is genius

fluid plank
#

thanks wookie

#

now i learned something new

jovial island
#

Did you call me

#

I want to implement heap sort in python

jovial island
#

Wow heap sorts

fast wyvern
#

now I need to put the ot title in a bitmap of a stegasaurus

frigid pollen
#

I'm fairly sure there is or was a chicken business called Steggles.

nova ember
#

This ot-name sounds a lot like a code jam team name

zealous tide
#

what is foo

#

pls expalin

unreal sigil
#

Nothing

#

Just a placeholder, random used word

#

It has no real meaning

nova ember
#

!foo

clever salmonBOT
#

Metasyntactic variables

A specific word or set of words identified as a placeholder used in programming. They are used to name entities such as variables, functions, etc, whose exact identity is unimportant and serve only to demonstrate a concept, which is useful for teaching programming.

Common examples include foobar, foo, bar, baz, and qux.
Python has its own metasyntactic variables, namely spam, eggs, and bacon. This is a reference to a Monty Python sketch (the eponym of the language).

More information:
โ€ข History of foobar
โ€ข Monty Python sketch

nova ember
#

@zealous tide just like @unreal sigil said. Hereโ€™s a tag to explain it as well ^

unreal sigil
#

We have a tag for foo ๐Ÿ‘€

nova ember
#

For sure

#

Try !tags in #bot-commands to check out all tags available

zealous tide
#

thanks guys :D

storm birch
#

You're welcome.

#

Lel

zealous tide
#

lel

fluid plank
#

i just noticed my keyboard has two Cmd/Start/Mod keys

primal comet
#

ITS SWEATER WEATHER. today it was 5 c (41 f) the low is 0c 32f.

#

iโ€™m in a sweater in my house

open sentinel
#

my nitro is expiring today yay

jovial island
#

buy a new plan

storm birch
#

@ancient whale lol, I just found out two of my all time favorite songs use the exact same chord progression for their chorus

#

just in a diff key

jovial island
#

there should probably be a channel for something like that, where you get to share cool stuff you made related to python (or OT)

jovial island
upbeat sandal
jovial island
#

i would agree

upbeat sandal
#

That isn't to say that we don't want to see peoples projects. Discord just isn't the platform

jovial island
#

yes

#

lol i don't know what to say sorry

upbeat sandal
#

Whatever sounds good

#

Just throw some words out

#

PANCAKES

#

See?

jovial island
#

maybe like a !resources but for smaller lessons as messages? you could react with something like ๐Ÿ‘ and it would display the lessons on the site in relation to how many reactions it's got and how new it is? you could then search

though i should probably put this in #community-meta or something

upbeat sandal
#

!rangelen

clever salmonBOT
#

Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.

for i in range(len(my_list)):
    do_something(my_list[i])

The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:

for item in my_list:
    do_something(item)

Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.

jovial island
#

that is a tag

upbeat sandal
#

It's a tiny lesson

storm birch
#

knowledge is power and power is magic

#

and friendship is magic

upbeat sandal
jovial island
#

or a better idea, a feed for python lessons/tips

storm birch
#

friendship is still magic! I was just ashamed to say it without the strikethrough

rotund swallow
#

oh u changed your pfp @storm birch

rotund swallow
storm birch
#

yes, thanks to @kutiekat for the massively better photo editing skills than my own

jovial island
upbeat sandal
jovial island
#

use that as a resource for the feed

#

to use from

#

lol

upbeat sandal
#

But it's a for-profit book

jovial island
#

hm

#

not many want to sit down and read a book.. my idea was for it to be an easy tip you may not know about that is about the same size of a tag

#

it could be daily

#

or every 12 hours

upbeat sandal
#

I should write a python tips book. But with hot takes instead of tips

jovial island
#

i feel like that would give the reader burn-out to keep watch on the channel

storm birch
#

I updated my pfp again, this time with enhancementsโ„ข๏ธ

but my nightlight is on, so almost impossible to tell what the colors look like

#

it still looks blinding on my end

dim root
#

oh nice pfp ๐Ÿ™‚

storm birch
#

haha, ty

dim root
#

u got that hat perfect!

tranquil ridge
#

bUt YoU dIdNt mAke iT YouRsElf

storm birch
#

this is how like every husky on instagram edits their photos lolol

tranquil ridge
#

oof i want to pat your doggo UwU

dim root
#

oh nice, i added hat to mine, and it looks like it is a giant's hat taking the front of forehead to back of your head

tranquil ridge
#

wait, you live beside the sea?

storm birch
#

lol, my doggo hates pets

dim root
#

your dog?

tranquil ridge
steel eagle
#

yuck racism frog

storm birch
#

this photo is on the "delta" here.

it is where the freshwater from rivers meets with the ocean, so this is freshwater.

Im like an hour from the ocean sadly

tranquil ridge
#

o

storm birch
#

my dog is also an emoji doge

dim root
#

oh lovely

tranquil ridge
pure rune
#

Aww that doggo is so cute!

somber belfry
#

nice pfp fisher

storm birch
#

ty haha

ty to both

proper python
#

its remarkable to think that in a few hundred years every work i have done will be forgotten

proper python
#

what sequence of events caused the earth to be formed, for life to exist, for a cell to eat another but not kill, for more complex organisms to form, for humans to live

#

could it all have been prevented in the beggining of the universe by simply adding some more atoms?

fluid plank
#

@proper python so if i understood correctly, 'for cell to eat another but not kill' means endosymbiosis which gave rise to eukaryotes and 'for more complex organisms to form' means multicellularity which gave rise to organisms such as humans. and for the question, the answer is idk.

fluid plank
jovial island
#

Does turing machines only accept formal languages ?

frail bobcat
#

ummm........Hi!

ancient whale
steel eagle
#

it's either the standard 4-chord Am F C G or some other weird one that just happens to line up

fluid plank
#

learning css is both annoying, sad and fun

jovial island
#

for me it is annoying and sad

slow valve
#

for me it's just sad

#

very sad

fluid plank
#

for me it is pain too

ancient whale
rotund swallow
#

what is mypy??

tranquil ridge
#

seems like a module to me

#

oh nvm

#

it looks like a linter to me

#

maybe

rotund swallow
#

oh maybe

ancient whale
#

ya no mypy doesn't like my custom types

rotund swallow
#

is it a linter?

ancient whale
#

type hinter ya

rotund swallow
#

huh

ancient whale
#

Optional[type] is the same as Union[None, type] and I've got 2 overloaded cases that return Item

#

@shadow elk are you free?

limber pollen
#

@ancient whale How did you define your overloads?

shadow elk
#

@ancient whale yep

#

can you show the function definition?

ancient whale
#
@overload
def get_item(self, item: str, index: Literal[None], copy: bool) -> ItemType: ...

@overload
def get_item(self, item: Literal[None], index: int, copy: bool) -> ItemType: ...

@overload
def get_item(self, item: Literal[None], index: Literal[None], copy: bool) -> None:
    raise NoSelection

def get_item(self, item: Optional[str], index: Optional[int], copy: bool) -> Optional[ItemType]:
        """
        iterate through items in bag to get specified item

        :param Optional[str] item: item name
        :param Optional[int] index: index of item in bag (1-based index)
        :param bool copy: whether or not to copy item for display
        """
    ...
#

I've got the function defined in the last one

#

@shadow elk

shadow elk
#

@ancient whale Well, this is what it's saying:
"You can call this function in the following ways:

get_item("item", None, <bool>)
get_item(None, 5, <bool>)
get_item(None, None, <bool>)
```"
ancient whale
#

I am?

shadow elk
#

Well, this is what your overloads say

ancient whale
#

do I need defaults for the args?

ancient whale
shadow elk
#

I would do this:

@overload
def get_item(self, *, item: str, copy: bool) -> ItemType: ...

@overload
def get_item(self, *, index: int, copy: bool) -> ItemType: ...

@overload
def get_item(self, *, copy: bool) -> ItemType: ...

It means that you can call it like this:

self.get_item(item="hello", copy=True)
self.get_item(index=5, copy=False)
#

With your current overloads, you specified that you're requried to pass three arguments

#

...I would actually do this:

@overload
def get_item(self, *, item: str) -> ItemType: ...

@overload
def get_item(self, *, index: int) -> ItemType: ...

@overload
def get_item(self) -> ItemType: ...

and make copy a method of the Item, because that's where it belongs, if I understand what you're doing correctly

ancient whale
#

hm idk how I'd do that:

if copy:
  temp_item = item
  self.bag.put(temp_itemp)

return item```
#

that's all it does

shadow elk
ancient whale
#

could it be the exceptions doing that?

shadow elk
#

no, like, can you hover over the variable to which you're assigning the call to

#

I hope that mypy understands overloads ๐Ÿค”

ancient whale
shadow elk
#

uhh

#

wait, is the top warning from the Pycharm linter or from mypy?

#

If you're using mypy, you should probably disable the native Pycharm warnings

ancient whale
#

how do i tell?

#

oh i think it's from pycharm rip

shadow elk
ancient whale
shadow elk
#

yes, I suppose. Try turning them off. That stuff should be covered by mypy

ancient whale
#

sick that got rid of like half the errors

shadow elk
#

Well, it seems that pycharm doesn't like overload ๐Ÿ™‚

ancient whale
#

so it would seem

#

ok lemme overload this last method and I'll push a branch, idk how to oop this together, I've got 3 inv classes but I can't call the main one as a parent because the other 2 are reliant on eachother to some degree

shadow elk
#

maybe you should open a help channel?

#

cause we're being off-off-topic here

ancient whale
#

lol ya sure

#

I'll ping when I finish

shadow elk
#

ok

bronze rapids
#

Bruh what are all these terms I don't understand shit

#

Push a branch?

#

3 inv classes parent

#

Wtf I have so much to learn

ancient whale
# bronze rapids Push a branch?

I didn't want to push the changes to the main branch because I've got a functional version already there and this one is not
So I've created a new branch and pushed the changes there

crude trail
#

@bronze rapids terminology of the git version control. Makes working in groups a lot easier.
Different branches have different versions of the same project. A project might have a prod branch, the version shipped to clients, a main/master branch - containing a working version - and a dev branch, a version used for testing all kinds of stuff out. It is also recommended to create a new branch for a feature and delete that branch once the feature is added. This makes it easier to revert changes in case the feature has bugs.

bronze rapids
#

Ohh

#

Cooll

#

It took me 10 minutes to understand what u wrote

#

Thanks though

ancient whale
#

lmao np

somber belfry
proper python
#

oh woops apparently i had an existential crisis last night

bronze rapids
#

Oof

#

I wanna hear the story@proper python

proper python
#

it was in this channel

worldly berry
#

I honestly want to know the story behind this otn

worldly berry
#

thx

icy flicker
#

god I love that scene

#

NI NI

storm birch
#

I need to rewatch it.

My high-school also did a live action version of one of the monty python films years ago

icy flicker
#

amazing the school was okay with that -- even more so if it was "the life of brian"

ashen halo
#

and this is strange women in ponds distributing swords

primal comet
#

anyone know monster hunter world?

#

is it a good game?

storm birch
#

I have it, I refunded it LOL. But now I have it again

slow valve
#

Hey I need a sword

#

Where is the pond??

cloud iris
#

Great idea: Make a programming language that interprets any amount of gibberish in a single line as an undeclared and type-less variable

bronze rapids
storm birch
#

๐Ÿ‘€

fluid plank
#

fisher fishes fishin

pure rune
#

Can you image if the USA switched from pounds to kilograms overnight.

There would be mass confusion!

tranquil ridge
#

not for me

#

it would be a relief for me smh

somber belfry
#

๐Ÿ‘€ ๐Ÿคฆโ€โ™‚๏ธ ๐Ÿ˜‚

cloud iris
#

What if we stopped using cups and spoonfuls as measurement overnight?

tranquil ridge
#

honestly i just dont understand pounds, farenheit, miles, yards

pure rune
#

Dr: "How's the kid doing that swallowed those coins".
Nurse:" No change yet."

tranquil ridge
#

oof your puns

#

lol

pure rune
#

I try to being a little humor!

tranquil ridge
#

yeah, at least your puns are funny

#

the ones my friends make

pure rune
#

8
|
|
8. Tolerate

worldly berry
#

how long is a foot? Put 12 thumb's width together, and you'll find out

pure rune
#

Aww the formatting messed up..

tranquil ridge
#

eh?

#

oh

#

lol

storm birch
#

classic pun

worldly berry
#

You won't believe it, someone actually used "the length of an AR-15" to describe something to me

#

Honestly, we will use quite litteraly anything but the metric system

#

another one being the height of a hamburger

tranquil ridge
#

wow, when i read that hamburger a deep voice said hamburger inside my head

#

iirc it was a meme or smth, idk

pure rune
#

Well I can safely tell you that a 2020 mirage is about the length of 3 washing machines

#

Maybe 4

tranquil ridge
pure rune
#

Probably the weight of 17 though

#

Well I guess more like 14. Since a mirage is about 2000

storm birch
#

that is almost the size of 370 big gulps

pure rune
#

And if my math is right, you can fit almost 75k goofballs inside the car

#

Goofballs*

#

...

#

Golfballs

storm birch
#

lolol, I read it as "golfballs" the first time.

#

illiteracy ftw

tranquil ridge
#

goofballs

storm birch
#

that car could easily fit 63 vinams

tranquil ridge
pure rune
#

It has 103.3 cu ft of passenger space. 1728 cu inches is 1 cu ft. A golf ball is roughly 2.42 cu in

#

Wtf phone

#

I know I'm not that drunk still

storm birch
#

I cant type with autocorrect anymore lol

#

im totally sober now so I better be good with typing!

polar warren
#

doubt

worldly berry
#

hahaha

fluid plank
#

doubt

tranquil ridge
#

doubt 3

pure rune
#

Doubtfire

worldly berry
#

really?

#

spell pneumonia

#

oh wiat

fluid plank
#

lol

worldly berry
#

i'm a frickin idiot

pure rune
#

Pneufuckthisshit

fluid plank
#

Neo Monia

tranquil ridge
#

stop

#

diarhhea

storm birch
fluid plank
#

Monia is of Old Greek origin and it is used mainly in Italian. It is derived from the word monos which is of the meaning 'single, only'. In addition, Monia is a variant of Monica (English, Italian, Portuguese, and Spanish).

polar warren
#

doubt again

fluid plank
#

wow thats so random

pure rune
#

I did spell it though! Some would say I spelled it the absolute best. I'm sure the experts at webster's dictionary would agree

tranquil ridge
#

idk how to spell diahrea lol

fluid plank
#

@storm birch sober suber slobber

storm birch
#

^very insightful

pure rune
#

I should be asleep, I got work tomorrow/today?

#

Sunday!

worldly berry
#

I'm legit betting my entire life on that I'll stop using auto correct and make sure I can spell everything, by the time I do the SAT essay

storm birch
#

I should also be asleep. I dont have anything this sunday

#

but still... sleep

worldly berry
#

I should sleep

#

like rn

#

before my parents kill me

storm birch
#

SAT ez

fluid plank
#

no

pure rune
#

!sleep

fluid plank
#

dont sleep

#

sleep is for the weak

worldly berry
storm birch
fluid plank
#

SAT is where you sit

tranquil ridge
#

no sit is where you sat

storm birch
#

I barely studied for the sat tbh

tranquil ridge
#

wait

worldly berry
pure rune
#

I'm 30, I'm weak if I don't sleep. Plus, no one wants a cranky 30 yr old women delivering food. It's not a good combo

worldly berry
fluid plank
#

nah actually i nearly turned my brain into mush

#

because sleep deprivation

storm birch
#

muahaha, 1770 iirc

#

but it was awhile ago, that could be wrong

worldly berry
#

oh, ye 2400 format

pure rune
#

You were so close to perfection

storm birch
#

yeah, they changed it

pure rune
#

6 off

storm birch
#

i WISH 1776

worldly berry
#

I'ma sleep

#

cya guys

fluid plank
#

good morning

pure rune
#

Me 4

storm birch
#

I shall sleep soon

fluid plank
#

good morning fisher

storm birch
#

lolol, its not even morning for you

#

its still night for me :C

fluid plank
#

nah i just thought i can trick your mind into waking up instead of sleeping

#

jk go to sleep

storm birch
#

LOL

jovial island
#

i just claimed the hacktoberfest tshirt is it too late now?

#

I didnt even get it

#

๐Ÿ˜”

tranquil ridge
#

i got it, but i didnt recieve the tracking email still

#

i wonder if i am even gonna get it

keen burrow
#

I... forgot about completing the hacktoberfest?

#

The 2019 t-shirt is way slicker anyway

tranquil ridge
#

should we have a rest in peace emoji FlanThink

fluid plank
#

lowkey -flexing- thy nitro

#

*i wanna have one this xMAS!

ancient whale
#

@shadow elk got time for Helping Numpy figure out how to refactor his code cause he's partially incompetent pt 3 out of _โ„ข๏ธ?

shadow elk
#

I see that you're coming up with expressive names ๐Ÿ™‚ (not necessarily accurate)

#

@ancient whale yes, I'm free now, you can open a help channel

ancient whale
#

I figured I should give it a title considering it's a recurring series ๐Ÿ˜‹

#

oh you right I haven't actually got a license for it

cinder maple
#

can I promote my dumbass livestream here? lol its weird but whatever lol

jovial island
#

lol I dont know lol lol

cinder maple
#

its just my music with some weird ass video visual lol any ezquir3 on twitch, I won't spam the link but you can find me there

jovial island
#

how do i install OS windows on a new pc i built myself if im in an all mac household

deep saddle
#

okely dokely

ancient whale
#

@shadow elk ok so I'm pretty much done but idk how to access persistence from display, should I be passing it as a dataclass attr?

#

or ig it's technically an init arg

shadow elk
#

Why does display need to access persistence? ๐Ÿ‘€

ancient whale
#

unequip/drop

shadow elk
#

Well, yes, you can pass it in the __init__

shadow elk
# ancient whale unequip/drop

Have you thought about an event system? For example, you could make the display emit an event like ("item_unequipped", 6), and then you could make another object listen to "item_unequipped" events and do whatever they need to do. If you do that, you won't need to intertwine all the systems directly, and you can split the system into many smaller pieces

#

!e

from dataclasses import dataclass

class EventBus:
    def __init__(self):
        self.listeners = {}
        
    def listen(self, event_type, callback):
        if event_type not in self.listeners:
            self.listeners[event_type] = []
        self.listeners[event_type].append(callback)

    def emit(self, event_type, payload):
        for listener in self.listeners.get(event_type, []):
            listener(payload)


@dataclass
class Inventory:
    bus: EventBus
    items: list

    def __post_init__(self):
        self.bus.listen("add_item", self.add_item)
        self.bus.listen("game_started", lambda _: self.bus.emit("update_inventory_display", self.items))

    def add_item(self, item: str):
        self.items.append(item)
        self.bus.emit("update_inventory_display", self.items)


@dataclass
class Menu:
    bus: EventBus
   
    def __post_init__(self):
        self.bus.listen("game_started", lambda _: print("Menu initialized..."))

    def add_ducky(self):
        self.bus.emit("add_item", "ducky")


@dataclass
class InventoryDisplay:
    bus: EventBus

    def __post_init__(self):
        self.bus.listen("update_inventory_display", self.update)

    def update(self, new_items):
        print("Items:", new_items)


bus = EventBus()
menu = Menu(bus)
inv = Inventory(bus, items=["snake"])
inv_display = InventoryDisplay(bus)

bus.emit("game_started", None)
menu.add_ducky()
clever salmonBOT
#

@shadow elk :white_check_mark: Your eval job has completed with return code 0.

001 | Menu initialized...
002 | Items: ['snake']
003 | Items: ['snake', 'ducky']
ancient whale
#

oh jesus

shadow elk
#

If you want, you could keep a global bus object instead of passing it to literally every object in your game

ancient whale
#

oh ok ya that makes a bit more sense, I'm just going to save that and try to implement it later

#

I've got a couple more errors to iron out first

shadow elk
#

well, yes

#

it seems that your game has mainly lots of events happening, that's why I thought it was a decent idea

#

You could make little state machines (for example, one object could keep track of what location you're in) that change their state and emit some events when they receive some event.

ancient whale
#

oh ok so instead of having displacement as a single class, send directions to the listener and emit the direction to print?

#

also the .Objects._ didn't work I had to change it to Objects._

shadow elk
#

maybe you should claim a help channel, I'm free now

ancient whale
#

sure

ashen halo
#

and this is joe loves graphs

nova ember
#

@grim seal we want graphs. Again.

grim seal
#

lol

#

this is just me loving graphs!

#

I don't have to post graphs

nova ember
#

You should share the love โค๏ธ

#

Wouldnโ€™t it be sad if you kept it all to yourself?

fluid plank
#

@nova ember 14d?

nova ember
#

14d

fluid plank
#

uhm i dont get it?

#

14 days to xmas?

nova ember
#

Thatโ€™s basically it

fluid plank
#

lmao

nova ember
#

Lol

icy flicker
#

what about diagrams and charts?

unreal sigil
#

Joe loves graphs ๐Ÿ‘€

#

Where are the graphs

icy flicker
unreal sigil
#

Bamboozled if you will

worldly berry
#

Has joe been to las vegas recently?

#

based on every movie I've seen about las vegas, he probably gambled away the graphs, and is going on a mission to get them back

glass gyro
#

Hello

jovial island
fluid plank
#

what if graphs love joe and joe is mind controlled by graphs

limber pollen
#

Live and die by the graphs

fresh pecan
#

๐ŸŒ +๐Ÿ’ฅ =๐ŸŒœ ๐ŸŒ›

tranquil ridge
#

๐ŸŒœ+๐ŸŒ› = ๐ŸŒ

fresh pecan
jovial island
#

๐ŸŒ‘ + ๐ŸŒ› = ๐ŸŒ“

slow valve
#

bruh lol

jovial island
#

logo_idle + logo_vscode = logo_pycharm

rotund swallow
#

uh no

vale pasture
slow valve
#

is this a meme now lol

#

๐ŸŒ‘ + ๐Ÿฐ = ๐Ÿฅฎ

#

is today the moon day?

jovial island
#

logo_stack_overflow + logo_github = ๐Ÿ‘จโ€๐Ÿ’ป

slow valve
#

I disagree

jovial island
#

no

#

ducky_yellow + lemon_pleased = ducky_lemon

#

sebastiaan emojis where

#

sebmojis

fresh pecan
#

lemon_pleased +lemon_pleased next_week lemon_long

slow valve
#

bruhh

jovial island
#

LOL

#

lemon_cyclops + lemon_cyclops = lemon_pleased

nova ember
#

Lol

slow valve
#

where is the second face though bruh

#

14d hey lol

#

I saw those msg in general

#

xD

jovial island
#

lemon_infant + โฑ๏ธ = lemon_pleased

fresh pecan
#

pydis +pydis_snakenext_week pydis_strong

slow valve
#

lol you guys still continuing it

fresh pecan
#

ofc

tranquil ridge
dim root
#

logo_pycharm + logo_vim future lemon_fingerguns_shades

fluid plank
#

@nova ember i like the new pfp

#

i just dont know how you fit it inside a small circle

#

i see

keen burrow
#

sneaky

storm birch
#

sneaky gurkan

fluid plank
#

black friday saleeeeeeeeeeeeeeeeeeeee

#

NOOOOOOOOOOOOO

nova ember
#

@storm birch go to bed

storm birch
celest field
#

Just flip the mattress

storm birch
#

besides, its not time for bed. Its time for sad boi hour

fresh pecan
#

so i was seeing some of my old codes

#

and every time i come to the yes or no in this code

#

sublime randomly crashes

#
import random
print('Rock,Paper,Scissors!')
while True:
    selected=''
    selected=input('Would you like to chose Rock [R], Paper [P] or Scissors [S]?')
    selected=selected.lower()
    if selected=='r':
       print('You chose Rock!')
    elif selected=='p':
       print('You chose Paper!')
    elif selected=='s':
       print('You chose Scissors!')
    else:
        print('Please chose between [R] or [P] or [S]')
        continue
    x=random.randint(1,3)
    comp_selected=''
    if x==1:
        comp_selected='r'
        print('comp chose Rock!!')
    elif x==2:
        comp_selected='p'
        print('comp chose Paper!!')
    elif x==3:
        comp_selected='s'
        print('comp chose Scissors!!')
    if comp_selected==selected:
        print("It is a tie")
        continue
    elif comp_selected=='r' and selected=='s' or comp_selected=='p' and selected=='r' or comp_selected=='s' and selected=='p':
        print('Comp won!!')

    elif selected=='r' and comp_selected=='s' or selected=='p' and comp_selected=='r' or selected=='s' and comp_selected=='p':
        print('You won!!')

    cont=input('Do you want to continue?[Y] or [N]')
    cont=cont.upper()
    while True:
        if cont=='Y':
            continue
        elif cont=='N':
            break
        else:
            print('Please chose Y or N')
            continue```
#

can anyone run it and see once

storm birch
fresh pecan
#

i am using sublime repl

storm birch
#

so it will either crash or the code will not run

nova ember
storm birch
#

I know :C

nova ember
#

And slightly drunk on beer lol

fluid plank
storm birch
#

LOL, I am sober! :C

storm birch
fresh pecan
#

oh nvm

#

apparently it printed a whole bunch of stuff in an infinite loop

#

which kept crashing sublime

nova ember
fresh pecan
#

potato comp problems

fluid plank
storm birch
#

LOLOL, I have flight stuff tomorrow, so I am very sober. Also there is no beer.

Also: I barely drink haha

#

I kinda wish there was beer

nova ember
#

Thatโ€™s what a drunk person would say

storm birch
#

LOL

nova ember
#

โ€œI barely drinkโ€
And
โ€œI kinda wish there was beerโ€

Iโ€™m spotting some plot holes

storm birch
#

trust me, If I was drunk, I would be bragging about it.

Then be slightly disappointed in myself for doing so

nova ember
#

Sounds just about right

storm birch
#

why is the beer always gone

fluid plank
#

he is bragging that he isnt drunk hmmm ๐Ÿ˜ฎ

nova ember
#

But... thatโ€™s what a drunk person would say

celest field
#

Plot twist, it's in the apple cider bottle.

storm birch
#

mmmmm cider

nova ember
storm birch
#

you guys are going to drive me to drink LOL

keen burrow
#

Plot twist, I'm the bottle.

storm birch
#

you wish LOL

keen burrow
#

wat

nova ember
celest field
#

I guess he really is sober.

keen burrow
nova ember
#

I think you can put together the pieces yourself

keen burrow
#

oh no

storm birch
#

I put it together

nova ember
#

Iโ€™m sorry for you

storm birch
#

and if I wasnt sober, I would have went with it

#

jkjk

keen burrow
#

Draw a straight line and send us a picture of that line fisher

#

We'll see if you're actually sober

nova ember
#

Punny. A straight line

storm birch
#

that is not fair, I failed design drafting

keen burrow
nova ember
#

I think Iโ€™m sober at least

fluid plank
#

just send us

keen burrow
#

Cheater!

storm birch
tranquil ridge
#

@nova ember CHEATER

nova ember
#

Shush

fluid plank
#

hmmm

#

he is drunk

keen burrow
storm birch
#

always

keen burrow
#

Nah, honestly that's an okay-ish line

fluid plank
#

he just admitted that he is

storm birch
#

I make that joke so often, it is not even an inconvenience anymore, I have props lying around everywhere for it

celest field
#

Haha, try a bunch of straight lines, drafting a crane hook.

storm birch
tranquil ridge
#

xith == bo+

#

what does that mean

celest field
#
  • == t
storm birch
#

^

tranquil ridge
#

oh i se

storm birch
#

my handwriting is atrocious

tranquil ridge
#

xithrius is a bot

nova ember
#

Youโ€™re welcome for the logic

keen burrow
#

are you @lucid girder ?

nova ember
#

He is part of the legendary bot trio.

keen burrow
#

Firstly

storm birch
#

god dammit your handwriting is good

keen burrow
#

!ban @nova ember self bot

tranquil ridge
#

what

keen burrow
#

There we go, less gurkans in the server

fluid plank
#

he got banned

#

oh noes

#

I am sad

tranquil ridge
lucid girder
#

whom'st've'd has summoned the almighty one

storm birch
#

rip vestergrukan

keen burrow
#

no more gurkan!

nova ember
keen burrow
#

don't type!

nova ember
#

IM BACK. No one can ban the alrighty

fluid plank
#

@tranquil ridge wow we almost have the same handwriting

storm birch
#

whom'st've'd's

keen burrow
#

No you're not!

tranquil ridge
#

lul

keen burrow
#

go away!

nova ember
#

D:

storm birch
#

"the alrighty"

fluid plank
#

i think akarys and vester have met in real life