News for hackers. Stuff that matters.

leobelle

Show HN: Forge-GPU – 55 C lessons for SDL's GPU API, built with Claude Code

https://github.com/RosyGameStudio/forge-gpu

Open-source tutorial series teaching real-time graphics programming with SDL's GPU API. Covers everything from Hello Window to SSAO, with math lessons, engine lessons, and a UI track building font rendering from scratch. Every lesson is a standalone C program with commented code explaining why, not just what. The whole project was built with Claude Code. Each lesson also distills into a...

( Read More... | no comments | on HN )
Re:Ask HN: What happens to older developers? on Monday March 10, 2014 @01:32PM (#7374356)
My favorite reply so far. I'm 37 and am starting to worry. I haven't run into any issues yet.

I have noticed though that experience become a liability. If you wrote JavaScript for IE 6, a lot of the optimizations and things one did to make sure things worked in IE 6 are no longer necessary. One should be ready to let go of things as soon as they aren't necessary anymore. Always keep learning and know why you do the things you do with code.

Re:2048 on Monday March 10, 2014 @01:23PM (#7374278)
I seem to pretty much always get a higher score by button mashing, or going up down left right in rotation than by trying to figure it out. :(
You can also just always click the "link" and reply directly to a reply there.
> take a look at the school her or she attended and stop interviewing people from that school, problem solved.

This is really bad advice, because much about learning programming is about an individual effort. It has little if anything to do with the school.

> If you find a person with an MS who can't pass a simple programming test

You actually need more than a simple programming test that solves a single problem. You need to see enough code to have some architecture, designed by the candidate. Interviews are too short for this so experience whether at some other company or open source, or just if skilled people can vouch for you goes a long way.

A master's degree, assuming no experience, is more like a warning signal for someone who's stayed in academics too long and has no practical skill. It's like you're hiring a really expensive junior developer if they've never built real world software under business constraints that needed to like be bug free, and scalable. It's like the code written in graduate college gave a shit about memory use, file or network i/o performance, a good ui design, or like actually doing the thing it's supposed to. Sorry, ranting due to bad experience in the past.

The thing is, more education will enable a good developer to be even better. It's doesn't seem to help a struggling developer in any shape or form. Unfortunately sometimes I get the impression that people stay in school to address a problem that can't be addressed with more classroom time and end up doubling down on a field that maybe isn't right for them.

At the very least try to intern early on and or successfully help a popular open source project before graduate school.

> anything else Noogle Now related.

I like Noogle so much I might write up a quick chrome extension that turns Google into Noogle everywhere.

Re:Python 3.3.5 has been released on Monday March 10, 2014 @02:58AM (#7371629)
This has very little to do with Python developers deciding between version 2.7 and 3.x. If you wrote a library or an app in Python 3.x packagers should require the appropriate version of Python as a dependency. Sam with v2. Developers shouldn't worry about that.
Re:Learn regular expressions in about 55 minutes on Monday March 10, 2014 @02:55AM (#7371623)
Where mastering hopefully means to just avoid them whenever possible.
The title takes a reasonably interesting boat and ruins it with inane link bait. Sometimes when you try to make something great look bigger than it is you've ruined it.
Re:How not to write an API on Monday March 10, 2014 @02:37AM (#7371582)
That's not true at all. If you use secure encryption to store plain text, and proper use of HTTPs to transfer said text, that's secure. It's not as bad as obfuscated text. What you've said is just plain untrue.

One problem with storing passwords is that there is no good reason to. The other security issue is that people reuse passwords. So everyone should be creating hashes instead of encrypting passwords, but encrypting text, and transmitting it securely is still secure. This API didn't do that, it did a lot of things wrong, but these comments are all pretty ignorant as well.

It's just one inane comment after another in this thread.

Re:Python 3.3.5 has been released on Sunday March 09, 2014 @10:05PM (#7370950)
Twisted is a library you might want to use if you want to write non-blocking code. So you would care a great deal if this wasn't python 3 if you wanted to use python 3.

Mercurial is an application you use to version control your source. I'm not sure I understand why any python developer would care if Mercurial was written in python 2 as long as it worked. Maybe if someone was writing a Mercurial plugin or patching Mercurial they would care.

Re:How not to write an API on Sunday March 09, 2014 @09:57PM (#7370925)
> Who the hell thinks it's OK to store non-encrypted passwords in this day and age?

The post gave no indication how Cricketer was storing the passwords. They may very well be stored encrypted.

You can send plain text passwords back if you've encrypted them, you just have to decrypt them first. There's no point at all in returning the results of encrypting a password if the clients don't know how to decrypt those results. Given that the API uses plain text HTTP, I doubt that the passwords are encrypted.

What the passwords are not stored as however, are hashes. A hash is not the same as text that was encrypted. A hash is a difficult to reverse unique identifier for bit of text.

Having said all this, it is funny to see your post, and all its replies making fun of security incompetency while also being incompetent in themselves.

Re:Ask HN: Successful one-person online businesses? on Sunday March 09, 2014 @01:31AM (#7367703)
I meant you should use a different domain for static content on your marketing page, and I'm not lamenting anything. Just giving you some advice. Ghostery has been installed over 1 million times just in Chrome. Any one has ghostery installed and is going to your site will see a completely broken webpage.
Re:Ask HN: Successful one-person online businesses? on Sunday March 09, 2014 @01:18AM (#7367683)
Ghostery blocks w3counter so it blocked pretty much everything on the actual site, maybe use a static domain that isn't blocked by ghostery. :O
Re:Show HN: Hoodie App is Men's Clothing in Two Taps on Saturday March 08, 2014 @09:34PM (#7367210)
Pretty interesting idea, good luck! Customer service and returns are pretty important though.
My thoughts. lobste.rs is the only really remotely viable alternative to HN and it doesn't have near that many upvotes for items on the front page, but it has some discussion.
> by designing a product that all ages can use they reserve a place in the mind of the next generation of smartphone users.

It's nice they make user friendly phones, but I don't think your logic works out like that.

Re:How Fat May Hurt the Brain, and How Exercise May Help on Friday March 07, 2014 @01:18PM (#7361798)
Misery isn't a zero sum game. We can all have infinite amounts of misery.
Re:How Fat May Hurt the Brain, and How Exercise May Help on Friday March 07, 2014 @01:17PM (#7361796)
I definitely am not eating enough vegetables and too much starch, which I know I have to change. Thanks for your other tips.
Re:How Fat May Hurt the Brain, and How Exercise May Help on Friday March 07, 2014 @03:53AM (#7359154)
I get up at 4 am every day and eat breakfast. I still overeat.

I've swung back and forth between 280lbs and 220lbs for the last 5 years. I'm currently around 250lbs.

I've been under 260lbs for almost 2 years now and I still have to starve myself constantly to get back down to 220lbs even though I sleep well. Nothing works. It's all pain. I eat too much and I'm miserable or I eat just enough or too little and I'm miserable. My ability to figure out when I'm full is completely broken. I'm either sated after having eaten too much or I'm starving.

Re:How Fat May Hurt the Brain, and How Exercise May Help on Friday March 07, 2014 @01:39AM (#7358867)
Yeah well it's not like I love being fat. We all know fat is bad, and I wish I had less of it, but it's not like my adipose is going to go away by scaring it with more bad news about why it sucks to be fat. Once you're fat, not being fat anymore is a really hard problem, which is why fat people aren't really known for eventually being skinny some day again, but there's a high prevalence of skinny people who once were fat eventually getting fat again. I've been fighting my weight for near a decade now, and I used to be a pretty athletic individual in my 20's.

I don't think skinny people understand. Maintaining weight feels like starvation to fat people, for at least some of them, like me. If you only eat enough food to just maintain your weight it hurts just as much as dieting. That will probably never change for us, even if we lose a lot of weight (and I have lost a lot of weight). So fat people have to be on painful diets the rest of their lives, just to not get fatter.

So my advice to young people is, don't get fat. If you're already fat, you're pretty much fucked.

Re:Redis 2.8.7 is out on Thursday March 06, 2014 @09:22AM (#7353769)
Thank you for your replies to my questions! For what it's worth I love the redis interface and appreciate your indepth information.
Re:The Meta-Marketing of ‘The Lego Movie’ on Wednesday March 05, 2014 @10:54PM (#7351770)
No it doesn't apply, and thus the substance of whatever you've said doesn't appeal to me. It fails a heuristic of mine I'll call "throws out false accusations after misrepresenting what I've said".
Re:The Meta-Marketing of ‘The Lego Movie’ on Wednesday March 05, 2014 @07:48PM (#7351093)
> people have voted with their wallets and have said that Legos are worth greater than the sum of their parts

That's half a quote. The point you misquoted was very specific, regarding Legos being priced higher than their material costs works, because people value Legos for more than the plastic they're made with. That's not a tautology, that's a simple observation. This is without a doubt the worst conversation I've ever had about Legos.

Re:The Meta-Marketing of ‘The Lego Movie’ on Wednesday March 05, 2014 @05:14PM (#7350325)
> "and Legos are selling because they're priced appropriately"

Nope never said that, show me where I said this.

Re:Redis 2.8.7 is out on Wednesday March 05, 2014 @05:09PM (#7350308)
If it's not AP or CP, then what is the value? Cassandra is eventually consistent. Consistency is pretty important. It seems like Redis Cluster doesn't have consistency, nor availability, nor partition tolerance. Maybe I misunderstand it though.
Re:The Meta-Marketing of ‘The Lego Movie’ on Wednesday March 05, 2014 @11:02AM (#7347704)
I'm not sure I understand what your point is. I explained why Legos are not overpriced, and made some probably unnecessary judgement statements about why people would call it overpriced. I didn't say Legos are not overpriced because they are not overpriced, I said they're not overpriced because their products are selling. Where is the tautology?
Re:Redis 2.8.7 is out on Wednesday March 05, 2014 @10:42AM (#7347551)
Thanks for answering questions, any comments or progress on aphyr's complaints about using proven algorithms for Redis replication? [1]

[1] http://aphyr.com/posts/307-call-me-maybe-redis-redux

Older »