TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What's the most important piece of code you've written?

105 pointsby jessehorneover 6 years ago
What&#x27;s the most important piece of code you&#x27;ve written?<p>My answer is as follows... The most important piece of code I&#x27;ve written was a rudimentary 2d tile engine in QB64 for an RPG I never finished. It&#x27;s memorable and important to me because of what writing it did for my confidence as a developer. At the time, writing a tile engine &quot;from scratch&quot;, in my mind, would make me a &quot;professional&quot;.<p>I had been following a Game Development YouTube series called &quot;Adventures In Game Development&quot;. I wanted to be a game developer! It was my dream! I was a novice developer when I took on that challenge. After a few articles and discussions with some people in various IRC channels, I began.<p>A few hours later, I saw a map appear that I had hardcoded which contained 0&#x27;s, 1&#x27;s. When I saw the square patch of grass with water in the middle (my clever map design), I thought I could accomplish anything. It was one of those moments that changed my life.<p>I&#x27;m not kidding when I say I had wanted to write a tile engine for a year, at least, before I was actually able to do it. I was probably around 14 years old, at the time.<p>I hope you enjoyed reading my answer to this question and I look forward to reading yours!<p><i>EDIT</i><p>I found the link to one of the articles I read when writing the tile engine.<p>http:&#x2F;&#x2F;www.petesqbsite.com&#x2F;sections&#x2F;tutorials&#x2F;tutorials&#x2F;rpg_tut2.txt<p><i>EDIT 2</i><p>Another important piece of code I&#x27;ve written was the prototype for this game.<p>http:&#x2F;&#x2F;hdfgame.com&#x2F;<p>I helped with the commercial version a bit but it was awesome to see my prototype turn into the first commercial game that I helped release. The prototype was simple but it had the basic functionality that Hexapod Defense Force has.

54 comments

