syklemil

joined 7 months ago
[–] syklemil@discuss.tchncs.de 1 points 3 months ago (1 children)

At the user level they're just tools, not programming languages. Python users are generally moving to ruff (and uv) because of ergonomics: It works well and really fast which makes for a smooth experience in-editor. Plus using fewer tools to achieve a similar result is generally desirable.

And for a complete newbie like someone taking a course, I think there's no "sticking with" to speak of. Might as well just skip over the tools people are migrating away from and start with the tool people are migrating to.

[–] syklemil@discuss.tchncs.de 93 points 3 months ago (11 children)

The price stuff can change through taxation that makes new plastic more expensive than recycled plastic.

As we all know, taxation is super popular and has never been controversial, ever.

At the very least flaskepant has worked great for like a century here in Norway. Always kind of surprising when other countries don't have it.

[–] syklemil@discuss.tchncs.de 17 points 3 months ago* (last edited 3 months ago) (2 children)

This sounds like the antithesis to parse, don't validate. It is possible to use just maps and strings and get a "stringly typed" program, but there' a bunch of downsides to it too:

  • your typechecker can't help you if you used the wrong dict[str, Any]; most of us want the typechecker to help us write correct code
  • there's no public/private
  • everything you .get from a map is Optional; you need to be constantly checking and handling that rather than being able to have methods that return T, or even direct field access
  • you can derive or hand-implement a bunch of operations on (data)classes that you can't on maps: Comparison, ordering, hashing so you can use the blob of information as a map key, …

Ultimately while Hickey has a good point in the distinction between easy and simple, his ideals don't seem particularly aligned with the programming world at large: For one thing, Clojure remains pretty small, but even other dynamic programming languages like Javascript and Python have been moving towards typechecking through Typescript and typing in Python.

Doing a json.load into some dict[str, Any] is simple, but actually programming like that isn't easy. Apparently a lot of programmers find value in doing the extra work to get some stdlib or pydantic dataclasses. Most of us get a confidence boost from using parsed data, and feel uneasy shuffling around stuff that's just strings and maps.

[–] syklemil@discuss.tchncs.de 2 points 3 months ago

It seems to run fine. You should likely as a TA or something as this appears to be something specific to your environment.

[–] syklemil@discuss.tchncs.de 1 points 3 months ago (3 children)

If you set up ruff you should get autoformatting (and you can enable various lints).

[–] syklemil@discuss.tchncs.de 3 points 3 months ago (2 children)

There's no null in Python. There's None, but like the other comment points out, just using return is fine.

[–] syklemil@discuss.tchncs.de 1 points 3 months ago

Yeah, the left generally considers it a "fighting day" similar to March 8th. The right does gardening (to make it visible that they're not marching). Others do whatever they feel like; not uncommon to spend the day hung over.

[–] syklemil@discuss.tchncs.de 17 points 3 months ago

Yeah, one problem here is that global container circulation needs to, well, circulate. People don't ship empty containers, that's stupid expensive. So container hire is going to get way more expensive as global shipping needs to rebalance. Happened under covid, too.

[–] syklemil@discuss.tchncs.de 1 points 3 months ago

Maybe just the waffle cracker? Because he's sprø som en kjeks, which works translate as … mad/cracked/crispy as a cracker?

[–] syklemil@discuss.tchncs.de 6 points 3 months ago

Yeah, and those aren't tied to a comment or anything it's harder to make an opinion of our own. But for the communities I mentioned there are visible comments, and … I think OP wouldn't have a good time at lemmy.ml, hexbear or blahaj, or even any instance where some common decency is expected.

[–] syklemil@discuss.tchncs.de 19 points 3 months ago (3 children)

Yeah, looking up the modlog for Lembot_0001 on lemmy.ml it seems there was more going on than just upvotes, and they got in trouble with programming.dev, europe@feddit and more as well.

[–] syklemil@discuss.tchncs.de 3 points 3 months ago (1 children)

if the process is just “wrong, do it again” without examining any piece of it

that's the definition of vibe coding. It's a process where you're supposed to work as if you don't know how to code and treat the code as magical mumbo-jumbo.

view more: ‹ prev next ›