frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

A Taxonomy of Bugs

https://ruby0x1.github.io/machinery_blog_archive/post/a-taxonomy-of-bugs/index.html
52•lissine•2mo ago

Comments

mannykannot•2mo ago
Here's a step 0 for your debugging strategy: spend a few minutes thinking about what could account for the bug. Prior to its occurrence, you are thinking about what could go wrong, but now you are thinking about what did go wrong, which is a much less open-ended question.
marginalia_nu•2mo ago
I've had large success by treating the bug as a binary search problem as soon as I identify an initial state that's correct and a terminal state that's incorrect. It seems like a lot of work, but that's underestimating just how fast binary searches are.

Depends of course on the nature of the bug whether it's a good strategy.

readthenotes1•2mo ago
I was such a bad developer that I realized I had to automate the re-running of parts of the system to find the bugs.

Of course, the code I wrote to exercise the code I wrote had bugs, but usually I wouldn't make offsetting errors.

It didn't fix all the problems I made, but it helped. And it helped to have the humility when trying to fix code to realize I wouldn't get it the first time, so should automate replication

bheadmaster•2mo ago
> I had to automate the re-running of parts of the system to find the bugs

Congratz, you've independently invented integration tests.

tough•2mo ago
I don't always test but adding a lil test after finding and fixing a bug so you don't end up there again a second time is a great practice
bheadmaster•2mo ago
Congratz, you've invented regression tests.
quantadev•2mo ago
Congrats, you've found someone who failed to invoke a buzzword that you know.

EDIT: But Acktshally `the code I wrote to exercise the code I wrote` is a description of "Unit Testing", not integration testing.

bheadmaster•2mo ago
Unit/integration tests are anything but a buzzword. And my intentions were not to belittle, but to praise.

Some actions simply make so much sense to do, that any sensible person (unaware of the concept) will start doing them given enough practice, and in process they "reinvent" a common method.

keybored•2mo ago
> And my intentions were not to belittle, but to praise.

With the stock eyeroll dismissal phrase.

quantadev•2mo ago
As far as you knew that guy was aware what Unit Testing was since well before you were born. lol. I'm sure he appreciates all your nice compliments.
bheadmaster•1mo ago
Good thing he has knights in shining armor like you to defend him from my nasty insults.
quantadev•1mo ago
Good thing you can admit what you were doing.
bheadmaster•1mo ago
Good thing you can understand sarcasm.
quantadev•1mo ago
but your sarcasm was truthful.
bheadmaster•1mo ago
but it wasn't.
quantadev•1mo ago
Well in that case...Congratz, you've invented sarcasm.
bheadmaster•1mo ago
Congratz, you've invented obnoxiousness.
quantadev•1mo ago
Not "independently reinvented" ?
readthenotes1•1mo ago
I was aware of unit testing before it had a name ... Desperation is the mother of intervention
quantadev•1mo ago
Yep, I "independently reinvent" the wheel every day I guess, because I, ya know...use wheels.
alilleybrinker•2mo ago
There's also the Common Weakness Enumeration (CWE), a long-running taxonomy of software weaknesses (meaning types of bugs).

https://cwe.mitre.org/

Animats•2mo ago
The Third-Party Bug

Is the party responsible for the bug bigger than you? If yes, it's your problem. If no, it's their problem.

marginalia_nu•2mo ago
A subcategory of the design flaw I find quite a lot is the case where the code works exactly as intended, it's just not having the desired effect because of some erroneous premise.
djmips•2mo ago
John Carmack uses a debugger

Bypassing Google's big anti-adblock update

https://0x44.xyz/blog/web-request-blocking/
648•deryilz•13h ago•552 comments

Switching to Claude Code and VSCode Inside Docker

https://timsh.org/claude-inside-docker/
99•timsh•1d ago•45 comments

Zig's New Async I/O

https://kristoff.it/blog/zig-new-async-io/
157•afirium•9h ago•112 comments

Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model

https://github.com/MoonshotAI/Kimi-K2
333•ConteMascetti71•14h ago•79 comments

MacPaint Art from the Mid-80s Still Looks Great Today

https://blog.decryption.net.au/posts/macpaint.html
869•decryption•23h ago•179 comments

Aeron: Efficient reliable UDP unicast, UDP multicast, and IPC message transport