neuroclineover 6 years ago
This isn’t the most important thing I’ve done, but it’s certainly one of the coolest. And it was important to millions of Starcraft players.<p>There was a time when we broke patching for Starcraft. I point no fingers because, of the top 4 engineers that worked on Battle.net from the beginning until the point of this incident, 3 of them (myself included) broke patching (Diablo, Warcraft II BNE (my bad), and now Starcraft). This is a tragedy, because we always took the mechanics of it very seriously, and still would get it wrong.<p>A patch went out that broke the patching mechanism. Starcraft worked fine, but if you had to download another patch, the game would crash. We were looking at a scenario where everyone would have to reinstall the game, and that sucks. Worse, this was back in the early 2000s, so we had no way to message everyone easily.<p>I spent two days non-stop trying to find a way out. And then I had a crazy brilliant idea, based on the original bug. See, the crash bug was a stack overwrite, causing the version detection code to crash inside the game when returning from the version check. I figured out a way to cause another stack overwrite to fix the first one; use the downloadable version DLL we used at the time to leave a trampoline on the stack that would be right at the stack overflow caused by the bug, and cause the game to jump straight to the download-next-patch section of the code. It took a little while to get everything to work properly, but it was glorious. We made a small patch to fix the bug, and used my stack-overwrite hack to get the game to download it. And then I went and got some sleep.<p>After this, we (Blizzard) overhauled how we did patch testing, and stopped breaking patching.
评论 #18905658 未加载
评论 #18904750 未加载
lettergramover 6 years ago
It really depends on what you mean by important? Some of my most important code saves a company millions of dollars a year... It&#x27;s not at all important to me, but it does it&#x27;s job and it is important to <i>someone</i>.<p>The most important code to me is a difficult question... I look at code as solutions to problem. What&#x27;s most important to me, is the code that made me realize none of us are free (weird as that sounds). I can track anyone on the web from their discussions (provided enough comments, i.e. 1000+ words):<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;AustinGWalters&#x2F;status&#x2F;1041894765439201281" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;AustinGWalters&#x2F;status&#x2F;104189476543920128...</a><p>Expanding on this system I built an investment framework part of which is incorporated in (<a href="https:&#x2F;&#x2F;projectpiglet.com" rel="nofollow">https:&#x2F;&#x2F;projectpiglet.com</a>). It has helped me make 100% yoy returns since 2013 (including &gt;200% last year, even with the downturn):<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;AustinGWalters&#x2F;status&#x2F;1070142665017167872" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;AustinGWalters&#x2F;status&#x2F;107014266501716787...</a><p>It&#x27;s the basis for my startup, but perhaps more importantly, made me realize we have no freedom. I can do this with no funds, in my house, with a computer. I track a couple million people in real-time (public data only)... I wrote a blog post about my introspection:<p><a href="https:&#x2F;&#x2F;austingwalters.com&#x2F;the-last-free-generation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;austingwalters.com&#x2F;the-last-free-generation&#x2F;</a><p>In a sense, it&#x27;s open my eyes to the dystopia we are building and it&#x27;s changed my outlook dramatically.
评论 #18900197 未加载
评论 #18904820 未加载
评论 #18913126 未加载
cekover 6 years ago
In 1987 I wrote about 150 lines of 68000 assembler that applied a low-pass filter to every sound heard by the towed-array sonar system on the Los Angeles class fast-attack submarines. I was an intern (co-op) and nobody even looked at my code. But it fixed the problem that had been plaguing the ANN-BQQ-5D system, preventing it from going into trials and &#x27;management&#x27; just shipped it once the tests started passing.<p>Compared to other things (including some of the ID3 tag processing code that&#x27;s still in Windows today, and OLEView) this seems pretty important.
评论 #18900187 未加载
compsciphdover 6 years ago
The most important code I ever wrote was as a phd student. No one uses that code, but they use the concepts behind it every single day.<p>The Q was how does one manage large numbers of heterogeneous containers (VM sprawl was already considered a problem, but we said if containers took over the sprawl would be worse). At the time the primary container mechanism was Solaris Zones and people uses ZFS clone functionality to create per zone container file systems. However, this only really helps if your containers are homogeneous. I built a system that created container file systems out of composable layers. One would define template file systems as a collection of layers that are stored in local and remote layer repositories and these layers would be instantly unioned together on demand when one provisioned new containers. We also demonstrated that since heterogeneous containers are now easy to manage, we can not just use containers as lower overhead but similarly long lived VM replacements, but also enable them to be used ephemerally, opening up many new use cases.<p>You probably know of this by a different name today.
评论 #18900356 未加载
评论 #18900263 未加载
zodvikover 6 years ago
I wrote a lot of code for payments processing at an Indian e-commerce shop &amp; see&#x2F;make it scale from 100s of QPS to ~200k QPS. Just having the code paths exercised by so many people over a day gives me joy.<p>One change that I will not forget that made the highest &quot;perceived&quot; impact with a one line change. The payments flow was at a different domain the rest of the site. This meant the users incurred a fresh set of DNS lookup, TCP connection establishment &amp; a SSL handshake cost. The change was to load a &quot;pixel&quot; image from the payments domain a page before. It dropped the first call latency from 550ms to 100ms :-)
cknightover 6 years ago
I&#x27;m an IT&#x2F;SysAdmin type guy so I don&#x27;t really code beyond web stuff at a hobbyist level, though I did do CompSci at uni way back when. However when I followed my partner overseas for a few years, the only job I had while away was working in a computational research group at a university.<p>I was brought on to provide a nice looking web UI for an online system that scientists could use to submit jobs to a server running molecular dynamics simulations. After finishing the job queue and interfaces though, I had plenty of time to spare. So the boss asked me to try and run some necessary manipulations on the uploaded PDB (protein data bank) files, before they would be sent to run in the simulation.<p>It&#x27;s still the only time I have ever actually used direct material from my undergrad degree at work - using Dijkstra&#x27;s algorithm and standard deviation to discover protein structural features, then manipulating them. It was also the only time I ever used the Python I spent just one semester learning a decade before. With all those libraries, I can understand why it was the language of choice my boss&#x27; field.<p>I made a log of the jobs as well, and in the 5 year since then, over 10,000 jobs have been submitted, helping scientists from dozens of countries all over the world. It&#x27;s also the only code I&#x27;ve written since my uni days which isn&#x27;t just typical web app type stuff. It&#x27;s just this pokey little online service but I&#x27;m really proud of it, and I hope I&#x27;ve contributed to humanity&#x27;s progress in some tiny way.
mikekover 6 years ago
I added support for the middle finger emoji to the WhatsApp iPhone app.<p>Unlike other messaging platforms, WhatsApp provides their own emoji graphics to ensure backwards compatibility even on old versions of the OS that don’t support that emoji natively.
评论 #18957163 未加载
评论 #18900286 未加载
sterlindover 6 years ago
I designed and implemented the core algorithm that currently allocates Azure VMs to physical nodes (though the policies aren&#x27;t mine, and I owe much credit to my coworkers for actually shipping it.) It removed a fundamental scale bottleneck.<p>Later, I designed an efficient solver for a category of NP-hard graph problems that currently powers Azure&#x27;s WAN, 98% faster than the module it replaced.<p>Hopefully with time I&#x27;ll be able to publish both. I had mental and physical breakdowns on the way, but those experiences make me proud to be alive.
评论 #18901051 未加载
AnonymousRiderover 6 years ago
The most important code I “wrote” was merged with code from my wife and produced a tiny human executable.
IMTDbover 6 years ago
I was at university working on a side project: I wanted to have my own movie torrent website. The idea was to list movies and under each movie list the best available torrents.<p>This is now a pretty common feature, but at the time trackers only had a list of file going like Titanic.1998.DVDRiP.Proper.MyGroup.<p>I was able to fetch the torrent, but the hard part was linking each torrent the correct movie (by IMDb ID). I tried for ages to get it right with reg exp to extract the movie title from the torrent name, use the IMDb API, and so on until I found the solution.<p>The solution, was to just simply take the torrent name, extract the year as the last 4 digit sequence, remove all regular tokens like dvdrip, TS, xvid and so on and perform an automated google search on the string: IMDb &quot;Everything else&quot; (Year). and extract the ID from the first result. It took me less than an hour to implement, and gave absolutely glorious results, matching movies with typos, rejecting non movie torrent and generally getting a fantastic accuracy.<p>I went on to release the website, which went on to become semi famous in the field and the consequences for me were :<p>- Sometimes complex problems actually have simple solution, think outside the box, you don&#x27;t have to do everything yourself.<p>- I actually earned money from some ads I put there, which made uni life a lot funnier. I also experienced what it&#x27;s like to put a ton of efforts in a product only to get a very slow growth. And then see &quot;something&quot; happen, and you get rewarded for all of that. In a way I felt like a founder.<p>- I maintained the website for years. I was able to apply most of what I learned in my lessons on an actual product, learn new stuff on my own, and faced challenges like scaling that my peers simply could not grasp. I finished uni with top grades and a significant reason for that was my illegal torrent website.<p>- I got a ton of recognition for my work from friends and family. Even met someone at a bar that wanted to show me the cool website he found when we started discussing movies. One of my bets memories. I started working at BigCo and did not get that kick anymore, which prompted me to change path and work in startups. Really happy with that choice.<p>The code itself was simple, not really beautiful or efficient, non scalable, completely against any TOS you can dream of, and the goal was to aid movie piracy. It dod not generate million of USD. It probably did not change the life of many, but it changed mine
candlelightXover 6 years ago
Wrote whole ad tech platform and roped in the advertisers&#x2F;publishers with my sales skill then received 5M payout got kicked off the company.<p>After that they hired sales guys from big companies because they had enough cashflow going.<p>I don&#x27;t really regret it but he could have given me atleast 10% equity.<p>I didn&#x27;t know that the project will ever end up doing multi million dollar business. I couldn&#x27;t see it coming.<p>But I did whatever tasks of sales&#x2F;coding&#x2F;customer service were demanded from me.<p>And the worst part? My girlfriend left me for him because she met him at a party and got impressed by his Noveu rich lifestyle and a new supercar.
评论 #18900622 未加载
评论 #18901075 未加载
busterarmover 6 years ago
I wrote some code related to a class action case supporting child victims of molestation by Catholic priests.<p>That said, the details of that ugly situation, extremely narrow scope of litigation and details of any possible settlements led me to stop working in the legal industry entirely. When we were working on that project I was simultaneously furious and in tears pretty much every day for weeks.
philpemover 6 years ago
Important to the company? A system which could automatically perform partial-stroke testing on pneumatic emergency-shutoff valve&#x2F;actuator blocks. The end goal was to allow big chemical plants to run for longer between maintenance cycles. The idea is you part-close the shutdown valve enough to prove it can move but not enough to interrupt process.<p>We were one of the first to prototype, and the only one to do it without needing a bulky valve positioner. The prototype worked on nearly every setup we could build in the lab. Then we added an automatic setup mode which nobody else had.<p>Alas, marketing got involved. &quot;We want the manual setup removing, permanently. Not just disabled.&quot;<p>And of course the first sale, the customer was doing something which screwed up automatic setup and couldn&#x27;t be worked around. Manual setup would have worked, but both marketing and management fought engineering tooth and claw to prevent us re-adding it.<p>The customer sent every single unit back. The stress burned me out (and more besides)... Not long after that, I was &quot;managed out&quot; of the business (read into that what you will).<p>On a happier note, most important to me? I help out a small-medium size volunteer-run fandom convention (think Comic Con on a smaller scale). I rebuilt their radio communications infrastructure, added call recording (for training&#x2F;liability reasons) and staff-call pagers. At the staff debrief, the chairman called it &quot;a game changer&quot; and asked if I&#x27;d come back as their Head of Operations.<p>I said yes.
tootieover 6 years ago
My first professional job was doing a little bit of work for the Human Genome Project. I&#x27;ve never done anything else nearly as worthwhile.
评论 #18901556 未加载
jtwalesonover 6 years ago
At my previous company I created a buildpack that allowed our proprietary runtime to run on Cloud Foundry (an open source Enterprise PaaS like Heroku). I built the first version in my spare time in a couple of evenings. It made our software and company compatible with the platforms of major players in this space, including SAP, IBM, GE and Siemens. The compatibility made our tech and our company much more interesting to these companies. In fact, the company was acquired by Siemens last year for $730M.<p>If I would not have built it, another engineer in the company would have done it a couple of months later while explicitly being assigned the task. I proved that it worked within a couple of days. The code powers tens of thousands of deployments today and is also the basis for running on Docker &amp; Kubernetes.
jchendyover 6 years ago
Probably this UI: <a href="https:&#x2F;&#x2F;www.facebook.com&#x2F;live&#x2F;create" rel="nofollow">https:&#x2F;&#x2F;www.facebook.com&#x2F;live&#x2F;create</a><p>I didn&#x27;t do it alone of course (probably a dozen people have worked on the UI, and hundreds on the backend), but it was my main project for around 9 months. Lots of videos that people care a lot about go through there.
评论 #18900343 未加载
azhenleyover 6 years ago
The first Flash game that I released [1].<p>I had been programming for about 6 years but had never finished anything of substance. The game took about 6 weeks of working on it between classes (and with the help of a friend with the polish and graphics). It went on to be played millions of times and made several thousand of dollars in ad revenue. Even 10 years and a PhD later, this is one of my biggest accomplishments.<p>It was one of those moments that makes me feel like <i>now</i> I can actually do this (this feeling seems to repeat every few years...).<p>[1] <a href="http:&#x2F;&#x2F;www.mindjolt.com&#x2F;stay-up.html" rel="nofollow">http:&#x2F;&#x2F;www.mindjolt.com&#x2F;stay-up.html</a>
jopxover 6 years ago
Actually nothing, which makes me really frustrated.<p>I&#x27;m just building boring CRUD systems for boring companies. I can use a lot of concepts&#x2F;buzzwords, like microservices, serverless... But at the end, just CRUD apps.<p>How can I improve? After 5 years just doing this, I don&#x27;t feel capable of doing something cool like some of the posts in this thread.
评论 #18903749 未加载
kahlonelover 6 years ago
I wrote a data collection and messaging framework for devices with a few MBs of memory, that had to stay powered-on and connected to a TCP socket server for about a year before they were going to be accessible again for maintenance etc. A bug in the code that could require a reset of the device could cost the company a big client. I couldn&#x27;t find any ready-made solution that would satisfy all of the requirements. So I wrote, tested, documented and deployed it in a month almost single handedly. Two and a half years later, that code is still serving them.
jason_slackover 6 years ago
I guess when I was 12 and had a Commodore 64 in my bedroom. I stayed up late and got up early to learn basic, put sprites on the screen, debug and otherwise get caught up in whatever I wanted to create that day.<p>I’d like to say thank you to my father for buying it and keeping the chocolate milk and powdered doughnuts flowing.
评论 #18901156 未加载
romdevover 6 years ago
I used to work in the main office at the college I was attending. For my senior project I wrote a contact manager application that would also help with transcript analysis - allowing transcript data entry, prerequisite mapping, and schedule planning. Most of the students were working adults who had attended classes at other institutions but were unaware which credits could be transferred. In college administration, an &#x27;Articulation Agreement&#x27; is a covenant between two colleges that says Calculus 101 at PSU is the same as Calculus 101 at UofO, and they should apply towards a degree at either school without much administrative effort -- that easy transcript analysis. It&#x27;s more complicated when there isn&#x27;t an agreement, or when the attended school has trimesters and the degree school has semesters, or when the names of the courses don&#x27;t match but the content does. My application (and some personal guidance) helped a few students shave a year or more off their schedule by prepping them for meetings with the department head to get transfer credits for courses they&#x27;d already taken, or to test out of subjects they already knew from work or personal experience. If you&#x27;re in college and aren&#x27;t sure about how to schedule your term, the hour you spend with a department head or guidance counselor can be worth a full term saved. Do it early and often. If there&#x27;s a class you&#x27;ll be in that looks too easy, switch out as early as possible to save your time and your instructor&#x27;s, and maybe get into that cool elective class that didn&#x27;t fit your schedule.
xellisxover 6 years ago
In order to save a friend&#x27;s answering service (small business), I wrote an answering service software package with PHP, using Comet (the precursor to websocket) using Asterisk as the PBX in 72 hours. Their previous system had been running since 1986, which utilized a 386 SCO server and some sort of external caller id &#x2F; DID identification box that integrated with it. That caller id box died and a replacement couldn&#x27;t be found, which pretty much rendered the system useless.
ecesenaover 6 years ago
Probably 2FA at Pinterest [1].<p>Actually, on this topic, I&#x27;m planning a talk on how to build 2FA (specifically how to add 2FA to an existing site&#x2F;app). If you need to implement 2FA or are interested in this topic, what would you like to learn from a talk on 2FA?<p>[1] <a href="https:&#x2F;&#x2F;medium.com&#x2F;@Pinterest_Engineering&#x2F;two-factor-authentication-on-pinterest-238aa3dc92d1" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@Pinterest_Engineering&#x2F;two-factor-authent...</a>
njpatelover 6 years ago
I was responsible for writing a lot of the Unity shell for Ubuntu with my team, taking it from Ubuntu Netbook Remix -&gt; Unity (Mutter) -&gt; Unity (Compiz).<p>During that period I feel like my team and I wrote a lot of important code, but the fact that Unity survived for so long and was used by so many people makes it stand out.<p>I&#x27;d say a close second was Avant Window Navigator (AWN - a Linux dock), because it got me enough attention to be offered a job working on Open Source full time!
评论 #18915796 未加载
nateblekerover 6 years ago
Most important piece of code I wrote controls the delivery of electrical stimulation for a nervous systems stimulation system that goes in people. Second place is a human metrology system that diagnoses eye issues in a lot of clinical settings.
cheunsteover 6 years ago
Well, this is important to me, but it isn&#x27;t exactly a scientific breakthrough or as worthwhile as what others might say, but several years ago at the utility I&#x27;m currently working for, we have this stupid method of adding users to a HMI...by manually typing in their user ID, their name and some default password into the user credential file onto the HMI (this is also a crappy HMI software, so the text document isn&#x27;t even hashed) and then emailing said password to the users.<p>Anyways, what I did was write a VBA code that<p>1) Allowed me to take the user ID of the people that needed to be added into said HMI, then get their first name and last name from outlook using an outlook api and automatically adds these users into the credential files.<p>2) Send the email to the same list of users after I update the file onto the HMI (the HMIs themselves in an air gap network).<p>Why is this important? Because it got some of my other coworkers to trust that I can find bullshit problems and solve them (this isn&#x27;t the only bullshit problem I have to do over the years), thus gaining their trust and overtime, got a promotion.
bausshfover 6 years ago
My entire full-stack web framework because it&#x27;s currently what&#x27;s used for all my commercial projects.<p>It has been the most beneficial project to me both financial but also in terms of gaining knowledge.<p>It&#x27;s the most important code I&#x27;ve ever written because while some would say you shouldn&#x27;t reinvent the wheel, by reinventing the wheel I have made my overall performance and knowledge ten times better.
评论 #18902732 未加载
kremboover 6 years ago
20+ years ago when I was 16 I spent months to learn Turbo Pascal. Those were the days of reading thick books and diving into code samples you grabbed from your near BBS. I was working on a project to predict soccer games results based on past games and help gamblers spread their risk wisely. Looking backwards only now I understand how complex and big the codebase was and not sure how I survived to tell (no coding guidelines back then, the source was huge spaghetti mass, but a working one). Anyhow, the project got traction and a software publishing house started to sell it in computer shops nation-wide. Boxed software, 1.44&quot; floppies. The good old days. It also earned me a decent money. -- Since then I&#x27;ve wrote thousands of code lines and stretched my expertise to leading development and product teams. I consider this project and those days to be my best tech-school, where I gained much more than in my BSc. Looking at the kids these days copy-pasting StackOverFlow solutions makes me think something is missing in their foundations.
git-pullover 6 years ago
I think open source contributions &#x2F; patches depending on the project can be helpful and impactful.<p>Merely giving back in <i>any</i> sense helps. Sometimes open source patches are <i>not</i> important in themselves, but taken as a whole make a big dent: A good portion (1&#x2F;3? 1&#x2F;2?) of my contributions are very trivial (typos, package updates, etc.)<p>I use a few things to track open source contributions: OpenHub (<a href="https:&#x2F;&#x2F;www.openhub.net&#x2F;accounts&#x2F;git-pull" rel="nofollow">https:&#x2F;&#x2F;www.openhub.net&#x2F;accounts&#x2F;git-pull</a>), and a new thing called sourcerer.io: <a href="https:&#x2F;&#x2F;sourcerer.io&#x2F;tony" rel="nofollow">https:&#x2F;&#x2F;sourcerer.io&#x2F;tony</a>.<p>It goes back to my first patches which were tiny and failed to conform to the project&#x27;s code standards :P I hope this can be encouragement that little wins build up.<p>There are also projects I&#x27;ve made that I personally deem important, but aren&#x27;t known or are in a niche space. For instance, unihan-etl (<a href="https:&#x2F;&#x2F;unihan-etl.git-pull.com" rel="nofollow">https:&#x2F;&#x2F;unihan-etl.git-pull.com</a>), a tool for extracting UNIHAN (<a href="https:&#x2F;&#x2F;www.unicode.org&#x2F;reports&#x2F;tr38&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.unicode.org&#x2F;reports&#x2F;tr38&#x2F;</a>). If someone is in a situation where they need an extraction of Chinese&#x2F;Japanese&#x2F;Korean unicode characters, this tool can save them a lot of time.<p>There&#x27;s more to the story: It&#x27;s also a building block of a larger project, cihai: <a href="https:&#x2F;&#x2F;cihai.git-pull.com" rel="nofollow">https:&#x2F;&#x2F;cihai.git-pull.com</a>. I am planning on making this project a spiritual successor to Christoph Burgmer&#x27;s cjklib (<a href="http:&#x2F;&#x2F;cjklib.org" rel="nofollow">http:&#x2F;&#x2F;cjklib.org</a>)
MuffinFlavoredover 6 years ago
I wrote an entire e-commerce inventory SaaS platform singlehandledly (frontend, backend, database, cache, nginx, blah blah blah) that had 100 users and about $30k&#x2F;mo revenue.<p>Then I got kicked out by the owner high and dry after I refused to take sales calls and support calls on top of my developing responsibilities. :)<p>Software is still running today. It&#x27;s probably at $50k&#x2F;mo.
评论 #18900050 未加载
评论 #18900852 未加载
评论 #18900057 未加载
评论 #18901690 未加载
评论 #18899998 未加载
RickJWagnerover 6 years ago
It&#x27;s not really coding, but I helped with troubleshooting and analysis when Obamacare first rolled out.<p>There was quite a fire-- the front-end would crash, lines were endless, etc. The government quickly formed a Tiger Team, with contributors from various companies.<p>I didn&#x27;t care for the way the legislation was formed, but I am proud of my involvement. I gave it 100%.
评论 #18900092 未加载
nailerover 6 years ago
# As a programmer<p>Some software for GAE, that may now be part of the SDK - at the time, circa 2010&#x2F;2011, GAE wasn&#x27;t being actively maintained (the employee in charge of the platform had other responsibilities and did not care for GAE).<p>The code allowed a user to define a model of the errors they expected to encounter, a retry algorithm, and a maximum amount of errors. It was used to do almost everything in the largest GAE app at the time, and one of the most profitable Google programs, and is essential for doing anything in an environment with expected transient failures.<p># Back a decade or so when I was doing ops<p>&#x27;at&#x27; jobs to reset the firewall in 10 minutes, while we were remotely configuring a firewall. If we locked ourselves out, we wanted for the at job to execute. If we configured everything successfully, we cancelled it.
Fradowover 6 years ago
The most important I can think about right now is a CLI Mac app to install apk&#x2F;ipa on devices (iOS and Android).<p>You see, my company has about 10 apps, all sort-of maintained, that we manually test on several devices for each single feature (because not having bugs is very important).<p>Previously, devs (we are only 2 devs) were disturbed all the time to build apps and install them on specific devices.<p>Because I was fed up being disturbed all the time, I automated all builds, then created a CLI app to install the nightly build on all USB-connected devices at once. Then teached the QA guy how to SSH onto the build machine and invoke the command to install.<p>It&#x27;s used daily, several times a day.
tnr23over 6 years ago
wrote an entire CRM platform for a niche which is still my business today. revenue is at ~200,000 $ per month, profit margin is &gt;60%.<p>Tech stack: MySQL, Java EE, JQuery, Bootstrap and the like. No big frameworks. All hosted on Google Cloud.
评论 #18900269 未加载
评论 #18900075 未加载
评论 #18900181 未加载
jbgreerover 6 years ago
Like others, it depends upon what you mean by important.<p>In grad school I helped another PhD student by writing control software for a device used to assess the locality and severity of brain lesions. I got a tee shirt for doing that work.
gHostsover 6 years ago
A ringbox mailbox multi-threaded implementation.<p>Whilst I&#x27;m sort of proud of the &#x27;word at a time&#x27;, always contiguous and zero copy aspects of it... the important bit is the metadata.<p>All the optimization was really to allow me to record metadata around...<p>* When was a message posted?<p>* When did it start to be handled?<p>* When was it finished being handled?<p>* What was the correlation ID? (ie. the ultimate causal source of the events chain)<p>...and then extract this data into a sqlite DB and either query that directly or to create message sequence diagrams with the mscgen tool.<p>Why is this important?<p>Because I have lost count of the really hard, gnarly real time bugs I have solved using this tool.
analog31over 6 years ago
For me, it&#x27;s been codes that have been for internal use. One ran a room full of production machines. Another has been in use for a decade, and is the main utility for manufacturing a complex apparatus that requires a lot of adjustment and testing steps.<p>So each time one of these programs goes through its mainloop, a little bit of money comes into the kitty. ;-)<p>Possibly a coincidence, but these are also the programs that I was the most disciplined about writing so that they have been in production for years with extremely small and manageable lists of known bugs.
registerover 6 years ago
I wrote an important piece of the business logic that compensate trasactions in the ATM circuit of my country.<p>I also wrote the transcoding and CMS component of a video streaming application that is used all around the world by several broadcasters. I played a decisive role in the optimization of many of the underlying processes.<p>It might not be fashionable here but all the work I did have been in C++, Java and .NET.
igetspamover 6 years ago
I currently work for a company that is focused in increasing online privacy. Everything I write now supports this effort. I&#x27;ve never felt better about a job.<p>Second to that would be the games I wrote on my TI back in high school (90s) when I should have been learning trig. That and some late night script kiddie exploits got me on the path to a career in tech.
40acresover 6 years ago
Hmm, nothing too sexy. The most important code I&#x27;ve written was a tool to automate some business logic for schematics generation, hard to quantify the exact cost savings but it saves a couple of million&#x2F;year (cost of writing off hardware built on a bad schematic) and hundreds of hours of engineer time &#x2F; year.
gbogover 6 years ago
A long bunch of tests for a python RPC I was writing. My boss did rewrite the core code against the tests, so I could merge his code without even understanding it fully. And until now the test code is still healthy and growing, and it proves the core code to be working as expected.
linc01nover 6 years ago
I worked in a advertising network company which is a major player of one city. I re-write the ad-serving algorithm to solve some of the problems. That piece of code is running 24&#x2F;7 for 5+ years. If you are in that city and browsing the web. It will run through my code path.
bor0over 6 years ago
Contributions to open source software. Knowing that the code I wrote runs on millions of machines feels great.<p>Also, another favourite project of mine is my book, written in Markdown+LaTeX and hosted with Git. Writing and editing experience was great.
GlenTheMachineover 6 years ago
The most important code I ever wrote was probably the control system for a submersible robot we developed in grad school. It was important not so much from a money standpoint, but because a whole group of graduate students got their Masters&#x27; and Doctoral degrees using it, it was sort of my bequest to humanity. And boy was it a hack...<p>I had decided to use a new single board computer on the robot that used a compact PCI bus, which at the time was a brand-new standard. It was very expensive - $25,000 - which was a whole lot of money for a university lab, but the computer had specs that we just couldn&#x27;t beat with other existing single-board computers at that time.<p>There were no available compact PCI motor controller boards, so we had to use a motor controller board that was built for a different bus standard, and then convert from the Compact PCI system to the other board using a bridge chip. The particular motor controller board we chose was based on an 8-bit motor controller IC, the LM629. This particular chip uses memory-mapped 8-bit registers, and in order to communicate with it you have to write and read the registers in a very specific order. If you do anything in the wrong order, or you try to write to a read-only register, or vice-versa, the chip generates an error.<p>I was a decent low—level C programmer at that time, and was able to crank out the code in two days. But it didn&#x27;t work. Whenever we tried to communicate with the chip, it threw an error. I went over the code with a fine-toothed comb, and I was absolutely certain it was all correct. I had no idea what was wrong. I was looking pretty bad to my advisor; I was the C stud, and I couldn&#x27;t even write this simple device driver. And worse, I had recommended that we use this particular computer system, which cost $25,000, far more expensive than any other SBC we had ever bought, and now I couldn&#x27;t make the thing work.<p>Finally, after banging my head against it for a week and making no progress, we threw up our hands and asked the motor controller board vendor if we could bring our system to their facility and get their help debugging it.<p>We arrived at the vendor and set up. Their programmer checked my code, and he couldn&#x27;t find anything wrong with it either. After two days the owner took pity on us and asked his best engineer, a digital logic expert, to help us. He carted in a $20,000 digital logic analyzer and hooked it up and had me run my code. What he discovered was that when I had issued an eight-bit read, the chip saw a 16-bit read, which it wasn&#x27;t expecting, so it threw an error, because the high-order byte was getting read from a write-only register. But the code was clearly issuing an 8-bit read. So where was the 16-bit read coming from?<p>It turned out the bridge chip had a bug. When it saw an incoming 8-bit read request on one bus, it translated it into a 16-bit read on the other, then threw away the most significant byte. We called the manufacturer, and were told &quot;that&#x27;s known, documented behavior - it&#x27;s clearly spelled out in the manual.&quot; And when we checked, sure enough, it was - it was mentioned on page 48 in the third footnote, in 8-point type.<p>The solution we eventually came up with was to cut all of the address bus lines on the motor controller board and shift them to the right by one, and then take the least significant bit line and connect it to most significant line on the address bus. That way, access requests to any odd 16-bit memory address would map into unmapped register space so the LM629 wouldn&#x27;t see them. Then I rewrote the code to only use even memory addresses. Worked like a charm. But I still feel sorry for the grad students who had that robot after I graduated. There was no way they ever figured out what I had done. Or why.
评论 #18901173 未加载
CamJNover 6 years ago
Tiny patch to OpenSSH, but it&#x27;ll get onto millions of boxes eventually.
eismccover 6 years ago
I’d have to say the headless server infra&#x2F;features for Windows server 2003. The previous dev quit saying it was impossible, but as a new engineer I didn’t know any better.
austincheneyover 6 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;getNodesByType" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;getNodesByType</a>
zwiebackover 6 years ago
Machine vision applications to inspect inkjet printheads during manufacturing. You&#x27;ve probably used a cartridge my apps inspected.
frightover 6 years ago
Adventures in Game Development is the perfect example of the risks of giving assholes your money for crowdfunded projects.<p>The guy that runs it spent years bragging about doing drugs and drinking to all hours of the night with nothing to show for it and then shits on his backers for asking about the progress of the project (none).
评论 #18900243 未加载
jzigover 6 years ago
Nothing.
评论 #18900266 未加载
评论 #18902138 未加载
xemover 6 years ago
&quot;&lt;!doctype html&gt;&quot;<p>Four years ago, I was hired to reboot the front-end development of a french search engine from a blank html page. It has millions of users now.
eqdwover 6 years ago
tl;dr: the most important code I ever wrote saved us millions of dollars by setting `disabled=&quot;disabled&quot;` on an html element<p>I don&#x27;t know if this is the correct measure for &quot;most important&quot; but it is provably and measurably the most valuable (in terms of dollars) code that I have ever written.<p>I used to work at a fintech company. This company gave out loans. One of the main reasons you might get a loan at this company instead of a bank is because the bank refused to give you a loan. So, as you might imagine, this company needed to deal with a considerable default risk, and be very, very careful in its underwriting.<p>At one point, we had a minor crisis. The default rate was considerably higher than we had projected, and this was threatening the business. Without getting into details: this was potentially an existential risk to our business.<p>Preliminary analysis of the problem revealed a few significant causes. One: our underwriting rules were complicated, and manually applied. At the time we were working on a rules engine that would offload a lot of fiddly rule checks, but this was still a few months out. In the interim, people would manually check the spreadsheet and they made mistakes.<p>I was tasked with fixing this with a stopgap. So what I did was I added about 15 lines of code to our front-end. It collected a handful of stats (that were already being exposed to the front-end) that covered ~80% of the underwriting cases, and hard-coded the current underwriting rules on them. If the stats on a given loan didn&#x27;t meet the threshold, and would therefore be rejected by our manual underwriters, my code disabled the &#x27;approve&#x27; button.<p>The entire code was a function that looked something like<p>```javascript THRESHOLD_1 = 123; THRESHOLD_2 = 123; ... &#x2F;&#x2F;etc<p>function buttonDisabled(){ if( stat1 &lt; THRESHOLD_1 || stat2 &lt; THRESHOLD_2 || ... &#x2F;&#x2F;etc) { return true; } else { false; } } ```<p>plus the react binding necessary to attach this to the approve button.<p>I got this done start to finish in about two days (most of those days spend talking to PMs trying to figure out what the values of the THRESHOLD constants should be), and it was deployed in prod by the end of day 4. It was cheap, terrible, shitty code, but that was ok! Because it was throwaway code. We had an existing project to replace this with an actual rules engine, and it was on track to get rolled out two months later. So who cares about shitty code, it&#x27;s getting replaced in two months. In the interim, speed was more important, and they got speed.<p>By my own numbers (based on estimates as I didn&#x27;t have access to real numbers), I estimate that this code saved somewhere between $500k and $2M in defaults. Whatever it was, the company agreed. Every Friday afternoon the CEO would hand out recognition awards for someone who went above and beyond, and for this code I won the award three weeks in a row.<p>tl;dr: the most important code I ever wrote saved us millions of dollars by setting `disabled=&quot;disabled&quot;` on an html element
suffover 6 years ago
I got involved in the SAME era, reading the same QB tutorials (remember Tsugumo or Gradius?). It changed the trajectory of my life forever. Called another guy from the same era after finding his github page 1 or 2 years ago. He is a PhD making ~$300k on Wall Street and I&#x27;m a senior leader, only slightly behind him, doing tech consulting. Needless to say, writing code early puts you on an advanced path. Neither of us came from privileged families, but we found a need in the market for highly skilled programming combined with great communication. If you are reading this comment, you have 100% definitely used or seen one of the systems I have helped build. QB was the beginning for many of us. No doubt JavaScript will do similar things for this generation.
评论 #18901042 未加载
ratlingover 6 years ago
Literally a logstash clone. Was written in an emergency over like 6 hours on a weekend to prevent a P1 issue.<p>I&#x27;ve done some bugfixes and modifications over the years but it just keeps on trucking and doing exactly what I need it to do.