That's why we use JavaScript on the front end, JavaScript on the back end, and you can streamline it even more by using JavaScript for the db layer too. After all, if you have too much data to be reasonably parsed in a single .json file, you are probably just architecting wrong.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Every time you get over 200k lines of JSON you gotta split it into another app, so you can webscale.
I miss the old tts voices and now everything is ai generated garbage :( Bring back the robot voices!
But, Haskell..., it's so well thought out, so evolved, the best of all functional programming in one, the ability to handle infinite lists, the lazy evaluation, the strict type checking, the compiler that catches whole classes of bugs, the curt syntax, the ability to breathe it like pure thought, the clarity like maths...
Okay, sorry, I better leave the room too.
Haskell is pretty cool, I really like Scala too. It's a bit easier to understand for me :P
Reasoning about memory use is kind of hard though.
Programming languages, much like the jackass in the middle, are tools. Different tools are for different things. The right tool for the job can make your day. The wrong tool can make you question your entire career.
Funny how tools are useful. But a person who is a tool is not.
A tool of a person is a fool who is being used by someone else. They might not be useful to you, but to who ever makes the koolaid they're drinking, they're a very good tool.
Right... And the best tool for every job is of course Rust.
Embedded? Rust!
Web Frontend? Rust!
Web Backend? Rust!
idk what orher kinds of programming exist...
Exactly. And what is the best tool? The best tool for the job
And what is the best tool?
AI! (This message brought to you by The Microsoft Marketing Dept.)
The language is as important as architecture and stuff.
Pick the right language for the right task.
Performance? Don't use python.
Everything else? Use python because everyone does.
/s
I despise python syntax.
as someone who uses python daily: what is syntax? /s
It's a tax you pay for synning.
The programming language promotes a thinking model and the ecosystem defines a modus operandi.
Of course they matter.
The only people who say that are mentioned in Forbes.
Ngl changing paradigms can have the problems do a 180.
I hate leetcode but it's surprisingly fun to code certain questions in prolog when final outcome with error checking is like 15 lines.
Almost any language is OK, but Rust is just so, so fucking ugly
Almost any language is ok but some ecosystems make me want to turn into a murder hobo (looking at you, JavaScript).
I can actually see where this is coming from, as I found Rust hard to read when I started out. I do really like Rust for reference, but I do agree Rust is hard to read for someone that has not learned it.
For example:
return statements that are implicit just because the semicolon isn't there. Even better if they occur inside a if block or something like that. Very hard to understanding when you don't know the syntax rules.
Lambda functions, especially when using move semantics too. They are quite simple, but if you don't know the meaning, it's more arcane characters. Especially when this is used inside lots of chained methods, and maybe a multi-line function in the lambda.
A lot for the if let x =... type of stataments are tough the first time around. Same for match statements.
Defining types for use with function::() and such.
Lifetimes, especially when they are all named a, b, c etc. It quickly gets messy, especially when combined with generics or explicitly defined types.
Macros, though not entry level rust to begin with, they are really cumbersome to decode.
None of these are sins of Rust, but for new people they are a hill to climb, and often hard to just "get" based on previous programming experience and reading the code. Rust can be really hard to approach because of these things. This happens in other languages too, but I do feel Rust has a particularly large amount of new concepts or ways to do something. And this is on top of learning lifetimes and borrow semantics.
This is the most sober take in this thread. I was bothered by all these things you mentioned for the first two weeks of using the language. I begrudgingly accepted them for the following two months because I felt the benefits of the language were worth it. Now all of these things feel natural and I don't give them a second thought.
what? what part of rust is ugly?
Maybe they're confusing the literal name with the language? Idk.
I grew up on Perl and holy fuck... Rust is fine.
FORTRAN isn't a beauty either.
And Python is strange as hell with its mandatory tabs.
You can use spaces in Python.
Two, three or four spaces? If you answer wrong I'll never forgive you
