this post was submitted on 29 Nov 2024
88 points (95.8% liked)

Asklemmy

44125 readers
600 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

I have met a couple of them in real life, and a few I have met online. The sample is not significant enough to draw any conclusions about their point of view and background.

I am more than interested in your opinions about the personality and political makeup of people who express this type of pro-C bigotry.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 40 points 2 weeks ago (1 children)

It's no different from anyone else with arbitrary, narrow-minded views. People like that, whether they realize it or not, don't believe in the intrinsic value of personhood.

This extends to their view of themselves and creates a need to feel valuable for some other reason. So they create a narrow idea of what it means to be good and valuable and it just so happens to align with their own traits, interests, and beliefs.

[–] Feathercrown 5 points 2 weeks ago

Every take I see in this thread gets more and more based

[–] [email protected] 34 points 2 weeks ago (3 children)

C++ is pretty awesome but anyone who thinks a single language is the solution to all problems is dumb... unless you're smart enough to realize that the one language to rule them all is PHP of course!

[–] [email protected] 32 points 2 weeks ago (5 children)

If there is anything I've learned in my 10+ years as an engineer, it's that there are no good or bad languages, just pros and cons of each in different applications.

Except NodeJS. Never use JavaScript on the backend.

[–] Feathercrown 10 points 2 weeks ago

You're all just mad that JS stole your niche /s

[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago)

If there is anything I’ve learned in my 10+ years as an engineer, it’s that there are no good or bad languages, just pros and cons of each in different applications.

I dunno if I agree really - the more languages I've learned, the more I see an evolution from less sophisticated, less usable languages to more sophisticated, more usable, modern and just generally better languages.

C and C++ are old, and you can tell. There's so much complexity and legacy in those languages that it's crazy. But it's not just legacy - it's also bad design choices. There's a lot of really bad APIs and bad usability and footguns everywhere. You see the same thing in languages like JavaScript (whose design journey has been fraught with peril). Even Java has some bad stuff I would say, mostly from the overzealous insistence on OOP.

However, if you look at some modern languages that were more deliberately designed, you really start to see how they are just intrinsically better. Python, while still being a dynamically typed scripting language which I would never use for large systems, is still leagues better than JavaScript in terms of design and usability I would say. Haskell was born from research and you can really tell - the language just makes sense in a very scientific way - although that does mean ease of use and developer experience has not always been the priority.

Rust was developed for a very particular purpose, basically to provide the same speed as C++ but without any undefined behavior. From that design principle, a lot of good has resulted and Rust is basically an objectively better language than C++. The only thing still keeping C++ in the game is the historical reasons, just due to the sheer amount of code that exists out there in C++. C++ has more support in all kinds of places, but that's just due to history and Rust will likely gain ground soon enough. For instance, C++ still rules for game development, but this could change within the next 5 or 10 years.

It's not that surprising when you think about - languages like Python, Haskell and Rust were built on the giant pile of experience the whole industry has amassed from using previous languages. It also helps that we just have more computing power today to make languages like Rust feasible. Rust compile times probably wouldn't have been realistic 30 years ago.

[–] [email protected] 6 points 2 weeks ago

JavaScript is the worst, in general

[–] [email protected] 4 points 2 weeks ago (1 children)

i find javascript to be a great language for throwing together quick and dirty hacks.

[–] [email protected] 4 points 2 weeks ago

For small programs and scripting, Node is amazing. I've even written some CLI utilities in Node as standalone executables. I think most people who bash it have either never used it, or haven't used it lately.

[–] [email protected] 4 points 2 weeks ago (1 children)

NodeJS has made me a very employable engineer.

load more comments (1 replies)
[–] [email protected] 3 points 2 weeks ago

PHP is effin awesome, I solve almost everything with it, and fast

[–] [email protected] 3 points 2 weeks ago (1 children)

I hope that last part wasn't a joke at PHP's expense.

I am actually surprised what PHP can do over the past few years. We converted a few critical REST APIs into PHP and it wasn't just lightning fast, it's also incredibly readable that we had non-PHP developers convinced it was the right move.

[–] [email protected] 4 points 2 weeks ago

It wasn't, I think PHP is legitimately an excellent language for readability and expressiveness.

