Live data from Hacker News

Beej's Guide to C Programming (2007)

beej.us

51–60 of 81 posts

Re: Beej's Guide to C Programming (2007)

#51
This is wonderful. I see that this guide is sort of "old news" to many of the experienced programmers hanging out here. But as someone who isn't that experienced and about to begin a course on Data Structures + Algorithms using C, this is amazing. Thank you.

Re: Beej's Guide to C Programming (2007)

#52

Are there any good tutorials for cross platform development with C++ on windows. I just want to avoid MSVC compilers and use clang or gcc. Also, C++ module/package/library management is very very confusing. You have to configure multiple files in multiple folders and multiple configuration entries. I tried it almost a dozen times and just left it out of frustration. Compared to development with python, it's just mind…

> Are there any good tutorials for cross platform development with C++ on windows.

Install QtCreator with MinGW. Here you can just compile your code and have it work.

> You have to configure multiple files in multiple folders and multiple configuration entries.

not on sane systems where you just do `apt-get install libsdl1.2-dev` or `pacman -S gtk` or `brew install qt boost`

Re: Beej's Guide to C Programming (2007)

#53
post #24

As someone who currently works with C# - is there much of a point to learning C? I've always found it interesting, but never had a reason to jump into it.

What kind of apps have you used since learning C#? Was it difficult finding work with C#?

Re: Beej's Guide to C Programming (2007)

#54

Are there any good tutorials for cross platform development with C++ on windows. I just want to avoid MSVC compilers and use clang or gcc. Also, C++ module/package/library management is very very confusing. You have to configure multiple files in multiple folders and multiple configuration entries. I tried it almost a dozen times and just left it out of frustration. Compared to development with python, it's just mind…

> Are there any good tutorials for cross platform development with C++ on windows. Install QtCreator with MinGW. Here you can just compile your code and have it work. > You have to configure multiple files in multiple folders and multiple configuration entries. not on sane systems where you just do `apt-get install libsdl1.2-dev` or `pacman -S gtk` or `brew install qt boost`

I hear QtCreator mentioned on Hacker News quite frequently. A couple of questions, if you don't mind.

1) How well does it work if you are trying to stick to C and not go the C++ route?

2) They are GPL licensed, so not very permissive, or quite expensive for a commercial license. Is there a significant difference in feature set between the open source & commercial versions for someone that just wants to take it for a spin?

Re: Beej's Guide to C Programming (2007)

#55
post #53
post #24

As someone who currently works with C# - is there much of a point to learning C? I've always found it interesting, but never had a reason to jump into it.

What kind of apps have you used since learning C#? Was it difficult finding work with C#?

Do you mean what sort of things have I built thus far using C#?

Most have been console based applications with a GUI front end to manage settings. I've worked a little with WCF and a little more with WebAPI/REST and also Windows Services.

C# more often than not makes things fairly simple and fun, but repetitive at times.

Re: Beej's Guide to C Programming (2007)

#56

Are there any good tutorials for cross platform development with C++ on windows. I just want to avoid MSVC compilers and use clang or gcc. Also, C++ module/package/library management is very very confusing. You have to configure multiple files in multiple folders and multiple configuration entries. I tried it almost a dozen times and just left it out of frustration. Compared to development with python, it's just mind…

You can install Msys2 http://www.msys2.org/ and use GCC 7. Your compiled code will be 100% native Windows executable and will run on other Windows machines.

Re: Beej's Guide to C Programming (2007)

#57
post #44

Earlier quoted context omitted.

It will be a frustrating experience to learn C with a mindset of career. The mindset of career is about results, C is often not a shortcut to most superficial (visible) results. (It is a shortcut to real programming skill though, but a real skill without paper career record doesn't mean much for your career.) But if you can afford a hobby and have the luxury of certain time at disposal, then I would suggest you to ap…

Thanks for your interesting perspective :) I always think of people who use C professionally as people who have been doing it for a _very_ long time and know a lot about it. In that situation it would be exceptionally hard to find any employment working with C. I've always been hesitant at many Project Euler problems since some of the math is off putting to me. That's why I consider building something (like a side pr…

I work on a team of 25-35 year old devs doing firmware/performance work for a BigCo - there are definitely plenty of people hiring in the space, but in general you only use C if you have custom hardware, and you only have custom hardware if you have a huge amount of capital, so it's tougher to find that work outside of established players.

Re: Beej's Guide to C Programming (2007)

#58
post #51

This is wonderful. I see that this guide is sort of "old news" to many of the experienced programmers hanging out here. But as someone who isn't that experienced and about to begin a course on Data Structures + Algorithms using C, this is amazing. Thank you.

> I see that this guide is sort of "old news" to many of the experienced programmers hanging out here.

https://xkcd.com/1053/

Carpe diem.

Re: Beej's Guide to C Programming (2007)

#60
post #44

Earlier quoted context omitted.

Thanks for your interesting perspective :) I always think of people who use C professionally as people who have been doing it for a _very_ long time and know a lot about it. In that situation it would be exceptionally hard to find any employment working with C. I've always been hesitant at many Project Euler problems since some of the math is off putting to me. That's why I consider building something (like a side pr…

>> I've always been hesitant at many Project Euler problems since some of the math is off putting to me. That's why I consider building something (like a side project or something of use). Math has the nature of simplicity -- well defined and little complication, but abstract (or useless). If you like building things, I would suggest a text editor or a GUI layout engine. For the latter, think about an intuitive decla…

> If you like building things, I would suggest a text editor or a GUI layout engine. For the latter, think about an intuitive declarative way of describing layout (like HTML/CSS or TeX or Tk) then implement it on native win32 API or GTK. Focus on the simplicity and in-control aspect; do not get distracted by feature completeness.

Both of these sound like great learning projects - but are they too far in the "deep end" for a beginner?

Just curious :)

Post reply on HN