• 4 Posts
  • 9 Comments
Joined 7 months ago
cake
Cake day: September 5th, 2024

help-circle

  • 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









  • vou comentar aqui o mesmo que comentei em outro lugar. filme de ditadura fala só da perseguição a artistas e dissidentes políticos como se ela só tivesse acontecido porque os milicos por acaso decidiram ser truculentos e tomar o poder do nada. ninguém fala que o objetivo de verdade foi: arrocho do salário, precarizar direitos trabalhistas, colocar nossa mão de obra pra dar lucro pra indústria estrangeira, criminalizar a pobreza e muito mais coisa horrível. parece que os milico tavam no poder só por estar, quando na verdade o objetivo era um só: espremer e explorar ainda mais a população brasileira e entregar nossas riquezas pros gringos


  • C++ [relies] on manual memory management

    not exactly. i can’t remember the last time i new’d or deleted anything at work. not only do we have smart pointers for over a decade now, but also, most of the time, you don’t even want to be allocating stuff on the heap anyway, so raii will take care of managing your resources. memory management in c++ is explicit, but it’s mostly automatic

    yeah it’s not as safe as rust, but idiomatic c++ isn’t supposed to be littered with new and delete statements. that’s indication of java-like c++ code, which has been the true villain in c++ codebases for decades, imo. most shitty c++ code is java-like c++ code written by people who would rather be coding in java (or java++ aka c#)