« first day (4349 days earlier)      last day (824 days later) » 

09:24
@perth please read the room rules.
@roganjosh I don't know C but I can tell you, it's easy to make something that's still slow compared to interpreted implementation. It all depends on what is being done, optimization, etc.
Oh sure, I don't doubt that, but the general lack of competition in that space just hints a bit to me that people would rather just use other tools than to invest too much time in a C web framework
yeah, I guess. It's already hard to deal with existing web frameworks and some of their questionable design, so dealing with another layer of complexity (eg: C) is probably hard for some people, or I guess time consuming
10:13
does anyone know how to merge two nested dict? I mean, I looked at a couple existing SO answers, but my case is different from the different existing post: dpaste.org/FrALL
yep :o Thanks! I guess I didn't look at all answers
10:35
and type(dict2[key] == dict) oof
 
2 hours later…
12:22
@vaultah yeah, they could have just used isinstance I guess. I remember once doing str(type(something)) == "type_here" when I didn't know better
type(dict2[key] == dict) will usually evaluate to bool
13:19
ahah this company provides template for internal Python repositories with a classic directory structure, except that src is considered to be a Python package
And they treat it as package, force-calling mypy -p src in CI and insisting that developers use absolute imports (from src.module import name)
CI comment: # Code quality check, CI action: mypy --package src 🤡
14:01
[me, knowing nothing about classic directory structure] heh yeah, who would ever do that >_>
 
1 hour later…
15:06
You don't have to look further than the import statement: Who names their module src? That's bad design, plain and simple
Having a src directory is fine, but turning it into a package? Get outta here
15:19
"Mr developer, do you want to run a script? Do python -m src.script"
Does SO chat send a new message for each edit? It does Nope, then what happened there?
Spotty internet connection?
Nope
I guess I edited the message too fast. Yes, that's the reason :/
15:50
@vaultah the chat system does send a message again but with a event of "edited message" rather than "new message" blah blah blah
it has its burps where I've typed something and then it just comes up twice
or says I've posted too fast and then just displays it anyway!? shrugs
16:12
@vaultah oh my lord. If they're absolute imports, then in order for that to work after packaging, kinda implies that it's still true for the packaged version. Now after I pip install awesomething I have to import src.awesomething? I mean, maybe if it's a namespace package with no __init__.py and the company happens to have a name that abbreviates SRC
@KarlKnechtel wait, that may explain why I had to do this once for some forgotten package from pip
@JonClements this happened to me a dozen times here
16:43
If only the standard library were a package... then we wouldn't need absolute imports, ever, and we'd also sidestep the problem of random name collisions
er, except to import the standard library :)
wait, no, I said it totally wrong.
I mean, absolute imports would consistently mean "import from another package", and other packages (including the standard library) would never accidentally import your (or each others' stuff)
"Explicit is better than implicit", and "Namespaces are a honking good idea -- let's do more of those!". Java has understood the idea forever.
I mean, Java doesn't have relative import, but it does have java.lang.*
17:30
cabbage
17:49
coworker: "we might be able to delete method A there. Looks deprecated-ish."
Me: "but it's being called by method B."
Them: "B looks deprecated too."
Me: "but the reticulation status page calls method B"
Them: "but how many of our users look at that page, really?"
To their credit, the answer might really be "none"
 
2 hours later…
19:32
Hello
Folks, what's a good python library for writing SVG files?
The graphics I want to draw is similar to electronics schematics.
SVG is fairly xml-like, so, ElementTree?
Half the time when I do SVG work, I just do everything from scratch with string joins and such
Granted, the vast majority of my SVG work is simple lines and polygons
19:47
For what it's worth draw.io allows you to export drawings as .svg files.
English phonetic spelling is nuts. Zugzwang? tzoog-tzwang. Look at this insane word; how can it be so accurate?!
Oops, it should've been "tzoog-tzwung"
Stupid german brain wouldn't let me copy it without a "correction", apparently
20:25
The pronunciation guides I'm finding go with "tzoog-tzwang"? At least to my ears
It should be more of an "ah" sound than an "eh" sound
...so naturally the letter "u" is a better fit than "a"
I tried to find an audio sample with correct pronunciation, but mission impossible
FWIW I wasn't aware of this word and I would just have read it with its literal spelling and just eaten the embarrassment of both not knowing what it means and knowing fully well I just said something completely wrong
I'm pretty sure a lot of people are in the same boat, and there's also another very large boat filled with people who use it incorrectly
20:41
Does it exist more-generally in formal German or really just in gaming cases? For example, we could say here "Someone with a pushchair came on the bus so I felt compelled to move from the front seat" or something similar but the description of the word only seems to be in this one context
And I say "formal German" because that example phrase in English I gave probably wouldn't be the first expression someone would jump to unless they were writing something formal
I don't think it's used much outside of chess tbh

« first day (4349 days earlier)      last day (824 days later) »