#ot1-perplexing-regexing

1 messages ยท Page 253 of 1

vapid bluff
#

@tame pier Fixed it thanks to Mark.
You gotta add this line under [scripts] in the pipfile:
start = "python -m project"

Then you run:
pipenv run start inside the shell

tame pier
#

Inside the pipenv shell?

#

Well, there's nothing in __main__.py so that did nothing

vapid bluff
#

oh yeah, sorry, i forgot that's not pushed to the repo ๐Ÿ˜…

#

basically i just copied everything over in test_editor_window.py into __main__.py

#

alternatively this line should work as well editor_window_test = "python -m project.testing.test_editor_window"

#

then you'd do pipenv run editor_window_test

tame pier
#

Ahhhh right run the module in the package as a module

#

Always forget about the .

sand goblet
rough sapphire
#
>>> import pickle
>>> pickle.loads(b'\x63\x62\x75\x69\x6c\x74\x69\x6e\x73\x0a\x70\x72\x69\x6e\x74\x0a\x28\x53\x27\x70\x69\x63\x6b\x6c\x65\x20\x69\x73\x20\x74\x68\x65\x20\x62\x65\x73\x74\x20\x64\x61\x74\x61\x62\x61\x73\x65\x27\x0a\x74\x52\x2e')
pickle is the best database```
warm sage
#

can i ask a java question here?

sand goblet
#

Yep, can't guarantee an answer though

warm sage
#

ah i got it

#

just figured it out

#

ty though ๐Ÿ˜ƒ

lime jewel
#

will the live stream for CJ4 be archived somewhere? I'll be at work but i really want to see it :/

tame terrace
#

we will try.

lime jewel
#

ok! :D

vestal briar
#

I need a new phone

sand goblet
#

Huawei mate 20

vestal briar
#

The iPhone 4s is just too slow for most

sand goblet
#

:P

vestal briar
#

Mm

sand goblet
#

I have a mate 10 pro

vestal briar
#

I would like to get a huawei lite

sand goblet
#

it's probably the best device I've ever owned

vestal briar
#

Like ยฃ175

#

I'm going to wait until my mums phone has had it's contact finished and get it

#

(5s)

#

Only things that work is a really slow discord and 3rd party reddit client that makes device run really hot

#

Ah, it's got 512mb of ram; that's probably why

rough sapphire
#

i love huawei.. it's pretty solid phone for the price

sand goblet
#

From what I've heard, the mate 20 pro is fantastic

rough sapphire
#

although I would like the battery to last more than 2 days.. but maybe im just being picky

#

what do you feel about the new Oculus

sand goblet
#

I charge at night so

rough sapphire
#

why do you have so many things on.. omg

#

nfc, bluetooth

sand goblet
#

Because I use them?

rough sapphire
#

oh.. what do you use nfc for

sand goblet
#

Google pay

rough sapphire
#

ahhh

#

can't seem to figure out google pay.. how do you add transport cards on there

sand goblet
#

They need to be supported

rough sapphire
#

they docs say that they are

sand goblet
#

Then you just search for it when you add a card

#

They go under passes

#

What's the name of it?

#

@rough sapphire

rough sapphire
#

suica

sand goblet
#

Yeah, I don't see it

rough sapphire
#

yeah.. hmm

sand goblet
#

Is it a payment card or?

#

Like a prepaid card?

rough sapphire
#

but this says so see

#

yeah its a prepaid card and a transport pass

sand goblet
#

Maybe you have to add it as a payment method

#

Using the photo thing

rough sapphire
#

I dont see the photo thing..

#

oh well.. I'll figure it out later

sand goblet
#

Just when you add a payment method @rough sapphire

#

It brings up the camera

rough sapphire
#

I dont have an option to add payment method..maybe need to update my android

sand goblet
#

I'm on latest though

sullen thorn
#

apple pay > google pay

sand goblet
#

Hahahaha

#

Nothing supports apple pay here

#

The terminals do, the banks don't

sullen thorn
#

but google pay is supported? tf?

#

ok fine apple pay > google pay (not including the island of ireland)

sand goblet
#

They made the right decision tbh

sullen thorn
#

who apple or google?

sand goblet
#

The banks

sullen thorn
#

oh - why?

sand goblet
#

Because people with iphones have bulky cases that block nfc

#

So they don't break their glass bricks

sullen thorn
#

ngl dont think ive met anyone with a case that actually blocks nfc... maybe ireland is different?

#

or maybe we're uni students and cant afford a case anyway

sand goblet
#

People largely don't have the income to replace a broken phone here

#

:P

sullen thorn
#

ot but u any good with small website stuff / flask?

fervent dock
#

it is known that cases only block nfc in ireland

sullen thorn
#

(not the programming bit, just like the concept)

rough sapphire
#

Apple is dead

sullen thorn
#

how is apple dead?

#

ah ok ireland needs better cases then

fervent dock
#

eve ate it mad

rough sapphire
#

well you know..they got the Huawei exec arrested.. and trying to block their business

#

so Chinese dumped Apple..

sullen thorn
#

how did apple get them arrested?

rough sapphire
#

Japanese already prefer huawei over even home made phones like Sony Sharp

sand goblet
#

Huawei do make fantastic devices

rough sapphire
#

Koreans just follow the trends, and they primarily prefer Samsung anyway

#

Only large customers for Apple are for macs, and that's companies like FB, Google.. and it's a very small percentage of users..

sullen thorn
#

hmm k idk how much of that I believe (although i agree huawei make good phones), but also you kinda started it badly with your chinese dumped apple statement (thats just very vague and doesnt sound true) - so imma move on and ask my flask question

#

so with flask, i have some endpoints and like login stuff

sand goblet
#

Hold up

sullen thorn
#

ok...

sand goblet
#

:P

sullen thorn
#

oooh

sand goblet
#

I'm going to bed but that's the correct channel

sullen thorn
#

will you join me?

#

:/

rough sapphire
#

I have the perfect meme for this Channel tag

sullen thorn
#

lol ok thats actually good

lime jewel
#

Does anyone here play a lot of tabletop RPGs especially if you dm them?

rough sapphire
#

rolls 2, person above you has to teach someone the dab

lime jewel
dusky orchid
lime jewel
#

oh fair, i didn't realize this really counted as that? nothing's written for it yet

dusky orchid
#

if there's nothing really added, i guess i can understand why you've held off, yeah

river anvil
#

my friends learning java for school but says hes gonna check out python when hes not swamped w/ school

#

which would be cool because then i could help him and maybe he could help me in the future when he knows more

glass gorge
#

You're going to wait for him to catch up and surpass you? yert

river anvil
#

no lol

#

idk i can only dream of a coding buddy

dusky orchid
#

same

#

i'd love someone i personally know to talk about coding

glass gorge
#

They're not as fun as you'd want em to be GWqlabsSweats

dusky orchid
#

if they're anything like i am, probs not lol

river anvil
#

yea lol my friend can be.. tough to teach sometimes

#

but i think itd be worth it

glass gorge
#

I just go to coding workshop / lectures to talk about programming

river anvil
#

not sure if he will actually like it though because he doesnt really like puzzles

glass gorge
#

At least then i can moderate it B)

river anvil
#

hes always the one exploring instead of settling down and building upon previous things

#

i live out in the middle of nowhere and move a lot so i dont think coding buddies irl would be a good idea

dusky orchid
#

there's no workshops here

vapid bluff
#

In software engineering, rubber duck debugging is a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line,...

#

and maybe itll talk back

glass gorge
#

Theres quite a few here tbh

river anvil
#

ive tried that but id prefer someone who could talk back

glass gorge
#

Not super regular, but still

#

You dont go there to talk to the lecturer yert

dusky orchid
#

what if I do

glass gorge
#

That would be weird

#

Pls dont talk to me after ive given a lecture

#

Just like, sit there

#

Consume the knowledge

dusky orchid
#

ok, no talk, just stare

#

intensely

glass gorge
#

Yes

vapid bluff
#

dont break eye contact

dusky orchid
#

no blink

glass gorge
#

Omg, this coffee was hella good

dusky orchid
#

hmmmmmmmmmmm it's been a while

#

i haven't had a coffee in maybe 4 months

glass gorge
#

Ow

dusky orchid
#

i'm a tea dude

glass gorge
#

Ah

dusky orchid
#

but i can deal with coffee

#

maybe i'll have one

glass gorge
#

I deal with coffee as a thing with my breakfast

#

Thats about it

#

Unless im really tired before a lecture

oak tangle
#

You're so imperial, Scragly

dusky orchid
#

imperial?

oak tangle
#

Tea, curry powder in your eggs

dusky orchid
#

ah yes

glass gorge
#

But coffee is supposed to give thag GWqlabsSigh feel

rough sapphire
#

"thag"

dusky orchid
#

gotta get myself a portait of the queen

#

get things going proper

glass gorge
#

Be a little ugh in the morning to set the mood for the day

dusky orchid
#

ugh as in good or bad

glass gorge
#

As in ill choke you if you comment on my pr at work ugh

dusky orchid
#

which PR?

#

and when do you work

#

i'll set an alarm

glass gorge
#

When im not at home drinking coffee

#

Is that a fetish im sensing

dusky orchid
#

depends. can i call you questionable family titles

glass gorge
#

But you dont have access to the work github ๐Ÿ˜Ž

dusky orchid
#

i can still send you DMs, PyDis Org repo comments, pings and emails

glass gorge
#

I wont be ugh about those

#

Cause they optional in my eyes

#

Work is like. Ugh, fiiine GWqlabsSigh

dusky orchid
#

fair

#

what if i just send you emails of amazing looking food when you're supposed to be working

glass gorge
#

Id look at em

#

While working

dusky orchid
#

but the drool

glass gorge
#

I dont drool ๐Ÿคค

dusky orchid
#

lies

glass gorge
#

Only when i sleek

#

Sleep

dusky orchid
#

ew, wet pillow

glass gorge
#

Do you find it weird how your body can make sounds without you feeling them

dusky orchid
#

without feeling them?

#

i'm unsure if i've not felt a sound occur

glass gorge
#

As in, its just... Sounds

#

Usually i feel something

dusky orchid
#

well i guess not, because i can listen through a stethoscope and its neat

#

so pretty normal

glass gorge
#

Like now my belly is processing the coffee

#

Going uuuugh

dusky orchid
#

see, things like that i can feel

glass gorge
#

I don't feel it now

#

Im weirded ouy

dusky orchid
#

are you sure you didn't drink a cup of local anaesthetic

glass gorge
#

Thonking

#

Ugh, this morning was gonna be the start to every other day

#

But i dont wanna go workout now

#

How to motivate

dusky orchid
#

the secret to motivation is that you shouldn't feel motivated to do something

#

the motivation usually comes after you've started it

glass gorge
#

Guess its time to pack up and hit the gym then

dusky orchid
#

exactly, my kind sir

vapid bluff
#
>>> timeit.timeit('''
k = [1,2,3,4]
k.insert(0,0)
''')
0.18706219999998552
>>> timeit.timeit('''
k = [1,2,3,4]
k.insert(0,0)
''')
0.1614819000000125
>>> timeit.timeit('''
k = [1,2,3,4]
k[:0] = (0,)
''')
0.15193120000000704
>>> timeit.timeit('''
k = [1,2,3,4]
k[:0] = (0,)
''')
0.15696909999999775
>>> 
#

why is insert() slower here?

#

might seem negligible but those tenths of a seconds could easily add up if this is something you're doing a lot

#

then again at that point you'd probably be better served by a deque anyway

glass gorge
#

Does it have anything to do with shifting indexes vs creating new ones?

vapid bluff
#

i wouldnt have a single clue

#

time to dig into the cpython repo i suppose

river anvil
#

@sand goblet wdym

tame terrace
#

he has in fact been told not to.

river anvil
#

yea

#

im not sure why but im not going to disobey the mods so

sand goblet
#

Wasn't he told not to enforce?

#

Iunno, that's what I thought

rough sapphire
#

It's for mods to enforce rules

river anvil
#

yes and then on a different occasion i was told not to direct people to an off topic channel

#

or same occasion

#

idr

sand goblet
#

I mean, I'm pretty sure I was there, and it was said that it was OK to suggest, but not OK to enforce

tame terrace
#

there's a fine line betwen those two things, yes.

#

it's obviously fine to suggest.

river anvil
#

yea i try to be careful when i suggest going to an off topic channel

#

say something like "ill be there"

tame terrace
sand goblet
#

Haha

river anvil
#

lol

glass gorge
#

I dont see the harm in pointing out something being off topic if you're following the convo and notice its way off topic

river anvil
#

yea i dont either

#

๐Ÿคท

sand goblet
#

That's what I thought he meant, I guess it wasn't :P

glass gorge
#

But telling others to move ot when youre not even part of the convo is a stretch

river anvil
#

i think the time i was warned about i did something like post the channel name and say lets go there

glass gorge
#

Im sure lemon can debunk my thought process though

tame terrace
#

no, I agree with you

glass gorge
#

I did the thing

tame terrace
#

whether you're part of the conversation is a factor

#

butting into someone elses conversation to tell them they're being off-topic is for mods to do

river anvil
#

yea i dont think i ever did that

tame terrace
#

moving your own conversation into off-topic is just you following the rules.

river anvil
#

okay well atleast that clears that up

sand goblet
#

Makes sense

glass gorge
#

One is intrusive and should be left to mods. We're the bad guys after all :๐Ÿ˜Ž

tame terrace
#

sorry if we haven't been clear enough

glass gorge
#

๐Ÿค 

sand goblet
#

I think kazo already got it, so probably not your problem :P

#

You know what I'm like

glass gorge
#

Anywho, time for maffs ๐Ÿคทโ€โ™‚๏ธ

river anvil
#

so uhm talking about before, what do you guys mean by "imposter syndrome" when it comes to code specifically

glass gorge
#

Thinking its good enough

river anvil
#

ive had it related other things mostly just personal problems but ive never had it in regards to coding i dont think

glass gorge
#

Its not *

sand goblet
#

It's a pretty well defined thing

#

It's when a developer feels like they're not good enough to be in the position they're in

#

Even if they actually are

glass gorge
#

Meirl

gentle moss
#

yah

#

i feel like that sometimes

river anvil
#

oh i guess feel like that sometimes with coding but its also mostly because im still new

gentle moss
#

mostly because of how much i'm having to look shit up and things

river anvil
#

i guess its more future imposed imposter syndrome if that makes any sense?

glass gorge
#

Tbh, everyone does that

#

Even thr lead dev where i intern admitted that most of his code is stackoverflow

#

At least inspired by so

gentle moss
#

yeah

glass gorge
#

And i can see that leading to a feeling of imposter syndrome

tame terrace
#

imposter syndrome to me is feeling that I cheated to get the job I have, that I'm completely underqualified, and that if anyone finds out how bad I am at my job I'd not only be fired but probably like sued for fraud or something.

#

even though all of that is provably wrong.

#

and I know it is. but I still kinda feel like that.

gentle moss
#

that's how i felt about some of the network admin stuff i do

river anvil
#

why is this such a common insecurity especially in regards to coding?

ivory tiger
#

heres my protip for avoiding imposter syndrome: never do anything worth posing as

river anvil
#

that sounds like bad advice

ivory tiger
#

i am very smart CoolDrool

tame terrace
#

worth.. posing as?

sand goblet
#

I don't think you shouldn't do impressive work lol

tame terrace
#

the fuck happened to that sentence

gentle moss
#

so, you shouldn't become a model?

#

ยฌ_ยฌ

ivory tiger
#

@tame terrace the joke is dont do anything that actually needs any level of qualification ya dork

tame terrace
#

I get what you were trying to say

#

you dingus

ivory tiger
#

its 3am

#

thus i am automatically cleared of all internet.. crimes?

sand goblet
#

Go bed

ivory tiger
#

i am in bed, owned

sand goblet
#

Go sleep then

ivory tiger
#

im sleep typing

gentle moss
#

don't drop the phone on your face

ivory tiger
#

[citation needed]

sand goblet
#

Where's Lucy, I need to tell her to go bed

river anvil
#

i used to do that all the time

tame terrace
#

I think imposter syndrome is prevalent in programmers because programming is this thing that appears to be so difficult when viewed from the outside, but then you get your first job and you're just fixing straight forward bugs by print()ing a ton of variables until something makes sense, and repurposing code you found on the internet.

sand goblet
#

Yeah, that's a good point

river anvil
#

im not the only one that does that?

#

i thought only noobs did that ๐Ÿ˜…

tame terrace
#

and you feel like "what I'm doing is probably not the real programming. The other coders probably know what the fuck they're doing."

ivory tiger
#

the real expert pros prolly use debug tools tbh

gentle moss
#

i still use print to debug :3

sand goblet
#

You don't always have access to a debugger :P

tame terrace
#

I do use a debugger but it amounts to the same thing most of the time.

ivory tiger
#

i do just spam prints everywhere and im a code jam champ so think of that what you will

gentle moss
#

i've never written tests or w/e for my codes

tame terrace
#

"we don't do tests" where I work.

river anvil
#

debugging almost never helps as much as printing some stuff and reading the errors

tame terrace
#

and oh

#

I do have a colleague who never uses stack overflow

#

on pure principle

gentle moss
#

lol

tame terrace
#

and his code is atrocious

ivory tiger
#

i prefer to at least have a test of "does it actually run" tbh

river anvil
#

i read stack overflow sometimes but i dont really like the people there

tame terrace
#

he writes code like a man who's never seen code in his life

river anvil
#

most of the comments are unnecessary questions imo

tame terrace
#

every time he solves a problem he reinvents the motherfucking wheel.

ivory tiger
#

seems like a simple thing but let me tell you managing a github repo with other coders is hell if you make that assumption

tame terrace
#

he wrote a flask API and it looks like an entirely different framework

gentle moss
#

is he one of those people who would try and make an email regex on his own?

tame terrace
#

haha

river anvil
#

wdym @ivory tiger

ivory tiger
#

@river anvil there are a disturbing number of people who add in code that straight up does not run

#

crashes everything on runtime level shit

river anvil
#

thats why you test your code before you commit

sand goblet
#

PR requirements are my favourite thing because of that

tame terrace
#

he wrote this validation system for his endpoints to validate input data and he wrote this automatic documentation system so that each endpoint would also allow GET requests that showed the docstring and the input and output types. .. and it's vast and confusing and there are perfectly good tools for doing either of those things already.

rough sapphire
#

Yeah I just posted about it on python discussion

#

Pushed code that does not work

tame terrace
#

he spent weeks, maybe months on it. it's such a fucking waste of time.

gentle moss
#

o_o

river anvil
#

i still need to learn how to use git

ivory tiger
#

the only people that can get away with no stack overflow is the leading edge cream of the crop researchers tbh

#

"Google superAI" level coders

sand goblet
#

I've been learning Django and my browser at home has like 30 tabs open in the programming container

#

I'd say about a quarter are stack overflow

ivory tiger
#

like, youd expect the space shuttle team to not use the stack overflow route

sand goblet
#

I don't think I'd trust them if they didn't

ivory tiger
#

but sorry ceo joe, junior programmer bobby is not a space shuttle engineer, and your email system is not a space shuttle

#

@sand goblet i would just considering the amount of testing and documentation they do

#

a one line change once racked up over 40k pages of testing logs over there

sand goblet
#

"Damn i18n changes"

ivory tiger
#

iirc in their two decades of operation theyve pushed only 10 minor bugs to production

#

and no major bugs

#

i suppose it makes sense

#

one memory leak and youve got some crisped astronauts and billions of bucks scattered across several states

sand goblet
#

Yeah, true

glass gorge
#

I'm going to spend my day writing tests for my react components today :๐Ÿ˜Ž

#

Cause I do test stuff

#

Has anyone written tests for auth0 in jest here?

sand goblet
#

Oh, that's weird

#

there's a guy on voice but if you have the category collapsed and click on him

#

It seems like he has no roles

#

but they do show if you expand the category

glass gorge
#

Bug report time?!

tiny raven
#

I just rethought my method for coding a project and realised it was the same idea but the same

#

And now it works

oak tangle
#

@rough sapphire Have you been programming in Python for long?

rough sapphire
#

Nope, I only know Python from Al Swegerts Automate the boring stuff with Python. Till 12th chapter. I still studying

#

I am*

#

@oak tangle You guys look well versed with Python..

gentle moss
#

automate the boring stuff, good book

oak tangle
#

Yeah, great way to start!

#

If you like videos, Corey Schafer also has nice video tutorials on his YouTube channel

#

They cover some topics not covered in Automate

gentle moss
#

his flask series is really good

oak tangle
#

Yeah and Automate has nothing on classes, so if you're interested in that, Corey has a series on OOP I think

glass gorge
#

Yup

gentle moss
#

i still don't use classes ยฌ_ยฌ

oak tangle
#

That's why you're always in our filter; lack of class.

hexed jackal
#

Responding to earlier conversation

#

I think using stackoverflow to get shit done is what most do because its just impossible to sit around and research every little thing u need to do in documentation. If you can go to stackoverflow, find a solution and use it in your code, AND understand why, i think its reasonable

#

Itโ€™s like learning math, you cant memorize every formula, but if youโ€™ve practised them, youโ€™ll know they exist

acoustic brook
#

things like stackoverflow mean i can be useful now instead of like years from now

hexed jackal
#

So you can look it up later and apply it

acoustic brook
#

because busy af

hexed jackal
#

Im not a professional programmer, but Ill constantly take some code from stack and modify it and use it

acoustic brook
#

I was a trucker, now I'm construction industry. automating simple things got me a job I don't hate

hexed jackal
#

Just about constantly learning new stuff and reading

#

I just got into web development, and i didnt even know i need rest apis before i learned what it is

acoustic brook
#

no idea. can you tell them to call to fewer domains so my noscript doesn't go as crazy?

vestal briar
tired osprey
#

its just that bisk always well

#

does bisk things like saying evil words which get detected by the bots and then the admins get a ping

river anvil
#

does java have dictionaries?

dusky orchid
#

it has JSON

#

oh wait, java

#

Map

#

you can use HashMap for a similar setup to python dicts

river anvil
#

ok

tame pier
#

Yeah, HashMap

vestal briar
#

Having a problem with Flask template routing

#

I have 2 views that both render 2 seperate about.html pages

#

They only render 1

#

They are in completely diffrent blueprints so I don't see why this should happen

rough sapphire
#

hey guys

#

im having issues with my code architecture

#

should classes depend on specific classes or be as general as possible and have the code that calls the class worry about implementation?

#

i might have mentioned this before but i didnt really get a response

dusky orchid
#

the question feels obscure

rough sapphire
#

okay

dusky orchid
#

can you give a use example

rough sapphire
#

sure

#

say i have a todo app, and that todo app has a task manager dialog (and a python class to manage the logic) and that task manager dialog has a datetime popover class to manage the logic of a date time popover. Should that date time popover just expose things like hours, minutes, days month and years? or save that information to an arrow or datetime object which it then uses as an interface with the task manager?

#

so in my example, should i use a specific class like an arrow or datetime object to interface between the datetime popover and the task manager? or should i just expose the things like the hours, minutes, days, months and years, and leave it up to the task manager on how to handle those details?

#

am i making sense?

#

guys?

#

@dusky orchid ?

dusky orchid
#

i like to have models provide the attribute values that would be needed by anything

#

if something could use the hrs, mins, days, mnths, yrs individually, then sure why not

#

otherwise if it's something that is only ever accessed as a whole, and only really useful as a datetime-like object

#

why not provide that

rough sapphire
#

i guess so

dusky orchid
#

this is one of those things that entirely up to the intended usage and friendliness of the api

#

so up to interpretation

rough sapphire
#

okay, let me paste my code

#

in terms of architecture

#

it feels....wrong

#

i dunno

#

its just im using the interaction between the datetimepopover and the task manager, to guide me on how to handle the interaction between the task manage and the main window code

dusky orchid
#

i don't use gtk, so i'm not really the person to review the model

#

also i've got at least 6 other code reviews waiting for me in the org repos ๐Ÿ˜…

#

all i can say is try using it

rough sapphire
#

oh

dusky orchid
#

if there's things you never use, then maybe they're mostly useless

#

if things feel clunky, refine it

rough sapphire
#

i think i use everything so far

tame pier
#

It seems fine to me

rough sapphire
#

i just feel its wrong to depend on the arrow object for interaction

dusky orchid
#

these things are definitely part of an iterative process of using and refining

#

but overall, the model seems clean

rough sapphire
#

thanks

dusky orchid
#

if you don't want arrow, use the builtin datetime objects

#

it's usually better to do that in order to keep code relatively agnostic

rough sapphire
#

yeah, thats the issue im having, whether i should depend on a wrapper class or just expose the properties. In this case, arrow would be the wrapper class, but for the task manager class, it would have to be a custom low level Task() class, that would make the task manager unable to be used without having that class

dusky orchid
#

if you can say for sure arrow will always be available on anything you use this code with, it doesn't matter as much

#

but if you ever want to move or copy this to somewhere it isn't, you'll not want to depend heavily on a 3rd party lib

rough sapphire
#

so it would be best to just leave the other properties and remove the arrow properties?

#

and leave it up to the caller, whether they wish to use arrow or not?

#

the conflict im having, is i dont know if its better for my code to be reusable and as agnostic as possible, or to integrate other stuff that would be useful

#

because in the datetime popover example, if i remove the arrow dependency, the popover cant have the option to set to the current date/time anymore

tame pier
#

Why not use datetime.datetime.now() instead of arrow.now()?

rough sapphire
#

okay

#

but this is just an example

#

i still dont know if i should make things agnostic or "depend on other classes" as it were

dusky orchid
#

lean towards stdlib deps

#

unless it's for very very specific application models

#

not libs

#

if anyone is going to import your code, leave it to the user if they wish to use a 3rd party lib preferrably

rough sapphire
#

yeah

#

im wondering if i should start with the simplest class i have, then incrementally add functionality by wrapping it in other classes

#

so in my example, id have an arrow free class, then create a datetime popover subclass that offers the arrow property, if a user wishes to use that

tame pier
#

there's no reason to offer that

#

If someone wants to use arrow, they can convert the datetime object you provide into something usable with arrow

#

with a minimum amount of effort

dusky orchid
#

ye

tame pier
#

It's a waste of energy to provide a feature that ultimately has little benefit to the user and is unlikely to see much if any use.

dusky orchid
#

for example, i personally wouldn't use arrow

#

i don't like it

#

i would use pendulum

#

everyone has their own set tastes with libs they use

rough sapphire
#

huh

#

okay

#

ive been thinking, maybe i should focus less on making my code reusable

#

i mean, it would be simpler to just code what i need to get this app to work

#

and dont worry about anything else

#

right?

#

at this point im so confused ๐Ÿ˜ซ

dusky orchid
#

are you making a lib or an app

rough sapphire
#

an app

dusky orchid
#

then don't worry about it

#

the models should make sense and be self documenting, but you don't need to worry about the cases of "will other people want to use this lib" because they don't have a choice, it's an app

#

way less thinking involved

rough sapphire
#

yeah

#

one last thing, if an object has an inner object, is there a way to "pass" through the properties of the inner object?

dusky orchid
#

what do you mean

#

like a class has an attribute that's of another class type?

rough sapphire
#

yeah

dusky orchid
#

like member.guild?

rough sapphire
#

yeah

dusky orchid
#

you'd simply map the attributes

#

it's better to respect clear namespaces though

rough sapphire
#

yeah

dusky orchid
#

if it's directly relevant to the main class though, sure why not

#

just self.attributename = self.someobj.theirattribute

#

if you wish to transform it in some way, utilise a property

rough sapphire
#

yeah

#

and that would work for both getting and setting?

dusky orchid
#

no, you'd want a property for that

rough sapphire
#

oh

#

ohh okay

#

thanks!

#

wheres the kinks

#

lol

#

hey guys, what do you think about this indentation style?

while (x == y){
something();
somethingelse(); }

tame pier
#

K&R? Meh.

rough sapphire
#

whats that

#

k&r but the last brace is on the same line as the last statement

tame pier
#

In computer programming, an indentation style is a convention governing the indentation of blocks of code to convey program structure. This article largely addresses the free-form languages, such as C and its descendants, but can be (and often is) applied to most other progra...

#

I like that even less

rough sapphire
#

oh

#

what do you use?

tame pier
#

I use Python

rough sapphire
#

really? i wouldnt have guessed!

tame pier
#

Otherwise Allman

while(True)
{
    ...
}
#

You're on a Python server so I couldn't resist ๐Ÿ˜‰

rough sapphire
#

lol

#

thats what i used to do

#

but the extra line kept breaking my train of thought

#

because i see blank lines as differences in logic

#

i think ill keep my method

#

a combination of K&R and lisp

#

it just looks more pythonic

#

the only issue is if the indentation from stuff being in a bracket is the same as the stuff outside

#

then i just over indent

tame pier
#

I used to use K&R but have come to like Allman more the last few years

#

having the ending brace on the same line as code is honestly infuriating

rough sapphire
#

why?

#

the biggest issue i have with allman is that its not usable with things like function parentheses or assignment to lists without escaping the enter key

#

eg

#
[
    1,
    2,
    3,
]```
#