[–] [email protected] 31 points 2 weeks ago (4 children)

In my opinion, C purists are people who REALLY need to wash their fucking dishes, touch grass and get some sunlight. They get too worked up because "all the important things are written in C", the important things being drivers, kernel and most basic stuff that OS needs.

Whenever one talks about performance, just reply with "use Assembly" and their argument is immediately invalidated. You can also mention networking, fault tolerance and how Erlang does a much better job than C or C++ could do, which is why "real adults with real jobs" created it in the early 90s

But mostly, it's ironic that they're becoming C-Conservatives, blaming the "hot new language" for bringing "the kids". You can read the same kind of logic and disdain for C programmers, from LISP programmers, in the Unix Hater's Handbook (1994)

[–] [email protected] 10 points 2 weeks ago (1 children)

But we can all agree that JavaScript was a mistake right?

[–] Zak 3 points 2 weeks ago (1 children)

Not using a derivative of Scheme as originally planned was a mistake.

load more comments (1 replies)
[–] [email protected] 5 points 2 weeks ago

disdain for C programmers, from LISP programmers, in the Unix Hater’s Handbook (1994)

I'm definitely looking that up.

[–] RubberElectrons 3 points 2 weeks ago* (last edited 2 weeks ago)

Nah, I like using C for low level stuff, it balances that it's reasonably high level and procedural with pretty great performance, size and flexibility. ASM is faster, but you are slower when it comes to understanding someone else's work.

For projects that aren't size or performance sensitive, write it in python or whatever the fuck you like, idgaf.

load more comments (1 replies)
[–] SanndyTheManndy 29 points 2 weeks ago (4 children)

They are wrong. The correct answer is Rust. Have a great day.

[–] [email protected] 5 points 2 weeks ago (4 children)

I'd like stuff to still compile next year

[–] SanndyTheManndy 8 points 2 weeks ago

Rust has certain backwards compability, always.

[–] [email protected] 5 points 2 weeks ago

Doesn't language editions solve that problem? (I am not a Rust expert so please correct me if I am wrong.)

[–] [email protected] 5 points 2 weeks ago

Rust has strong backwards compatibility guarantees so it definitely should.

[–] [email protected] 3 points 2 weeks ago

Pascal is super fast in that regard 😄

load more comments (3 replies)
[–] [email protected] 22 points 2 weeks ago (1 children)

