HNHacker News
TopNewBestAskShowJobs

sclangdon

500 karma · joined June 11, 2012

submissionscomments
sclangdon··on My Journey into Fractals
If you liked this, you may be interested in Cyril Crassin's Ph.D. Thesis on Gigavoxels, which can be used to do something very similar.

http://maverick.inria.fr/Members/Cyril.Crassin/

sclangdon··on Modern Code Review: A Case Study at Google [pdf]
I do something similar. I try to start most of my comments with "What would happen if...". I find that people are more responsive if they work through it themselves rather than if I'd said "X is wrong, you should have done Y".
sclangdon··on Introduction to A* (1997)
Check out JPS+ if you need to go "over 100 times faster than A*"

https://www.gdcvault.com/play/1022094/JPS-Over-100x-Faster-t...

https://github.com/SteveRabin/JPSPlusWithGoalBounding

sclangdon··on C++17 Features That Will Make Your Code Simpler
I think it was introduced to help with things like lambdas, or other structures that the coder may not know the type of, or it would be difficult to work out the type.

Then the usage of auto was expanded to help when writing generic code.

I think both of these cases are valid uses of auto, but people seem to have run away with it and will literally use it for statements like auto i = 0;

As a professional C++ coder, I personally don't have a problem with auto (or var in C# for that matter) but I'd prefer people use it where it's useful rather than for every little thing.

sclangdon··on C++17 Features That Will Make Your Code Simpler
These things don't make it safe in the security sense. They just help against memory leaks.
sclangdon··on DevTube: Searchable index of developer videos
The search seems to have some issues. "C ", "C++", "C#" all return the same results.

Note: I actually had to type the space after 'C' in the first search string, otherwise the results seemed to be things that contain the letter 'c'.

sclangdon··on Ask HN: What are the things that you have automated in your personal life?
I've been wanting to do this for ages and link it with the USDA's nutritinal database but I just haven't had the time.

Is there any way to get hold of what you've done?

sclangdon··on Direct X Raytracing: Further Unification
The rasterized image they have on that announcement looks like it was rendered with OpenGL 1.2 or something. In reality, today's rasterized image would look almost identical to their raytraced image.
sclangdon··on Elementary Knightship found in Conway's Game of Life
Something like this you mean?

https://youtu.be/8unMqSp0bFY

sclangdon··on Ibuprofen alters human testicular physiology including testosterone production
Are you sure it didn't have codine in it? In the UK, the only (AFAIK) non-prescription medication with that sort of warning is anything containing codine.
sclangdon··on Microsoft disables Spectre mitigations as Intel’s patches cause instability
> On Windows, once the file is open, it is that filename that is open; You can't rename or delete it

You can rename a file when it's open. And once it's renamed, you can delete it.

sclangdon··on Jack White bans phones at gigs for “100% human experience”
sigh, you are not the Human race. Yes, Humans as a race have survived without cellphones, but that doesn't mean for an instance that the same applies to individuals.

You can't simply brush aside the parent's comments because you don't agree with them. A potential rape situation, or a lost and frightened child are very valid, and very real examples of how having a phone could help.

> Cellphones have made people into helpless, scared sheep.

You realise that people can be scared and helpless without being sheep, right? You also realise that simply being able to contact someone can remove the fear and helpnessness?

sclangdon··on Ask HN: How to make fewer mistakes?
In addition to what everyone else has said about just having more experience, my suggestion is slow down and think... and to use assert a lot!

I've noticed that some developers rely way too much on tools to do their job and they just don't spend a lot of time thinking. Think about the big picture as well as the details. Think about how your code interacts with its surroundings. Think about what you know to be true at any given line (and write an assertion), and whether or not that thing may ever change. Think about what every line means in isolation, and what it means to the surrounding code. Think about the names you give things.

Maybe it's because of my age, but when I started there were barely any tools to help. Even syntax highlighting wasn't readily available. Debuggers were pretty crap, or didn't exist at all. The best thing we could do to prevent bugs was to really question every bit of code. "What does this line do if x is not what we think it is?", "Can x ever not be what we think it is?", etc

I feel like a lot of developers today don't think enough about what they're doing, and care too much about their stack and their tools. Instead of moving fast and breaking things, perhaps instead try moving carefully, and try not to break things.

"The most effective debugging tool is still careful thought, coupled with judiciously placed print statements" - Brian Kernighan (replace print with assert for my interpretation!)

sclangdon··on Linus Torvalds: “Somebody is pushing complete garbage for unclear reasons.”
Linus Torvalds originaly said:

"All of this is pure garbage. Is Intel really planning on making this shit architectural? Has anybody talked to them and told them they are f*cking insane? Please, any Intel engineers here - talk to your managers."

David Woodhouse replied with:

If the alternative was a two-decade product recall and giving everyone free CPUs, I'm not sure it was entirely insane."

The rest is written by Linus, with all further quoted segments being something David Woodhouse wrote.

> "the user interface is horrendous"

The user interface is perfectly clear if you know how to read it.

sclangdon··on The radical idea of a world without jobs
I had similar thoughts about the meaning of it all. But I didn't question life per se, I questioned the rat race. "Why am I working all day?", "Why do I spend the best parts of the day in an office?", "Why can't I still afford a house even though I make good money?" and questions of that nature.

I wasn't as unhappy as you sound, I just didn't see the purpose of it (working) anymore.

