TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What's something difficult programmers make look easy?

30 点作者 tomaszs超过 1 年前

15 条评论

WJW超过 1 年前
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.
评论 #39061972 未加载
评论 #39061939 未加载
armada651超过 1 年前
&gt; How to workaround too little RAM problem? Let’s load pixel graphics if player is far away and call it mip mapping<p>Hold up, mip mapping is not a way to save RAM in fact it consumes more RAM because not only do you need to have the full-size texture in RAM you also need to keep smaller copies in RAM.<p>What it does save on is memory <i>bandwidth</i>, because you don&#x27;t need to sample from the full-size texture for objects that are far away. And it improves visual quality, since you can use expensive scaling algorithms to produce high-quality downscaled copies.
评论 #39062394 未加载
评论 #39061745 未加载
SeanAnderson超过 1 年前
<i>laughs nervously while trying to get performant 2D rendering of large tilemaps in their first game</i><p>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&#x27;t downright angry at the quality of graphics being given to them.
评论 #39062017 未加载
HumblyTossed超过 1 年前
I would argue that difficult programmers don&#x27;t make anything look easy.
评论 #39066075 未加载
评论 #39062271 未加载
wly_cdgr超过 1 年前
Making six figures (by sheer luck of the fact that their work scales better than most jobs, including most harder jobs)
评论 #39061710 未加载
评论 #39062034 未加载
评论 #39061852 未加载
评论 #39061689 未加载
kazinator超过 1 年前
&gt; <i>1981 A first 3D game called Tempest is published</i><p>Battlezone is actual 3D, and 1980.<p>I&#x27;m not saying that is first, either, just that 1980 &lt; 1981 and that Tempest is more of a form of 2.5D. (I remember it being an interesting, fast-paced game with good sound, but fundamentally it&#x27;s just Space Invaders rolled into a tube.)<p>&gt; <i>How to workaround too little RAM problem? Let’s load pixel graphics if player is far away and call it mip mapping:</i><p>MIP mapping is not primarily a RAM problem solving device. It&#x27;s a way of precomputing the shrinking of texture images for when they appear in the distance, so that they don&#x27;t have to be antialised on the fly.<p>Thus is a CPU saving device, and requires extra storage. However, not much more! The half-size texture needs only 25% more storage, and the quarter-size another 6.25% or so.<p>The renderer has to consider the depth and index into the appropriate scale of the texture. I don&#x27;t remember all the details, but I see to remember that it&#x27;s dynamic. Like when the textured surface is in deep perspective, the distant pixels are derived from the smaller scale data, while the near part from the larger scale.<p>It could save RAM if we can avoid the detailed textures for objects that require them and are all far away. I.e. lazily load the detailed texture as the objects are approached, and free the memory when they recede again.
评论 #39062310 未加载
Animats超过 1 年前
&quot;Create an account to read the full story.&quot;<p>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.
评论 #39063503 未加载
评论 #39063286 未加载
评论 #39062109 未加载
LarsDu88超过 1 年前
First of all ray tracing was invented well before real-time rendering.<p>Second of all, all these difficult things are difficult things that game ENGINE developers are responsible for tackling nowadays.<p>In the 90s and early 2000s, most of the people building engines were laying down games at the same time, which is very much akin to building a railroad while running the train. For most folks (like me; I&#x27;m developing an indie VR game on the side) this is all handled by Unreal, Unity, or Godot.<p>I&#x27;ve tried to build a simple game engine in the past... you wind up reinventing the wheel a lot...
AndyNemmity超过 1 年前
The think about programming that always gets me, is how things that sound very hard, can be very easy...<p>and things that sound very easy, can be very hard or impossible.
评论 #39062090 未加载
评论 #39062046 未加载
globalise83超过 1 年前
Editing a shared multimedia document in near real-time with colleagues on four different continents. I still marvel at this now-commonplace task.
countWSS超过 1 年前
Debugging. It takes hours to pinpoint exact cause of anything more complex than a toy program, especially when the bug requires a combination of factors to manifest. In most situations its much harder to debug code that you didn&#x27;t write, but it appears as if debugging is &quot;easy&quot; because people do it on their own code.<p>Bonus(appear easy to do, but are actually hard): Micro-optimizations that target a specific platform: a combination of CPU-compiler-OS factors.<p>Porting software: There are tons of subtle unportable things and assumptions that hide under the surface.<p>Rewriting X in Y:lots of footgun and like inexact translation in natural languages can cause subtle bugs.<p>Makefiles and shell scripts: they look so simple, but try debugging a moderately complex makefile or shell scripts. Bash is especially sinister example.<p>Anything that talks to a closed&#x2F;blackbox API or close-source library: the dependence on code that you can&#x27;t debug in general.<p>Maintaining software in general as it grows in complexity.
diydsp超过 1 年前
Parsing
diydsp超过 1 年前
Constrained geometry for CAD tools like Fusion360
loloquwowndueo超过 1 年前
Um… programming?<p>Honestly, grab a random human and sit them next to you while you code a bubble sort algorithm or a prime number finder to see what I mean.
CobrastanJorji超过 1 年前
Can I say how much I hate Medium these days? Remember when it didn&#x27;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?<p>I started reading this story, got about halfway down, and the story stopped and I got this big centered H2 reading &quot;Create an account to read the full story.&quot;<p>Fine, I want to read the rest. I create an account. I go back to the story. Now the story still stops at the same place but the big centered H2 has changed to &quot;Jorgi, read this story from Tom Smykowski — and all the best stories on Medium&quot; and there&#x27;s an &quot;Upgrade&quot; button. That was not our deal, Medium! You said I could create an account to read the full story.<p>So I click the button and it takes me to the signup page, of course on the &quot;pay annually tab,&quot; with a small white button on a white background that reads &#x27;monthly&#x27; for other options. Fuck you, Medium.
评论 #39062164 未加载
评论 #39062248 未加载
评论 #39062434 未加载
评论 #39062544 未加载
评论 #39062099 未加载