As an older coder, I’ve spent time commercially programming in a lot of languages (C, C++, C#, Python, TransactSQL, Javascript, and a few more - with many years of experience in each. I even spent time squeezing some forth code into a small programmable chip.

My first comment on this « attitude » expressed above is that you need to pick the language (and its libraries) that is best for your problem space - each will have advantages, including constructs and libraries to suit whatever domain you are working in. Hence forth for a microchip, TransactSQL for DB stored procs, python for general purpose command line work etc.

Having said that I do want to present one viewpoint which could give rise to this above expressed opinion. It’s an area that C is considered pretty strong - specifically language complexity. When coding in C, I really felt like I knew every nook and cranny of the language, exactly how every structure would be packed, what the assembly would probably look like.

Python (and perhaps C#) are currently my favorite languages - python only has 36 keywords and while I don’t have the same solid grasp of what’s happening under the hood, I do feel like there are very few surprises and corner cases to the language, even while supporting some complex programming methodologies.

The opposite of this is (IMHO) swift. What started as a really nice language with a clean syntax and solid libraries has morphed into a monster with 232 keywords. Does any swift programmer have a solid grasp of it all?

I would say that C++ is at the complicated end of the spectrum - spend some time inside Boost and their extreme use of templates/meta-programming and it will make your head spin. The Boost developers are super smart people, but its non-trivial to understand what is going on. Having said that, C++ does make you feel that you can code close to the machine and have a good handle on what is happening under the hood.

This level of control is probably one place where this « only C and C++ code is any good » attitude came from. Its not an attitude I support.

[–] gedhrel 2 points 2 weeks ago

C++ is one if those languages where writing a library feels hugely different from using it. Boost is a case in point here: there are brilliant peiple behind it, but (error messages aside) the ergonomics of using thise libs in an application are usually pretty good.

(Scala felt similar to me. There are other languages where it feels much less like I'm swapping hats as I flip between parts of a codebase.)

[–] [email protected] 21 points 2 weeks ago (2 children)

Many programmers that work in Low level languages like Assembly or C regard high level languages as easy or slow and thus tended to dis them.

John Carmack (Doom, Quake engine, considered an amazing programmer) Best Programming Language has a wider appreciation of IDEs and Languages.

[–] [email protected] 11 points 2 weeks ago

John Carmack

He's great indeed. Thanks for the reference.

Also what he says about LISP reminds me of The Bipolar LISP Programmer article.

[–] [email protected] 9 points 2 weeks ago (1 children)

I took an assembly language course once. You know those merge games where you eventually get to double or quadruple your producer's output? Coding in assembly feels like being stuck on 1x, where you have to generate all the basic stuff first, and then build on it, then build on it some more. It takes forever.

I liked understanding the why behind it. But I appreciate other languages that are more accessible.

[–] [email protected] 8 points 2 weeks ago

Yep, it can also be the answer to getting insane performance gains for extremely specific functions / calculations.

The reality of life is the higher level languages let you get more done with fewer errors but with less potential performance.. You can only optimize python so much. Some newer languages like Rust try to balance the two but often make things more complex.

[–] sudo42 21 points 2 weeks ago

Very few people have a truly diverse software experience base. Many humans without a large, diverse experience base have trouble imagining there are problems outside their own experience.
There are millions of different problems that need software solutions. People with limited experience have opinions as to the “best” software.
People with large, diverse experience bases tend to be a bit more circumspect and can understand there is no single best answer. The “best” software for a given task depends on many things, including the problem, the schedule, the availability of resources, etc.

[–] Feathercrown 17 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

They see the scale of high-level to low-level languages. They see that C is on the human-practical low end of this scale. They ascribe value to being on the low end of the scale. Tada! C is now objectively(TM) the best language!

[–] [email protected] 4 points 2 weeks ago (2 children)

My hammer has solved every problem I've thrown at it.

load more comments (2 replies)
[–] [email protected] 17 points 2 weeks ago (1 children)

“First we get rid of strict typing. What’s next, setting a boolean variable equal to a string?!?”

If you look back at the arguments against interracial marriage, they mirror almost all of the arguments against gay marriage to the letter. Some people are convinced that their world as it exists when they come of age to participate in it is the way it should always be. So my bet is that their deal is they don’t want to learn anything new. Learning can be hard and it’s not always fun to learn and more importantly the global capitalist society constructed for us is not conducive to learning so people are greatly encouraged NOT to learn.

[–] Feathercrown 8 points 2 weeks ago

Wild words to use on a post about C but tbh I might agree with you

[–] [email protected] 13 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The best way to engage them is to ask them about their projects. I usually find them to be very knowledgeable, have a lot to learn from, that you can mix in with your more recent languages.

Win/win beats calling eachother bigot :)

[–] [email protected] 6 points 2 weeks ago (1 children)

Feel free to tell us about your project then.

[–] [email protected] 14 points 2 weeks ago

I'm working on a minesweeper inspired rogue like, in javascript

[–] [email protected] 10 points 2 weeks ago (1 children)

I think some people really like iso/iec standards while others find standards "annoying".

load more comments (1 replies)
[–] [email protected] 8 points 2 weeks ago (1 children)

If you are not using a magnetic needle and a steady hand, can you even call yourself a programmer?

[–] [email protected] 2 points 2 weeks ago

Real programmers use a butterfly.

[–] finitebanjo 3 points 2 weeks ago* (last edited 2 weeks ago)

I haven't really met those people for about a decade, but before modern languages with superior security but still usable like Rust we only had Java, C, C++, C#, and Assembly for the more advanced, thoughtful, and professional programing workflows.

(At this point in time COBOL and Fortran was already almost exclusively Legacy use).

If you wrote Python or Apache Groovy in an office space where you collaborate with others, you were an oddity. Or maybe you worked at the NSA, because oddly they use a lot of that on their github.

Of course, we now have IDEs that let you work professionally with basically any language, so it's all moot, now.

There is still some negative sentiment against any and all high-level languages because the more that is automated the less its users understand about programming or computer logic.

load more comments
view more: next ›