And so I decided not to do it anymore. Instead, I've decided to buy a small amount of land, live sustainibly, start a market garden, and spend much more time with my family and integrate with nature more.

Life isn't bad, but it sounds like you're stuck in a rut. Perhaps you just need to find your passion, and make a plan to transition from where you are now, to where you want to be?

sclangdon··on Nintendo Labo Official Site
Like when people said the 3DS couldn't pull off 3D without glasses...
sclangdon··on Nintendo Labo Official Site
> Although if my limited experiences with kids are anything to go by, you'll probably need to buy a couple cardboard replacements in order to survive prolonged contact with children.

Kids will break it no matter what it's made from. That's why I think cardboard is a great choice because it can be fixed easily, or even just replaced for free in most cases (old delivery boxes, or the selection of free boxes you get in supermarkets, etc).

Not to mention kids can easily draw on cardboard, or paint it, etc.

sclangdon··on Tim Sweeney on the First Version of the Unreal Editor
Minor nitpick, but Carmack didn't create the tools for id's games. Romero made most of the early tools until his depature.
sclangdon··on EA now has the most downvoted comment of Reddit history
Integer rollover?
sclangdon··on Ask HN: What tech stack is in demand, and why?
https://masterthemainframe.com/ is a pretty cool website that intends to teach students how to do this kind of work by using a real IBM Z mainframe.

My first job was writing COBOL on an IBM 390. I hated it at the time, but I realise now how many important lessons I learned from it. It wasn't trendy, but it was worth doing and I'm glad I had the opportunity.

sclangdon··on Almost everything on computers is perceptually slower than it was in 1983
There is a similar setting in Windows, in case anyone is interested.

HKEY_CURRENT_USER\Control Panel\Desktop\MenuShowDelay

sclangdon··on Rivals Intel and AMD Team Up on PC Chips to Battle Nvidia
Is Nvidia that dominant? I don't have any numbers, but I'd be surprised if they had more GFX cards installed than Intel. In the high-end market, sure, but that's not a very big part of the whole story.

And as for game consoles, both Xbox One and PS4 uses an AMD. Only the Switch uses NVidia.

sclangdon··on Essential C
Until recently, even MSVC was C89. I believe they only added some C99 features because the C++11 standard required them (in VS2013, I believe), and full C99 support only came with VS2015.
sclangdon··on An open source re-implementation of RollerCoaster Tycoon 2
SDL2 has SDL_WINDOW_ALLOW_HIGHDPI, which creates the window in high-DPI mode.
sclangdon··on An open source re-implementation of RollerCoaster Tycoon 2
I haven't look at this game in particular, but usually you need to buy the original game to get the assests (art, models, audio, etc).

Even official open-source releases like the Quake series still require you to buy the original game in order to run them.

sclangdon··on How I Fixed a 10-Year-Old Guitar Hero Bug Without the Source Code [video]
You have to bare in mind that it's not really a bug in the original game. This "bug" only effects people modding the game outside of the original plan, and would never have caused a problem otherwise.

I'd agree that it's sloppy coding, but I can also see it from the original developers point-of-view. Why check something you know isn't going to change?

sclangdon··on Show HN: Dodeka Music – piano keyboard and easy-to-read sheet music in one app
I think you're confusing the act of making music with musical notation. This app is clearly trying to teach you how to play music, not how to read notation.

I don't see the problem in an alternative notation if it's easier to read (I don't know if it is, I've never used the app).

sclangdon··on Real-Time Global Illumination by Precomputed Local Reconstruction
I remember buying a new GPU everytime a new edition of Quake came out. Those were the days...
sclangdon··on Sublime Text 3.0
I'm always bemused by software developers who are unwilling to pay for software. Especially software they actually use.

If software developers don't value software, there is something very wrong with our industry.

sclangdon··on How to Recognize Burnout Before You’re Burned Out
I guess burnout means different things to all of us, and is probably caused by different things, too. What I'm about to describe probably wasn't the start of burnout, but I ended up there all the same.

I'm currently looking to get out of programming after 17 years because I'm tired of politics and bureaucracy. But anyway, on to your question...

I can't tell if these were signs of an on-coming burnout, or if I was already gone by then and just didn't realise what it was. But for me, I started to get angry and frustrated, quicker and easier. Sprint meetings annoyed me, daily stand-ups seemed pointless, interruptions always came at the wrong moment. I started to believe my own hype and went days without doing any work what-so-ever because I knew I could still do more work than my colleagues if I wanted to. I used to moan about my employer all the time and would often find myself saying things like "this fucking company...".

All of those symptoms probably have nothing to do with burnout per-se, and were almost certainly a result of a complicated relationship with a co-worker and a lack of credit and respect by my employer. Nevertheless, I believe that period changed something fundamental in regards to my thinking about programming, the industry, and perhaps life in general, which has led me to want to get out (of the industry, not life) as soon as I can.

I think what I'm trying to say - and having some trouble conveying - is burnout can come as a result of some other thing that starts you on the road of questioning if this industry is really what it's cracked up to be. So perhaps instead of looking out for potential signs of burnout, look instead for changes in your attitude. If your attitude is becoming more negative, you need to change something quickly or you’ll probably end up “burned out”.

Or maybe I’m just rambling about something that most people wouldn’t describe as burnout…

← PreviousPage 2 of 4Next →