Post B8dhIv3YHCTJeBi85Q by whimsy@chitter.xyz
 (DIR) More posts by whimsy@chitter.xyz
 (DIR) Post #B8deOzwQj7fYfnaQme by fribbledom@mastodon.social
       1 likes, 0 repeats
       
       JavaScript has this weird psychological effect on me, where I stop trying to write beautiful code.Rust: "Let's make this elegant."Go: "Let's keep this simple."JavaScript: "Let's just survive somehow."
       
 (DIR) Post #B8depmrZSZifvj5VJY by dentaku@fnordon.de
       0 likes, 0 repeats
       
       @fribbledom Java: "There must be a way to abstract and generalize this."
       
 (DIR) Post #B8dg1iNc3PULSGKJ2O by kurt@social.thiskurt.me
       0 likes, 0 repeats
       
       @fribbledom Does Rust make you write elegant code? I don't use Rust much, what little I write and the code I see tends to feel so dense and determine to chain as many calls together and use every possible special character available on the keyboard, that I haven't gotten to seeing the elegance yet.Maybe one day I'll appreciatefn first_valid<'a>(lines: &'a [&str]) -> Option<&'a str> {    lines.iter().find(|l| !l.trim().is_empty() && !l.starts_with('#')).map(|l| l.trim())}
       
 (DIR) Post #B8dhIv3YHCTJeBi85Q by whimsy@chitter.xyz
       0 likes, 0 repeats
       
       @fribbledom it has the opposite effect on me where I try to keep everything neat and contained and pure functional and passing thousands of lint rules to maintain my own sanity. I'm much happier leaving spaghetti code as it is in Rust because the compiler provides so many guarantees.
       
 (DIR) Post #B8dihVeLyRTu2oDJiK by hllizi@hespere.de
       0 likes, 0 repeats
       
       @fribbledom I never knew what anything means anyway and just hacked my way through.
       
 (DIR) Post #B8djrWWbfvJFblvg2K by totentanz@metalhead.club
       0 likes, 0 repeats
       
       @fribbledom Java: „Let’s make this high-performance“ *fuck*
       
 (DIR) Post #B8dlQ1x3RESWsNJmPQ by fribbledom@mastodon.social
       0 likes, 0 repeats
       
       @kurt I mean, yes, agreed. But there's a difference between beautiful syntax and beautiful architecture. JavaScript arguably offers neither.
       
 (DIR) Post #B8dmwv0gMpw8rFGFKS by chris@mastodon.chrispelli.fun
       0 likes, 0 repeats
       
       @fribbledom I never understood why so many people used JS outside of the browser. There are actually good languages out there!
       
 (DIR) Post #B8dn0X1TUdfRcZM2fA by fribbledom@mastodon.social
       0 likes, 0 repeats
       
       @dentaku Just one more layer and it will be perfect!
       
 (DIR) Post #B8dnDmKfspqirreT4a by Strombo@jawns.club
       0 likes, 0 repeats
       
       @fribbledom "Just survive somehow" correlates very well with the time in my career where I was just surviving and writing mainly JavaScript.
       
 (DIR) Post #B8dqOvqBAkk7P9Oiem by midzer@chaos.social
       0 likes, 0 repeats
       
       @fribbledom I like the syntax highlighting in VSCodium for my Vanilla #JavaScript code *hides*
       
 (DIR) Post #B8gAlGzKNCWy3Uid5E by rperezrosario@mastodon.social
       0 likes, 0 repeats
       
       @fribbledom Out of curiosity, have you given TypeScript a go? I find it addresses many of my gripes with JavaScript, particularly of the lack of strong typing kind.