JSON-in-a-string is a commonplace method of having a generic or any type when you are too lazy to write a proper structure for it, or want to save an object into a database without creating an additional table. In all fairness it has nothing to do with the language itself, and more with lazy coders. Postgresql even have additional SQL operators to access individual JSON fields inside a record, so yeah, you can dump a whole new unstructured database into a row of your existing database, it’s totally an acceped practice.
pelya
- 1 Post
- 55 Comments
I’ve successfully used pyenv in the past, although
uvclaims that it includes allpyenvfunctions and more.
It’s Javascript with types. You are still using one hundred NPM packages to do the simplest thing. Any string can be JSON. And Node is single-threaded, so if you plan to create some kind of parallel computation, you’d need to run 16 Docker containers of your Node server, one per CPU core, with NGINX or some other load balancer at the business end, and hope that your database engine won’t reorder transactions. And yeah, Docker is mandatory, because Node version in your latest Ubuntu release is already outdated.
TypeScript and safety-critical paths should not be in one sentence.
pelya@lemmy.worldto
Technology@lemmy.world•The dominoes are falling: motherboard sales down 50% as PC enthusiasts are put off by stinking memory pricesEnglish
8·11 days agoEh, Chinese manufacturers are also desperately trying to catch up with AI hype. In any case, we’ll see some new brands on the market, and it’s not a bad thing, and I would not spend my time worrying about giant rich corporations.
My actual worry is that once RAM prices go up, they won’t go down for quite some time. If we get another bubble after AI bubble pops, the prices may not decrease at all.
pelya@lemmy.worldto
Programmer Humor@programming.dev•Free software has some glib naming conventions
4·18 days agoThe G is silent
Recursively dumping all data from the server was always a
wgetthing, it will create a nice directory structure for you and will also convert links in webpages to point to your local file system.
CURL got some kind of contract with several embedded hardware manufacturers, at least it’s financially stable.
pelya@lemmy.worldto
Programmer Humor@programming.dev•Clock but the PM quit and was replaced halfway through the project. Handover instructions: "Make the clock hands show the current time"
7·1 month agoWhen an API request fails, the seconds clock handle becomes red, and the time health management microservice sends an alert SMS to your phone once per second (scaled with the number of clients)
pelya@lemmy.worldto
Programmer Humor@programming.dev•Clock but the PM quit and was replaced halfway through the project. Handover instructions: "Make the clock hands show the current time"
11·1 month agoSeconds hand does not show seconds.
pelya@lemmy.worldto
Programming@programming.dev•Why write code if the LLM can just do the thing? (web app experiment)
4·2 months agoConsidering that most techbro startups are going to be dead within a year, I’d say AI wins.
Plus most of the competent programmers already have high resistance for technobabble bullshit, and will simply refuse to work on something like an online contacts app (are you copying a Facebook or what?)
pelya@lemmy.worldto
Programming@programming.dev•Why write code if the LLM can just do the thing? (web app experiment)
19·2 months agoThe future is here! And it costs $10-$50 per 1000 HTTP requests.
The salmon will be fine, pretty much the same as steam-cooking it. Just put some spices and a lot of lemon so it would not be bland.
The microwave, on the other hand, will gain a subtle and mysterious fish aroma, that will only become stronger with the passage of time.
pelya@lemmy.worldto
Programmer Humor@programming.dev•Me waiting for the AI to close the tag for me
48·3 months agoYou don’t need to close it, your HTML will be rendered correctly anyway.
Your laptop is a cash counter.
More like, take a bunch of screenshots of vibe coded website, and treat that as design document while rewriting the whole thing from scratch with clean architecture.
pelya@lemmy.worldto
Programming@programming.dev•Ignoring lemmyhate, are programmers really using AI to be more efficient?
1·5 months agoI’m okay with AI-powered autocomplete, or with AI-powered mock project generator. Anything beyond that seems like the management’s misguided attempt at
having more meetingsraising productivity.I’m not using AI, and I rarely use IDE, because ugh, code editor is not fullscreen, and I don’t need a separate panel to navigate project tree and edit makefiles, I can perfectly use the shell for that, and I don’t even need to wiggle the mouse like some graphics designer to debug my code.
pelya@lemmy.worldto
Linux@programming.dev•What problems does Linux have to overcome to get more users
7·5 months agoIf you ever need to disable SELinux, your software distribution is trash, or you bought some unsupported piece of hardware with crap Linux drivers. Or you are writing kernel drivers and it’s your test machine.
What the user really needs is to launch an app in a secure sandbox with two mouse clicks, not an easier way to edit SELinux rules. Linux software distributions focus too much on technology, but don’t provide the finished user-facing solution with this technology, that’s the problem #4.



As for languages that are acceptable for business logic, C++ is lolno, Java is kinda surprisingly okay because so much business logic is already written in it and debugging is trivial, Python is not worse than Java for the same reason when you are using proper linter to catch typos, C# / Go / Ruby are probably the best because they are most modern with the lowest footgun ratio.