Re:Show HN: Hosting my website using my own C web server
by ryandrake on Wednesday September 25, 2024 @10:41AM
(#41648094)
It’s kind of sad how C has gotten the reputation as this dangerous and scary dark art that only wizards can successfully wield. C was my first love, it’s what we used throughout university, it’s what our operating systems and basic tools are all written in... If you go to your favorite language and step down into the actual implementation of, for example, your network calls, you’re eventually going to get to poll() and write() written in C. It’s useful to know and be fluent in regardless of whether you intend to work on large projects in C.
[ Parent
| on HN ]
Re:Show HN: Hosting my website using my own C web server
by theideaofcoffee on Wednesday September 25, 2024 @12:47PM
(#41649315)
Same, it was my first language that I got real fluent in. And I feel the same when the prevailing sentiment now is that you're 100% guaranteed to shoot your foot off and make your dog sick if you even look at some C code. I think it's harmful, because wielded responsibly it's super powerful. We shouldn't be discouraging something because it's hard to master, we should be encouraging discretion. And that discretion may take you to a memory-safe language, you may stick with C or something similarly low-level, it all depends.
Re:Show HN: Hosting my website using my own C web server
by 01HNNWZ0MV43FF on Wednesday September 25, 2024 @01:11PM
(#41649569)
But if the dy/dx gradient is that experts can develop faster in safe languages, and novices make fewer mistakes in safe languages, then C isn't useful day-to-day.
It occupies an ever-shrinking ecological niche on the Pareto frontier.
Re:Show HN: Hosting my website using my own C web server
by zppln on Wednesday September 25, 2024 @02:46PM
(#41650621)
What are you on about? C is more useful day-to-day than the vast majority of languages. Learning it is hardly a waste of time.
Re:Show HN: Hosting my website using my own C web server
by the_gorilla on Wednesday September 25, 2024 @02:58PM
(#41650741)
C is one of the worst designed programming languages still in use. It's a ridiculous, cruel joke on anyone looking to learn unless your actual goal is to learn what a programming language designed 70s computers looks like.
Re:Show HN: Hosting my website using my own C web server
by zppln on Wednesday September 25, 2024 @04:09PM
(#41651352)
Retarded take. Learning C lets you read and interop with the code base most of the world runs on. If nothing else it will enable you to do your next RIIR project.
Re:Show HN: Hosting my website using my own C web server
by tuveson on Wednesday September 25, 2024 @03:47PM
(#41651143)
I think C is a simple well-designed systems language. It has some warts, but many of the things people complain about are matters of preference – or due to a lack of understanding of the problems that C is good at solving.
The only major challengers to C in the last 50 years are C++ and Rust. I think that’s a testament to the quality of the language.
Re:Show HN: Hosting my website using my own C web server
by pdp11ty on Wednesday September 25, 2024 @10:00PM
(#41653766)
Some of the worst software I've ever used, and also some of the worst software I've ever seen developed, was done by novices in safe languages. You can't escape how the computer works, you can only plug your ears and yell "LALALALALA!" really loud. But that doesn't change reality. If you aren't a good developer, you won't make good software, in any language. That's not the language's fault. If you don't understand pointers, that's on you. Computers use indirection; it's a fact of the craft. It doesn't matter if your fancy runtime hides them from you, they're still in there, and you should know how they work; not only because they're simply important, but because they'll make it easier for you to reason about things when something goes wrong. Otherwise, you'll sit there helpless and come running to someone like me with screenshots of stack traces that tell you exactly what's wrong. (Yes, this happens to me all the time.)