ryanpcmcquen
ryanpcmcquen on Hacker News
What would you recommend?
In my experience, including `"some_file.h"` is more common than `"some_file.c"`. I also like knowing at a quick glance what the entry point/main file is. That's less explicit when all the files have the same extension.
I know that using .c and .h files is the traditional way of doing it in C, and I started the engine this way, but to be honest, is there any gain to it in this scenario?
The headers are library code, and having more files just means more maintenance and build complexity. Is there another advantage I am not aware of?
Thank you for the feedback and gist, I will take it into consideration.
We use the 'happy path' style at work. It is OK. I find it has its own set of disadvantages as well. I am also not a fan of negative/negating conditions.
Whenever possible, I try to write the code the way I would explain it in plain language. This may be antithetical to the majority of modern programming, but I am OK with that.
I don't want to add #pragma once until I am ready to ship the game. This way I will know right away if I do any redundant includes.
Posted by
ryanpcmcquen on Saturday February 01, 2020 @05:48PM
from the show-hn dept.
'The CS Detective' is the most well written introduction to Computer Science theories I have ever come across:
https://nostarch.com/csdetectiveIt is approachable, fun, and engaging. It frames concepts inside a 'detective' story, making the explanations less abstract and more practical.
A lot of Republicans support Net Neutrality, including the stalwart conservative Scalia. The main reason so many current Republicans oppose it, is the association with Obama, and the piles of money Telecom is floating their way.
I am surprised this even passed the Senate. It is almost as if Senators want to get re-elected.
This is 100% about ISP regulation.
I am yet to hear anyone who is anti Net Neutrality arguing for electricity or other utilities not to be regulated ...
Good find! Looks like he said something similar, but never those exact words.
In my experience in discussing these issues with people who were pro-FOSTA, this argument has helped them realize that it is violating the first amendment, and an example of government controlling the internet. So I have to respectfully disagree with your conclusion.
I made no mention of it 'not being as bad' as other bills. I stand by my statement. Net Neutrality is government regulating ISPs. ISPs are not the internet.
And I think it could convert those in the anti camp. Some are against Net Neutrality because they see it as government control of the internet (it is not). They need to recognize that FOSTA is directly what they perceive Net Neutrality to be (at least in terms of results).
Controlling ISPs !== controlling the internet.
Thank goodness for Slackware and Devuan.
Thank you for fighting the good fight!
I find it funny that some people still see Net Neutrality as 'government controlling the internet'. They should take a look at FOSTA if they want to know what government controlling the internet really looks like.
This is a great and unexpected move by Google.
Yet another reason to avoid Gmail.
"If you can't explain it simply, you don't understand it well enough."
- Albert Einstein
Brent definitely understands it well enough.
I have seen those, most of them seem abandoned.
I hope someone gets Weltmeister running client side now (without PHP). Then you could hack on Impact using a Chromebook!
I would love to hear more about Tromer's exploit. Anyone aware of where I can find more about it?
Buried treasure makes the world seem so magical.
Org mode is ridiculously good. It made me love Emacs.
The irony is, that this article is very short.
I always struggle with extensions. Often I just want to go completely extension free (as I do with Vim and Emacs). But some extensions are too good. A few that come to mind for VS Code are:
- Prettier
- Regex preview
Stack Overflow is a reflection of most internet communities, which show that many people are assholes.