beleza pura
- 0 Posts
- 12 Comments
as someone who used to develop a cross-platform (linux and windows) desktop application: the bulk of development took place on linux. i only ever booted to windows to build the app and make windows-exclusive adjustments, but never to actually develop any features
in today’s round of “lib or anarkiddie”…
(anyway, not sure what the comic has to do with the meme unless you think it’s criticizing marxism)
i would strongly disagree with that characterization of both fp and oo. classifying rust as oo weakens it imo, and the fact that you can easily solve all the problems oo solves in rust, as your linked document shows, is not proof rust is oo, but rather that oo is unnecessary to solve those problems
object orientation is classes done wrong. typeclasses (and traits) are classes done right
traits aren’t oop. they’re closer to haskell’s typeclasses than anything else
rust is leans more towards data oriented design than functional programming imo
beleza pura@lemmy.eco.brto Rust@programming.dev•Koto: a simple and expressive programming language, usable as an extension language for Rust applications, or as a standalone scripting language1·6 months agomaybe it has to do with the lack of parens in the method calls and the chaining of method calls. this would be the ruby equivalent of the script:
puts 'Hello, World!' # -> Hello, World! def square(n) n*n end [2, 4, 6, 8].map(&:square) # -> [4, 16, 36, 64] # another option [2, 4, 6, 8].map{|n| n*n}
beleza pura@lemmy.eco.brto Rust@programming.dev•Koto: a simple and expressive programming language, usable as an extension language for Rust applications, or as a standalone scripting language7·6 months agoprint 'Hello, World!' # -> Hello, World! square = |n| n * n '8 squared is {square 8}' # -> 8 squared is 64 (2, 4, 6, 8) .each square .to_list() # -> [4, 16, 36, 64]
it might be just me, but, from the code snippet, it feels a lot like ruby
instantly reminded of “you’re telling me a shrimp fried this rice?”
beleza pura@lemmy.eco.brto Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?221·9 months agorust is a systems/low overhead programming language. really not much of a point comparing js/ts and rust, since js is much higher level. you should be comparing it with c, c++, zig, maybe nim, etc
you also imply it’s pointless to have a language geared towards performance because computers are better now, but 1) programs run on more than just personal computers and you wouldn’t run js in an embedded system and 2) just because your computer can put up with poor performance and resource waste doesn’t mean that it’s sensible to do so (hello electron)
also, rust does more than just cosmetic improvements. it adds a layer of statically guaranteed memory safety that no other commercially viable programming language that i know of has. even if its syntax looked like ancient eldritch runes, it would still be an attractive language. the fact that it manages to do more than other languages while still having a decent syntax is amazing
you can dislike rust if you want that’s fine but you don’t need to try to shit on it just bc it’s not your cup of tea
glad to help