Live data from Hacker News

What's something difficult programmers make look easy?

tomaszs2.medium.com

31–40 of 76 posts

Re: What's something difficult programmers make look easy?

#31
post #2

Making six figures (by sheer luck of the fact that their work scales better than most jobs, including most harder jobs)

Programming isn't hard. It isn't easy either, but it isn't hard.

I think the thing about programming is that so much of the "old" world misunderstood how it was hard. There is a lot more creative process stuff involved with programming, and not nearly as much that is codified, that you need to study, as in other fields like physics. And so, it gives people wide leeway to footgun themselves. Just as much, going the other way, it puts a premium on the ability to think and reason in abstractions, to which point, we don't have as strong a "liberal arts" for the STEM world as we do for the literary / humanities / cultural world.

So yes, on one hand, programming is not as hard as physics (to make one example of it). But on the other hand, I knew a person or two doing research in physics who complained how much their work was held back because their colleagues didn't appreciate the effort it took to process all the data that came from their experiments. Folks didn't appreciate how critical all that code was to their research. We see this sort of dynamic replicated throughout the rest of the world.

Re: What's something difficult programmers make look easy?

#32

The think about programming that always gets me, is how things that sound very hard, can be very easy... and things that sound very easy, can be very hard or impossible.

“And check whether the photo is of a bird”

https://xkcd.com/1425/

I also like the “uncrop” photo enhancement from Red Dwarf.

Re: What's something difficult programmers make look easy?

#33
post #11

Earlier quoted context omitted.

How does storing more copies of the same texture save ram? Of course one can drop the higher resolution textures, but AFAIK that technique came long after mipmapping, as it requires high cpu-to-gpu bandwidth, which wasn't there in the earlier days.

Some implementations of mipmapping store a single medium-resolution image and either sample fewer pixels or duplicate neighboring pixels when drawing. You don't need extra memory for that. Literally just mapping a subset of the pixels from the texture stored in memory. When enough pixel duplication occurs you may want to enqueue a request for a higher resolution texture to be loaded into memory and let the resource p…

That's just level-of-detail on top of mipmapping. Mipmapping requires strictly more textures for the same level of detail.

Re: What's something difficult programmers make look easy?

#34

The think about programming that always gets me, is how things that sound very hard, can be very easy... and things that sound very easy, can be very hard or impossible.

"the main lesson of thirty-five years of AI research is that the hard problems are easy and the easy problems are hard." https://en.wikipedia.org/wiki/Moravec%27s_paradox

Re: What's something difficult programmers make look easy?

#35

Can I say how much I hate Medium these days? Remember when it didn't suck and was doing such a good job of not sucking that all sorts of very serious people created Medium accounts to start blogging? What the hell happened, Medium? I started reading this story, got about halfway down, and the story stopped and I got this big centered H2 reading "Create an account to read the full story." Fine, I want to read the rest…

This is why you should get various browser extensions that cut through this nonsense.

Re: What's something difficult programmers make look easy?

#36
post #20

"Create an account to read the full story." What game developers are good at is not making slow programs. Everything else, from point of sale to web pages to phone apps, gets slower and slower.

Unless you're Rockstar North:

https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...

https://news.ycombinator.com/item?id=26296339

Re: What's something difficult programmers make look easy?

#37
post #15

Doing anything repetitive with a large amount of data by virtue of knowing about for-loops. There have been so many times where people wanted something done to a million users/objects/whatever and were surprised that I got back in 5 minutes. One of them even muttered the words "I thought that would take you all day", when actually 3 of the 5 minutes were spent getting a cup of coffee.

My brother was given lines to write as a punishment in the early 80s. He wrote a for loop in basic and printed the result. The teacher didn’t know any better and was happy to accept the printout. Assuming he’d typed it all from scratch.

Similarly, I was tasked with counting every file in a folder and its subdirectories as a punishment at a job on campus as an undergrad.

I plonked out a Bash oneliner in a couple minutes and gave the result. My disgruntled superior had me do it again by hand.

Re: What's something difficult programmers make look easy?

#38

Can I say how much I hate Medium these days? Remember when it didn't suck and was doing such a good job of not sucking that all sorts of very serious people created Medium accounts to start blogging? What the hell happened, Medium? I started reading this story, got about halfway down, and the story stopped and I got this big centered H2 reading "Create an account to read the full story." Fine, I want to read the rest…

More articles hosted on Medium means more time I save by never reading them.

Re: What's something difficult programmers make look easy?

#39
post #2

Making six figures (by sheer luck of the fact that their work scales better than most jobs, including most harder jobs)

Programming isn't hard . It isn't easy either, but it isn't hard . I think the thing about programming is that so much of the "old" world misunderstood how it was hard. There is a lot more creative process stuff involved with programming, and not nearly as much that is codified, that you need to study, as in other fields like physics. And so, it gives people wide leeway to footgun themselves. Just as much, going the…

Programming isn't hard if you exclude debugging as being a different activity.

Re: What's something difficult programmers make look easy?

#40
post #29

laughs nervously while trying to get performant 2D rendering of large tilemaps in their first game I can barely begin to imagine all the pain involved in creating AAA games. Decades of whitepapers to read and build upon only to get to a point where consumers aren't downright angry at the quality of graphics being given to them.

That seems surprising, and I've been a game dev before I switched to mobile. How large is a "large" tilemap? And what is it that makes them particularly hard in the AAA space?

My grid right now is 144x144, so about 20,000 tiles. Things were working OK in iOS Safari when just using colors to draw the tiles, but the browser started crashing when I tried upgrading to image sprites.

Turns out the trick is to not submit each individual tile to the GPU. You have to roll them up into larger, chunked meshes and submit those meshes to lessen the impact.

I'm sure this is game dev 101, but I've never been close enough to the GPU to have to actually care about this sort of stuff. I cut my teeth learning the performance characteristics of the DOM not the GPU.

I wasn't trying to imply that I was making an AAA game. Just that, from the outside, it seemed like the difficulty would be in designing game mechanics, making something actually fun, marketing, etc., but in reality there's an ever-steepening technical learning curve when you want to deliver nicer looking stuff. When I look at how many days I've spent working on my game, and how terrible it looks, and then I look at something like Cyberpunk 2077... I struggle to conceive how we as humans were able to create those levels of graphics in a timeframe that allows for the game to be profitable.

https://github.com/MeoMix/symbiants btw. Feel free to browse the code (or come volunteer! I've got a few other HNers tinkering alongside me these days)

Post reply on HN