Better HN
topnewbestaskshowjobs
Log inSign up

ryanpcmcquen

91 karma · joined Oct 8, 2015 (11y ago) · 73 submissions

[ my public key: https://keybase.io/rpcm; my proof: https://keybase.io/rpcm/sigs/ULX3plU61NrE7q2pUG6bGyccEKCMQZIMAYoUsH3xeIk ]
Submissions

comment 6y ago · link · parent

What would you recommend?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

6.

Show HN: A 2D game engine in under 1000 lines of C(github.com ↗)

98 points · by ryanpcmcquen · 6y ago · 26 comments

comment 7y ago · link · parent

'The CS Detective' is the most well written introduction to Computer Science theories I have ever come across: https://nostarch.com/csdetective

It is approachable, fun, and engaging. It frames concepts inside a 'detective' story, making the explanations less abstract and more practical.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

I am surprised this even passed the Senate. It is almost as if Senators want to get re-elected.

comment 8y ago · link · parent

This is 100% about ISP regulation.

comment 8y ago · link · parent

I am yet to hear anyone who is anti Net Neutrality arguing for electricity or other utilities not to be regulated ...

comment 8y ago · link · parent

Good find! Looks like he said something similar, but never those exact words.

comment 8y ago · link · parent

Slippery slope? Haha.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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).

comment 8y ago · link · parent

Controlling ISPs !== controlling the internet.

comment 8y ago · link · parent

Thank goodness for Slackware and Devuan.

comment 8y ago · link · parent

Thank you for fighting the good fight!

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

This is a great and unexpected move by Google.

comment 8y ago · link · parent

Yet another reason to avoid Gmail.

comment 8y ago · link · parent

"If you can't explain it simply, you don't understand it well enough." - Albert Einstein

Brent definitely understands it well enough.

comment 8y ago · link · parent

I have seen those, most of them seem abandoned.

comment 8y ago · link · parent

I hope someone gets Weltmeister running client side now (without PHP). Then you could hack on Impact using a Chromebook!

comment 8y ago · link · parent

I would love to hear more about Tromer's exploit. Anyone aware of where I can find more about it?

comment 8y ago · link · parent

Buried treasure makes the world seem so magical.

comment 8y ago · link · parent

Org mode is ridiculously good. It made me love Emacs.
123