https://github.com/aeron-io/aeron
17•todsacerdoti•12h ago•4 comments

Hacking Coroutines into C

https://wiomoc.de/misc/posts/hacking_coroutines_into_c.html
77•jmillikin•7h ago•22 comments

Chrome's hidden X-Browser-Validation header reverse engineered

https://github.com/dsekz/chrome-x-browser-validation-header
162•dsekz•2d ago•34 comments

Parse, Don't Validate (For C)

https://www.lelanthran.com/chap13/content.html
51•lelanthran•4d ago•12 comments

Experimental imperative-style music sequence generator engine

https://github.com/renoise/pattrns
13•bwidlar•3d ago•1 comments

Edward Burtynsky's monumental chronicle of the human impact on the planet

https://www.newyorker.com/culture/photo-booth/earths-poet-of-scale
38•pseudolus•5h ago•5 comments

C++: Maps on Chains

http://bannalia.blogspot.com/2025/07/maps-on-chains.html
7•signa11•2d ago•3 comments

Lost Chapter of Automate the Boring Stuff: Audio, Video, and Webcams in Python

https://inventwithpython.com/blog/lost-av-chapter.html
152•AlSweigart•15h ago•9 comments

Programming Affordances That Invite Mistakes

https://thetechenabler.substack.com/p/programming-affordance-when-a-languages
24•ingve•2d ago•7 comments

Light exposure at night predicts incidence of cardiovascular diseases

https://www.medrxiv.org/content/10.1101/2025.06.20.25329961v1
107•gnabgib•9h ago•74 comments

The fish kick may be the fastest subsurface swim stroke yet (2015)

https://nautil.us/is-this-new-swim-stroke-the-fastest-yet-235511/
213•bookofjoe•20h ago•141 comments

ISRO successfully conducts hot tests of Gaganyaan propulsion system

https://www.thehindu.com/sci-tech/science/isro-successfully-conducts-hot-tests-of-gaganyaan-propulsion-system/article69790839.ece
3•Bluestein•7m ago•0 comments

Two-step system makes plastic from carbon dioxide, water and electricity

https://phys.org/news/2025-06-plastic-carbon-dioxide-electricity.html
59•PaulHoule•3d ago•15 comments

A better Ghidra MCP server – GhidrAssistMCP

https://github.com/jtang613/GhidrAssistMCP
80•jtang613•14h ago•15 comments

Show HN: I made a JSFiddle-style playground to test and share prompts fast

https://langfa.st/
31•eugenegusarov•14h ago•3 comments

Second Variety, by Philip K. Dick (1953)

https://www.gutenberg.org/files/32032/32032-h/32032-h.htm
62•djoldman•3d ago•19 comments

Bayeux Tapestry Will Return to the U.K. In 950 Years

https://news.artnet.com/art-world/bayeux-tapestry-british-museum-loan-2665313
8•andsoitis•1d ago•4 comments

HNSW as abstract data structure: video intro to Redis vector sets

https://www.youtube.com/watch?v=kVApsFUeuEA
26•antirez•2d ago•0 comments

Malware found in official gravityforms plugin indicating supply chain breach

https://patchstack.com/articles/critical-malware-found-in-gravityforms-official-plugin-site/
214•taubek•1d ago•43 comments

New Date("wtf") – How well do you know JavaScript's Date class?

https://jsdate.wtf
322•OuterVale•1d ago•189 comments

Working through 'Writing A C Compiler'

https://jollygoodsw.wordpress.com/2025/03/13/working-through-writing-a-c-compiler/
143•AlexeyBrin•20h ago•33 comments

Supreme Court's ruling practically wipes out free speech for sex writing online

https://ellsberg.substack.com/p/free-speech
571•macawfish•14h ago•754 comments

Exposing a web service with Cloudflare Tunnel (2022)

https://erisa.dev/exposing-a-web-service-with-cloudflare-tunnel/
96•sturza•3d ago•40 comments

Vibe-Coding a PCB – surprisingly good

https://atomic14.substack.com/p/vibe-coding-a-pcb-surprisingly-good
148•iamflimflam1•16h ago•60 comments

Proposed NOAA Budget Kills Program Designed to Prevent Satellite Collisions

https://skyandtelescope.org/astronomy-news/proposed-noaa-budget-kills-program-to-prevent-satellite-collisions/
336•bikenaga•15h ago•197 comments