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
beleza pura
- 0 Posts
- 16 Comments
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 language
1·1 year 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 language
7·1 year 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
Fediverse@lemmy.world•Welcome to #Fediverse in FOSSCOMM2024 at University Of Macedonia 🇬🇷🇪🇺English
81·2 years agomost helpful l.w mod
beleza pura@lemmy.eco.brto
Fediverse@lemmy.world•Is that what Lemmy wants to be?English
15·2 years ago
also, 50 years from now, your kids will ask you about zio israel the same way people today ask about nazi germany and you’ll lie in shame
bye bye
beleza pura@lemmy.eco.brto
Fediverse@lemmy.world•Is that what Lemmy wants to be?English
192·2 years agoit’s not offtopic. you defended the current-day equivalent of nazi germany and got rightfully banned for it. deal with it
beleza pura@lemmy.eco.brto
Fediverse@lemmy.world•Is that what Lemmy wants to be?English
196·2 years agohow about not defending a terrorist state? maybe you should ask what israel could do to end the violence since it was the one to start it, not hamas
enjoy your ban
beleza pura@lemmy.eco.brto
Fediverse@lemmy.world•Lemmy's gaining popularity, so I thought new people should see this.English
311·2 years agogood luck outpacing the flagship instance
beleza pura@lemmy.eco.brto
Fediverse@lemmy.world•Lemmy's gaining popularity, so I thought new people should see this.English
2126·2 years agothe software was created by marxist-leninists. maybe deal with it?
beleza pura@lemmy.eco.brto
Rust@programming.dev•My frustrations with Rust. Why is this the most loved language?
331·2 years 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
language popularity can change pretty quickly
according to the tiobe index, in 1985, lisp was the 2nd most popular programming language and c++ was the 10th. fast-forward 5 years and c++ took the 2nd place, while lisp fell down to 7th place. i wouldn’t be surprised if something similar happened between c++ and rust