which just looks...odd

#

with k&r, python already follows that when it comes to function parantheses and arguments, eg

    1,
    2,
    3,
]```
#

It has a name! Pico indent style :)

#

lol, i think its the least used indent style

steel fox
dusky orchid
#

evo stone would better being cubone mask

#

gen 1 lavendar throwbacks

steel fox
#

True

river anvil
#

why wont my batteries work

#

my battery tester says their fine

#

but my remote doesnt work when i put them in

rare pivot
#

Could it be your remote not working? :D

river anvil
#

partially this remote is garbage but i just had batteries in it and they worked alright up until they started to die

#

then i got new ones that are exactly the same but unused

#

and now they wont work

empty canopy
#

anybdoy have any knowledge on RasbPis?

river anvil
#

probably, you should ask your question though :p

#

unless you just wanted to confirm that someone here had knowledge of raspis ๐Ÿ˜›

empty canopy
#

oh iwas just wondering what are some cool projects to do with one

#

with this stuff

#

and idk what to do w it

river anvil
#

why get that when you can get a raspi 0 with a camer and stuff and do something cool

#

idk

#

uh

empty canopy
#

i wanted one with some oomph

river anvil
#

does it have an interface?

empty canopy
#

i was thinkin gabout running my router through it and adding a WiFi wide ad blocker

#

nah i can just ssh

#

i dont need a GUI

#

but

#

it has an HDMI adapter

river anvil
#

i mean a physical one

empty canopy
#

so i can plug it into my computer

#

oh

river anvil
#

ok

empty canopy
#

@river anvil by phys interface u mean like an HDMI port right?

#

(im very new to the hardware side of things) only other board i have is an ATTiny85 dev board for rubber ducky shit

river anvil
#

idunno

sand goblet
#

I've got a couple rasppis

#

One of them just runs arch (alarmpi), it's got a SAMBA share on it and that's about it, but it's an older pi

#

I also have a 3B+ and that one is running HassOS

#

which is to say, I'm using it for Home Assistant

river anvil
#

what does your home assistant do?

#

is it just alexa but less creepy

sand goblet
#

it's a big hub for all the stuff in my house

#

z-wave devices like plugs and an outdoor sensor

#

sonos/spotify connect

#

google wifi stats

#

it reports my location and the locations of my family members

#

which is often pretty useful

empty canopy
#

I just bought a 3B+

sand goblet
#

it's also got my CCTV

#

I'm gonna hook it up to the Sky Q boxes in my house so I can see what people are watching and stuff

empty canopy
#

i think im going to use it to 1. act as an interface between my computer and LEDs like a wireless controller (i wanna write my own software for it) and a housewide adblocker (saw it on youtube)

river anvil
#

thats more creepy than alexa

empty canopy
#

@sand goblet remind me to never rob ur house

sand goblet
river anvil
#

thats a cool front end

#

did you make it

sand goblet
#

my homeassistant also does stuff like providing airplay targets for my sonos/chromecast devices

#

frontend is bundled, but you can customize it

empty canopy
#

Is it react?

sand goblet
#

hell if I know

river anvil
#

im surprised theres no #home-assistants channel

empty canopy
#

wait is bundled the name of the gui?

sand goblet
#

bundled?

#

the gui is called lovelace

empty canopy
#

what is that media player for?

sand goblet
#

That is for a Sonos speaker

empty canopy
#

omg is that where people ar ein the house up top

sand goblet
#

Where in the house? No

#

Actually I only have two zones set up so far

river anvil
#

spa?

empty canopy
#

"Spa" and "Home"

sand goblet
#

Home, which is.. y'know, home

#

and spa, which is where I work

empty canopy
#

ah i see

#

thought u might of had a hottub at the house or something'

river anvil
#

spa gaa?

#

you dont work from home?

sand goblet
#

I don't work from home no

river anvil
#

huh

empty canopy
#

I could work from home

#

i should of yesterday

sand goblet
empty canopy
#

instead i was late to the engineering stand up and its so awk walking into everybody talking

sand goblet
#

this is what I have to use at the office lol

river anvil
#

aa

#

its so bright out there

#

its 2 am

#

for me

#

pitch black

sand goblet
#

go bed

river anvil
#

im eat

empty canopy
sand goblet
#

GO BEd

empty canopy
#

this is my setup rn lmao

sand goblet
#

that your home setup?

empty canopy
#

but im getting a new computer in a few hours (hopefull if UPS doesnt slack)

#

yeah

#

Ill show u work later when i get to the office

river anvil
#

i dont have aphone on me but i have a laptop and a cheap mouse + mousepad

empty canopy
#

i swear i have the easiest engineering job ever

river anvil
#

on a couch

empty canopy
#

@sand goblet will you ever join the higher ups again

sand goblet
empty canopy
#

oh damn

sand goblet
#

knew I had a photo somewhere

#

Join? you say that like it's my choice

empty canopy
#

well listen i have a laptop thats about to blow up sitting on the floor being cooled by 2 table fans

#

im replacing it tomorrow tho

#

well isnt it?

#

you chose to leave did u not

sand goblet
#

Yup, I did

#

It's probably better this way, some of them are even more emotional about it than I am

river anvil
#

semantics aside i think he was asking if youd ever reapply

sand goblet
#

There's no application process

#

You get picked

empty canopy
#

I thought u were just on temp leave

#

u were an owner right?

river anvil
#

what was the drama w/ you and the staff

sand goblet
#

Drama?

#

I was an owner, yes

#

it wasn't intended to be temporary, no

river anvil
#

you said some people didnt like you being staff

empty canopy
#

i took the . "break" part as temporary

sand goblet
#

I didn't write that

empty canopy
#

yeah ik

river anvil
#

it was clarified later on

empty canopy
#

ah ok

#

must of missed it

sand goblet
#

actually I wasn't consulted about it at all :P

empty canopy
#

oof so it wasnt ur choice?

sand goblet
#

huh?

#

I meant the announcement

river anvil
#

did you miss what i said or are purposely not answering it?

sand goblet
#

huh?

#

Oh, I missed it

#

People didn't like me being staff? No, I don't think that's entirely right

river anvil
#

you said something like that in meta

#

a week ago or so

empty canopy
#

do you guys know any tools for macOS that are like prntscrn?

sand goblet
#

I think I probably said they had a hard time dealing with me not being owner

empty canopy
#

getting tired of the macOS screenshot feature

river anvil
#

why?

sand goblet
#

Because I always was

empty canopy
#

oh

sand goblet
#

I've been here longer than most of the staff

empty canopy
#

wow

#

does the original owner still dwell here?

sand goblet
#

No

empty canopy
#

or is that lemon

river anvil
#

how was not being staff at all different than being not owner

empty canopy
#

ahh

sand goblet
#

That was a guy named Nereus

empty canopy
#

what happened to him

river anvil
#

lemon wasnt the original owner?

empty canopy
#

i love big servers for this reason

sand goblet
#

Well, he went AWOL

empty canopy
#

theres always like a story behind the OG owner

sand goblet
#

It was before I was even here

#

He was super busy with school

empty canopy
#

sounds like r/jailbreak

#

except that got messy

#

adn still is

sand goblet
#

Joseph was a secondary owner

#

At some point, Nereus appeared and appointed this guy nobody had heard of as an owner

empty canopy
#

lemon?

sand goblet
#

No

#

I think his name was.. burnitdown?

#

Anyway, nice guy

#

But he was basically just there to report back to nereus

empty canopy
#

ah

#

like a delegate

sand goblet
#

yeah

#

I think he knew him IRL

empty canopy
#

prob

#

or from a diff community

sand goblet
#

he actually gave server ownership to this guy

empty canopy
#

doubt he'd leave a sub's discord as big as this one to a rando

sand goblet
#

like, overall ownership, transferred it

empty canopy
#

oh wow

#

like delete server perms

river anvil
#

who has overall ownership now?

sand goblet
#

anyway, eventually we all had a big chat with burnitdown, the entire staff agreed that joseph should have it, and that's what eventually happened

river anvil
#

joseph has it?

sand goblet
#

yep

river anvil
#

ah i thought that was lemon

sand goblet
#

well the server is partnered

empty canopy
#

yeah me too

sand goblet
#

Check the profiles

empty canopy
#

yh

river anvil
#

what

empty canopy
#

wait

#

shouldnt it have a check mark?

#

or is that gaming servers

sand goblet
#

no, that's something else

river anvil
#

nope

#

its not official

empty canopy
#

"verified"

sand goblet
#

you can see that joseph has partnership and lemon doesn't

empty canopy
#

ah true

sand goblet
#

yeah we're not official, so no checkmark

empty canopy
#

well u partnered

sand goblet
#

they did ask us if we were in the application iirc

river anvil
#

yea but not official

sand goblet
#

yes

empty canopy
#

wtf

#

it sends link without http?

sand goblet
#

yes.

empty canopy
#

sorry bout that

sand goblet
#

discord logic

#

:P

#

it's our invite, who cares

river anvil
#

i remember i found this server on a reddit post with 12 views and a downvote made 2 years ago lol

empty canopy
#

true

#

ยฏ_(ใƒ„)_/ยฏ

river anvil
#

funny how far its come

empty canopy
#

idk when i joined

sand goblet
#

yeah that's how I found it

#

one of joseph's reddit posts

empty canopy
#

but i was banned for a good 6 mo.

#

then KnownError appealed for me

river anvil
#

that was joseph?

#

!joined

#

whats the command

sand goblet
#

and I was fucking psyched because it was the kind of community I both wanted to be part of, but also the type of community I'd been trying to start myself for nearly a decade

river anvil
#

!profile

empty canopy
#

#bot-commands

sand goblet
#

you can't get another user's info

#

iirc

river anvil
#

i wanna know mine

#

!info

#

!user

royal lakeBOT
#
Nah.

Sorry, but you may only use this command within #bot-commands.

river anvil
#

aw

sand goblet
#

anyway, to answer your question, kazo

empty canopy
#

did u leave or something @river anvil

river anvil
#

no

sand goblet
#

I had been thinking of leaving staff for.. quite some time

#

before I actually did it

#

the staff knows that because I used to talk about it

#

while the actual quitting was impulsive and over something stupid, I quickly realised that I did need to take the time to look after myself, and decided not to go back

empty canopy
#

sometimes its better to distance urself from things

river anvil
#

why did you do it at first?

empty canopy
#

im sure the size of this discord and amount of responsibility is a lot as well

sand goblet
#

I used to get annoyed at how joseph behaved in staff channels, because he is kind of a kid sometimes - but really, you kind of expect that given that he is a teenager

river anvil
#

what else do owners do besides make decisions and be in charge of staff

#

lol yea

sand goblet
#

so this was one of those times, I decided to block him for like half an hour so I could go cool off and lemon chimed in with a stupid meme

#

so I was like fuck it and left

empty canopy
#

ahhh

#

joesph is a teen?

#

that makes more sense

river anvil
#

yea hes 15 iirc

sand goblet
#

yeah

empty canopy
sand goblet
#

I stayed away from this server for about a month

empty canopy
#

that explains why i was banned so quickly

river anvil
#

ay dont blame your ban on the kid

empty canopy
#

this is the first time ive been active for more than just a quick question in 2 months

sand goblet
#

I came back to hang out, maybe provide a bit of help, and also because I had some stuff I needed to ask

empty canopy
#

anything we can help w?

sand goblet
#

lemon extended an olive branch in the form of helper and contributor

#

I was kind of apprehensive, but I took it

empty canopy
#

why dont u have either?

sand goblet
#

I'll get to it

river anvil
#

getting back to my question earlier, what else do owners do besides make decisions and be in charge of staff?

sand goblet
#

dammit kazo

#

it's story time

river anvil
#

wow

sand goblet
#

:P

river anvil
#

were you avoiding me ๐Ÿ˜•

sand goblet
#

questions soon

river anvil
#

okay

sand goblet
#

it was immediately clear that the rest of staff weren't entirely used to the idea of me not being owner

#

some of them were immediately offering to promote me to mod and higher

#

one guy wrote a multi-page essay slamming some of the dev decisions myself and another staffer made before I left

river anvil
#

?

#

why

sand goblet
#

because he disagreed :P

river anvil
#

sounds like an ass ngl

sand goblet
#

anyway, that was the thing that made me realise being staff was a bad idea, at least for now

#

so I rejoined the server to clear my roles

empty canopy
#

must of had a boring life if he wrote a multi page essay

#

i went through somethign like that with my old server

sand goblet
#

Eh, the guy has some strong opinoins, it's one of the things that helps him be decisisve as a developer

empty canopy
#

gave ownership to my co but ran things from behind closed doors

sand goblet
#

descisive?

#

descicive?

#

can't spell

#

so yeah, that's basically where I've been at since then

empty canopy
#

Are you saying

sand goblet
#

but you know, I get it

empty canopy
#

they made a descision

#

or

sand goblet
#

it's not easy for them either

empty canopy
#

divided on one

#

Divisive or Decisive

#

Decisive

#

yeha

#

ok

#

i get it no wlmao

sand goblet
#

:P

empty canopy
#

sorry havent slep yet and its 6am

sand goblet
#

you've gotta understand that like

empty canopy
#

got work in 3 hours yeet

sand goblet
#

for a lot of them, this is the first big community they've looked after

empty canopy
#

Yeha i can imagine

sand goblet
#

and nothing like this has ever happened here

#

so I don't really blame them for not knowing how to act or getting upset or whatever

river anvil
#

how did the server even get this big?

sand goblet
#

the one thing I don't like is that there has been a tendency to sort of tiptoe around me because the thing was related to mental health

empty canopy
#

reddit

#

its the official Python server

river anvil
#

no its not

#

lol wat

sand goblet
#

but like I say, understanding how to deal with that stuff doesn't really come naturally

empty canopy
#

is it not?

river anvil
#

no

sand goblet
#

it is the official server of r/Python yes

empty canopy
#

yeah

#

i meant for the sub

#

not python,org

river anvil
#

ah yes

sand goblet
#

I think the initial growth was mostly reddit

river anvil
#

how did it become to be the official one of the sub

sand goblet
#

There were some earlier server partnerships

#

some of them were great, some of them were kind of terrible

#

we ended up absorbing an entire other server, Do You Even Python

#

that's where this comes from

#

:P

river anvil
#

oh

sand goblet
#

a lot of their staff are staff here now too

#

The staff here is great by the way, I could vouch for pretty much all of them

#

anyway, to finally answer what macs asked

#

just asking to come back is out of the question, and right now I'm still not sure it's a good idea

#

it's out of the question primarily, I think, because staff feels like I've been away too long

#

I can't really speak for their own internal reasoning though, since I'm not privvy to it

#

it's not like I don't miss it, by the way

#

running a large python community is something I've wanted to do for most of the last decade, and until this place I was never successful in any capacity

river anvil
#

thats a very specific dream

sand goblet
#

ยฏ_(ใƒ„)_/ยฏ

#

it is what it is

river anvil
#

yea

#

uh so my question, what responsibilities come with ownership?

sand goblet
#

owner is a very involved role here

#

veeeery involved

#

everything from working with other communities and companies, to making decisions, to figuring out PR, to heading up devops

#

it is a metric ton of work

river anvil
#

sounds like it

sand goblet
#

it's very rewarding though, or at least it was for me

#

mm

#

this situation has been quite tricky for everyone to deal with I think

#

when I first left, everyone was quite supportive, but there was this obvious assumption that I would be back

#

it didn't entirely feel like I was being taken seriously

#

I think they get it now

#

but I know there are a few staff members that are unhappy with me because I've had a hard time learning to like, not owner people

#

which is fair enough, really

#

this isn't the first time I've explained my viewpoints on this either, but most of the people that I've told this story feel like the "being away too long" thing is kind of bull

#

I think I kind of accepted it because I do have a lot of self doubt and other related issues, but at this point it's like

#

I trust the judgement of staff as a whole

#

so it's probably more than that

#

whatever it is is probably none of my business, and it's also probably none of yours either (no offense), so probably none of us will actually hear what it is :P

#

but that's okay

river anvil
#

yep im okay with not knowing somtimes the less is better

sand goblet
#

Nah, I wouldn't mind knowing

#

a chance to grow is always a good thing

#

but it's not my decision, yknow

river anvil
#

thats why i try to avoid replying when i have nothing left to add and why sometimes i try my best to not be a perfectionist and just let things be the way they are

#

life treats you better if you just let things go sometimes

#

atleast thats what ive learned

#

sometimes i take blame for something that wasnt my fault

#

or apologize when i did nothing wrong

sand goblet
#

well sometimes you just have to suck it up, but I disagree that it's a good way to live life

#

but it's not really about perfectionism

#

everyone has a reputation, and these days it's one of the most important things

river anvil
#

idk it just reminds me of this experiment a guy did a while ago

#

you know the prisoner dilemma thing

#

where you can defect to your accomplice or be cooperative

#

anyways there was a guy a while back who had people mail in stratedgies for this program to run against others

#

and he found the most succesful one was one labeled forgiving tit for tat

#

where sometimes it would do what the opponent did

#

and sometimes it would let defects slide

#

i could probably find this for you if youre interested

sand goblet
#

I think I get the idea

river anvil
#

sorry i got carried away there

sand goblet
#

Nah it's fine

river anvil
#

i think reputation is important you can ruin it just as easily by not letting things go

empty canopy
#

went into #ot1-philosphical-speaking

river anvil
#

lol

sand goblet
#

I think that with this situation

#

like, you asked me about the drama

#

I don't think I'd call this drama per se

#

and it feels like kind of a write-off to just label it that

river anvil
#

what would you call it then?

sand goblet
#

life? :P

#

I mean the vast majority of this was handled like an adult would

#

aside from the giant essay there isn't really anything to complain about

#

that's the only thing that reaaaally made me feel like shit

river anvil
#

it sounds like some petty thing i wouldve done a year ago

empty canopy
#

i hate essays

sand goblet
#

I do feel bad and a little disappointed that there probably isn't a place for me on the team anymore,

#

but I won't apologise for taking the time to look after my mental health

river anvil
#

it just sounds incrediably stupid and not worth anybodies time

empty canopy
#

youre still a part of our community

river anvil
empty canopy
#

and still have the respecvt of a lot of people

sand goblet
#

you have to understand how conflicting this is though

empty canopy
#

ive had nothing but good conversations with you

sand goblet
#

like even the otnames

empty canopy
#

soemting i cant say about the others

sand goblet
#

look at ot0

empty canopy
#

is that from u

#

gdude

#

omg

river anvil
#

it refers to the g in his name

sand goblet
#

I considered asking for them to remove all of the otnames that refer to my name

river anvil
#

theres a lot of those

empty canopy
#

i thought it would of been geodude

#

like the pokemon

river anvil
#

i think it stands for gareth

sand goblet
#

none of them are correct

river anvil
#

right

sand goblet
#

yeah

river anvil
#

๐Ÿ˜„

empty canopy
#

damn is this just public info that ive never witnesse

sand goblet
#

yes

river anvil
#

yep

#

its his github name

sand goblet
#

it came from a joke that lemon made originally in a staff channel

#

sort of took off from there

#

every day, the G stood for something else

#

so then when the otnames came around a bunch of them made it in

empty canopy
sand goblet
#

but yeah I dunno

river anvil
#

theyre probably just trying to be nice

sand goblet
#

part of me doesn't want to be remembered

river anvil
#

:/

empty canopy
sand goblet
#

and I haven't quite figured out how to deal with that yet

empty canopy
#

i think you should just keep doing what your doing

river anvil
#

just... let it go.

#

let it be

sand goblet
#

take it easy, elsa

river anvil
#

lol

#

i mean what i was saying earlier

sand goblet
#

I know. :P

river anvil
#

dont hold onto it

empty canopy
#

if you are remembered you're remembered as a good guy who helped out and used to be an owner. if you arent... well so what a bunch of people from a discord shouldnt matter to you

sand goblet
#

that's easy for you to say

river anvil
#

theres a latin word for this that i cant think of right now

empty canopy
#

sorry if my input is unwarrented just thought id get that out there hate to see u down