News for hackers. Stuff that matters.
Re:A Modern C Development Environment by heisenzombie on Thursday August 10, 2023 @06:38PM (#37082624)
I don't quite understand the sentiment.

So, let's say we have a project. For whatever technical (or social, historical, religious...) reason, C is chosen as the right language.

Why does that imply that the programmers on that project should therefore write that C code in a terminal, with no linter, code formatter, static analysis, test runner, etc.?

Re:A Modern C Development Environment by isaacremuant on Thursday August 10, 2023 @07:01PM (#37082810)
Weird strawman. Those tools all run on terminals. IDEs use tools that run on terminals.

Teams can use a combination of different IDEs and run the tools at different levels or their pipelines, which necessitate that they be automatable (and not GUI only).

Re:A Modern C Development Environment by circuit10 on Thursday August 10, 2023 @08:18PM (#37083491)
You're missing the point, they aren't saying "your development process should never involve a terminal" but rather "you don't necessarily have to use this bare-bones setup which happens to be terminal based"
Re:A Modern C Development Environment by icedchai on Thursday August 10, 2023 @07:15PM (#37082951)
20 years ago, I worked on a C and C++ project that supported a billion dollar business. Almost everyone used vi. They used none of those other tools, and there were maybe a half dozen unit tests in the whole project. I sure hope times have changed.
Re:A Modern C Development Environment by haggy102 on Thursday August 10, 2023 @07:41PM (#37083164)
Why not advocate for better testing? What was preventing you from spending more time unit testing code running a billion dollar business?
Re:A Modern C Development Environment by post-it on Thursday August 10, 2023 @08:55PM (#37083786)
A project manager, probably. "Advocating for XYZ" costs emotional capital that I'm not necessarily willing to devote to a particular project, or to my employer at all.
Re:A Modern C Development Environment by frutiger on Thursday August 10, 2023 @08:55PM (#37083791)
> What was preventing you from spending more time unit testing code running a billion dollar business?

Presumably they were busy generating billions of dollars of revenue.

Re:A Modern C Development Environment by icedchai on Friday August 11, 2023 @09:03AM (#37088229)
At the time, I was a junior engineer, barely out of school. This company was run, technically, by people with 30+ years of experience. They preferred manual testing.

Also, I'll add that automated testing was definitely not as much of a thing in 2003 as it is in 2023.

Re:A Modern C Development Environment by nerdponx on Thursday August 10, 2023 @08:56PM (#37083797)
The point that I think everyone else is missing is that C is actually hard to work with and write correctly. If your project is sophisticated enough that you can't get by with basic tools, then maybe C isn't the best language for your project.
Re:A Modern C Development Environment by dotnet00 on Thursday August 10, 2023 @10:28PM (#37084385)
I think this idea of "basic tools" is highly debatable, especially with developers who are young enough for heavy IDEs like visual studio to have been their intro to coding (or similarly for people who enjoy programming but aren't so invested in the entire computer software stack to really care about knowing their environment particularly well).

Eg while I enjoy understanding all the layers of software in a computer and am perfectly comfortable with vim and a makefile (although I prefer vscode and cmake), most of the other developers I work with are just as competent with C, but can't really function if they can't use visual studio. To them visual studio is the basic tool and vim+make are advanced tools.

Re:A Modern C Development Environment by nerdponx on Friday August 11, 2023 @09:32AM (#37088512)
* * *
Re:A Modern C Development Environment by stjohnswarts on Friday August 11, 2023 @01:53PM (#37091649)
more gatekeeping. If I'm using C I want to use modern tools like every other language. If my environment doesn't have a debugger, tools like valgrind, linter, etc I don't have any use for it.
Re:A Modern C Development Environment by nerdponx on Friday August 11, 2023 @04:41PM (#37093736)
* * *
Re:A Modern C Development Environment by ryan-c on Thursday August 10, 2023 @09:38PM (#37084067)
The only intended implication was "C is generally not appropriate for complex projects".

There are, of course, always exceptions.