![](https://lemmy.hogru.ch/api/v3/image_proxy?url=https%3A%2F%2Fprogramming.dev%2Fpictrs%2Fimage%2Fa1da9011-b17f-4199-8dd5-46b9615e43fd.png)
![](https://lemmy.hogru.ch/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fpictrs%2Fimage%2Fa64z2tlDDD.png)
This is why we have journalists - worst case, take this information to some newspaper, who will likely LOVE to poke the bear.
OK, maybe that’s a little idealistic, but at least you can try, eh?
This is why we have journalists - worst case, take this information to some newspaper, who will likely LOVE to poke the bear.
OK, maybe that’s a little idealistic, but at least you can try, eh?
weird dude who writes raw HTML
Eyy, that’s me! Good excercise to learn actual HTML, instead of directly trying to jump into <insert random JS framework> and getting confused on what’s what.
Anyway, I ended up switching to Hugo as a static site generator, because it was too damn hard to keep all my <header>, <nav> and <main> aligned for all my HTML files.
Now I can just write a markdown file as an article, or switch back to raw HTML if I so need (like rewriting Alan Turing’s paper " On computable numbers" in HTML because I can’t use TTS on the PDFs I found; I still haven’t finished writing it, because I am now reading E. F. Codd’s papers on the Relational Model, which is pretty wild how we already figured that shit out in the 1970s!)
Soon, Firefox can block ads better than Chrome. Ads are annoying. I see Chrome losing at least a 5% of the market, if not more, to Firefox, just because they’re going to break uBlock Origin, and Firefox isn’t.
Just ask whether they can provide a phone as well.
Huh? Did someone claim that???
https://en.wikipedia.org/wiki/Serial_port
Because there’s going to be kids around here who have never seen this port (other than maybe on a Point Of Sale (POS) system?)
Pasting into notepad is good enough, where I and l actually look different.
I hope you can install Firefox, because The Googs is pushing for Manifest v3, which means no more functional adblock.
Linux or bust, babyyyyyy
just like followers of religion
We say that shit, because we’ve touched code that’s deeply inherited, and it was a god-damn pain to work with, because changing a single line can mean you’ll need to update a fuckton more, which breaks tests all god-damn over, which means you may have to refactor 50% of the application in one go.
Anyway, everything has its uses (even goto). It’s just there are typically better alternatives.
“sum types” and “algebraic data types” are horrible names.
Agreed, but they exist due to historic reasons, and now we’re stuck with them. Not much we can do there ¯\_(ツ)_/¯
Pretty much the equivalent of “imaginary numbers”.
Terrible name that just means “vertical number line” (with an added operation where you rotate the vector, instead of add or scale), or “y-axis for the number line”. It’s funny because “Real” numbers are about as real as “Imaginary” numbers. Both are virtual (not physically existing).
str | int
is a sum type
It just means that the variable can either be a str
or an int
. You’ve seen |
used as “bitwise or”, right? Think in that direction.
PS: Stay away from Monads - they’ll give you an aneurysm. 😂
I’m confused why you’re asking for feedback. You already chose Svelte and Sveltekit, no?
Here’s my feedback anyway: I like Python and dislike Javascript. Yes, Python is slow (though that can be offset via Pandas, among other libs) but it’s relatively painless. Unlike JS, which is quite painful to work with. JS libs also come and go every few years, whereas Python’s seems a bit more stable in that regard.
But it also depends on whether I’m part of your target audience - who is your target audience?
Also, regarding better formats: parquet is relatively nice. Smaller files, though not human readable. Use parquet if you read often, or have IO issues (file “too large” as CSV).
What’s even the “gold standard” for logging stuff I guess?
structlog. Or just Structured Logging in general.
Don’t do:
logging.info(f"{something} happened!")
But do
logging.info(“thing-happened”, thing=something)
Why? Your event will become a category, which means it’s easily searchable/findable, you can output either human-readable stuff (the typical {date}, {loglevel}, {event}
) or just straight up JSONL (a JSON object/dict per line). If you have JSON logs you can use jq
to query/filter/manipulate your logs, if you have something like ELK, you can insert your logs there and create dashboards.
It’s amazing - though it may break your brain initially.
I see an Arjan video, I upvote. This guy really boosted my Python knowledge during my Junior years.
I’m pretty sure you can disable the bleeps and bloops people are complaining about - get a tool, then don’t spend any time to learn it and then suffer using it.
a free forum
“Oh great, I’ll have to create another fucking account” - me, already having some 300 accounts in my key-vault…
When do the Predators show up? :p
Doesn’t MANIFEST.in
specify which other-than-the-known-package files and folders to include?
I bet you need to add them to the MANIFEST.in
.
I use poetry, so I don’t need the MANIFEST.in
, but I used it use a setup.py
a few years ago, which is why I somewhat know of it.
https://packaging.python.org/en/latest/guides/using-manifest-in/
OK, but why would I use this over ABCs? (Abstract Base Class). Or is it just different?
One of the saner reasons for this structure is that the non-profit owns the things the for-profit works on. If the for-profit goes under, all things are still owned by the non-profit, so some large tech company can’t swoop in and yoink anything available.
This includes any and all data generated by the for-profit, which means your data is “safe”.