I know we learn C at school for our own good, but it's incredibly frustrating.


And IRL I know that I will never use C because it will probably never be the right tool for what I have to do

Β· Web Β· 1 Β· 1 Β· 2

why would use a C program to make a request to an API!!

And I compared it to node because that's what I know the best, but most "modern" languages would be similar I guess

I don't want to handle memory allocation to extract a value from a JSON file :blobthump:

But whatever, that's maybe because I'm a young noob-level programmer :hit_w_feels:

@angristan Using C for that makes 0 sense... :( But at least it's curl 'easy' cleanup. Imagine what hard cleanup is.
@angristan *starts thinking of wile hacks to avoid memory management*
knowing how to do these things will help you, though. it's important to keep in mind, even in higher-level languages, when operations will need lots of allocations, because allocations are one of the biggest performance bottlenecks

@angristan Yeah it's definitely cause C is so bad.

After years of changing requirements, eventually you realize that your app is leaking every possible kind of resource, this is the magic of deep C

@CharredStencil @angristan That might also be an indicator of "your" programming skills.

@steelman @angristan My manager skill says that I don't have to use a language that makes the programmer do a compiler's job.

@angristan yeah that really doesn't make a lot of sense :v

@angristan yeah, there are many good uses of C, but making a request to a web API and parsing the resulting JSON is not one of them.

It's sad that many teachers can't come up with tasks that show strengths of C, and then the students suffer and get to think C is a bad language.

@Wolf480pl @angristan Calling HTTP APIs is a terrible use for C. However, there are thousands, if not millions, of lines of C that make JavaScript work at all. What C is really good for is writing high-performance JavaScript interpreters, without which those 18 lines of node aren't going very far.

@angristan because C is fastest. And it helps to show who is the _daddy_ in the room.

Sign in to participate in the conversation

Fast, secure and up-to-date instance, welcoming everyone around the world. Join us! 🌍
Up since 04/04/2017. βœ…

Why should you sign up on mstdn.io?

This instance is not focused on any theme or subject, feel free to talk about whatever you want. Although the main language is english, we accept every single language and country.

We're connected to the whole ActivityPub fediverse and we do not block any foreign instance nor user.

We do have rules, but the goal is to have responsible users.

The instance uses a powerful server to ensure speed and stability, and it has good uptime. We follow state-of-the-art security practices.

Also, we have over 300 custom emojis to unleash your meming potential!

Looking for a Kpop themed instance? Try kpop.social