frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Case study of over-engineered C++ code

https://blog.kowalczyk.info/a-aiow/case-study-of-over-engineered-c-code.html
1•jandeboevrie•3h ago

Comments

motorest•2h ago
I don't think this blog post was researched well. It reads like a parody, in fact. It starts with a project, throws a bunch of assertions and ill founded opinions, proceeds to present a series of pessimizations, and somehow concludes the pessimizations are better?

The most charitable interpretation is that the blog post shows one of the main problems in software engineering circles: complaining about stuff they don't know and/or understand.

Take for example the leading accusation that code is overengineered by using static member functions.

> This code is over-engineered in the small. Notice that file type or mode are static per file format. They most likely do not depend on the data. We can easily eliminate virtual calls by storing this info as class members.

I don't think the blogger thought this approach all the way through, as it's not free from tradeoffs. In fact, the blogger explained some traits but somehow failed to arrive at the obvious conclusion. For example, file type and file mode are a type trait, not a instance trait. By replacing static files with a combination of getters and supporting member variables, it introduces two member variables. The blogger introduces these member variables at the base class level, which means each and every instance of every derived class has to store data used by two read-only getters that specify a type trait. This is data that needs to be saved in memory, and copied and moved around. Virtual function calls are somehow a problem and represent overengineering, but needlessly copying data around isn't? Baffling.

But there's more. Virtual function calls are somehow a problem, but as a solution the blogger asserts that replacing all member functions with a single function that copies around a large struct instance bundling all attributes... That's somehow good? The blogger also throws away any semblance of encapsulation to return instead a POCO. Why? At this point I really don't know.

The blog post reads like an exercise in absurdity. I wonder if the blogger writes software for a living.

Taichi: High-performance parallel programming in Python

https://www.taichi-lang.org/
1•fanf2•2m ago•0 comments

Heredocs in Dockerfiles (2021)

https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
1•tosh•3m ago•0 comments

Am I Online?

https://antonz.org/is-online/
1•begoon•4m ago•0 comments

C4 Bomb: Blowing Up Chrome's AppBound Cookie Encryption

https://www.cyberark.com/resources/threat-research-blog/c4-bomb-blowing-up-chromes-appbound-cookie-encryption
2•Metalnem•5m ago•0 comments

Kronotop v0.12.0 – Scalable, transactional doc DB with query predicates

https://github.com/kronotop/kronotop/releases/tag/v0.12.0
1•mastabadtomm•8m ago•0 comments

WebAssembly: Yes, but for What?

https://queue.acm.org/detail.cfm?id=3746171
1•todsacerdoti•9m ago•0 comments

Thunderbird 140 ESR is out now with new features

https://www.neowin.net/news/thunderbird-140-esr-is-out-now-with-new-features-bug-fixes-and-critical-security-patches/
2•Bluestein•16m ago•0 comments

Zoopharmacognosy

https://en.wikipedia.org/wiki/Zoopharmacognosy
1•elsewhen•18m ago•0 comments

TIL you can make "GIFs" with SVGs for GitHub README.md files

https://koaning.io/posts/svg-gifs/
2•cantdutchthis•21m ago•0 comments

Lessons I Learned from My Failed SaaS Products

https://andresmax.substack.com/p/lessons-i-learned-from-my-failed
1•sjdonado•26m ago•0 comments

How to become passionate about delivering shareholder value

https://www.seangoedecke.com/shareholder-value/
2•rtukpe•30m ago•1 comments

You don't have to use Nix to manage your dotfiles

https://jade.fyi/blog/use-nix-less/
1•signa11•32m ago•0 comments

Visionaries Without Vision

https://www.hamiltonnolan.com/p/visionaries-without-vision
1•te_chris•35m ago•0 comments

One Day in Kentucky and What Makes America Great

https://www.forkingpaths.co/p/one-day-in-kentucky-and-what-actually-33b
1•rbanffy•36m ago•0 comments

Duke Nukem Is Back, but in a Silly and Sad Way

https://kotaku.com/duke-nukem-world-of-tanks-battle-pass-lara-croft-sad-1851785719
4•Bluestein•37m ago•0 comments

U.S. measles cases reach 33-year high as outbreaks spread

https://www.washingtonpost.com/health/2025/07/07/measles-cases-hit-record/
2•thisisit•40m ago•0 comments

Mudita Kompakt minimalist phone for tweens (dumbphone plus) [YouTube] [video]

https://www.youtube.com/watch?v=UmVUIGr-bus
1•kefabean•41m ago•0 comments

'There's a knife at my throat'. A tax code time bomb hammered small businesses

https://qz.com/tax-code-section-174-tech-layoffs-small-businesses
2•mjwhansen•42m ago•0 comments

Female-led aerospace sewing firm is expanding

https://www.bbc.com/news/articles/cpd19952nx9o
5•Bluestein•42m ago•0 comments

Gabe Newell: Linux is the future of gaming (2013)

https://arstechnica.com/gaming/2013/09/gabe-newell-linux-is-the-future-of-gaming-new-hardware-coming-soon/
2•XzetaU8•44m ago•1 comments

How Proxies Improve SEO Monitoring and Analysis?

https://medium.com/@business_46193/how-proxies-improve-seo-monitoring-and-analysis-01d50d2679cf
1•RainbowJ•45m ago•0 comments

Architect's Guide to Micro-Front Ends: Module Federation with React and Angular

https://developersvoice.com/blog/frontend/micro-frontends-with-react-and-angular/
2•smangla•46m ago•1 comments

Bicycle Helmet Safety Institute

https://helmets.org/
1•archagon•46m ago•0 comments

Is it possible to play doom on an oscilloscope using only lissajous figures?

https://forums.sufficientvelocity.com/threads/is-it-possible-to-play-doom-on-an-analog-oscilloscope-using-only-lissajous-figures.126232/
2•stared•47m ago•0 comments

Race Through Wikipedia Game

https://wikirun-game.toolforge.org/
2•smig0•48m ago•1 comments

Preply improved INP and save 200K$/Y on a Next.js application (without RSCs)

https://medium.com/preply-engineering/how-preply-improved-inp-on-a-next-js-application-without-react-server-components-and-app-router-491713149875
3•NoriSte•48m ago•1 comments

Packaging a Haskell Library as a Swift Binary XCFramework

https://alt-romes.github.io/posts/2025-07-05-packaging-a-haskell-library-as-a-swift-binary-xcframework.html
3•romes•49m ago•0 comments

I accidentally deleted Levels.fyi's entire back end server stack last week

https://old.reddit.com/r/cscareerquestions/comments/1lu2ygi/i_accidentally_deleted_levelsfyis_entire_backend/
3•unsnap_biceps•50m ago•4 comments

Show HN: Do pushups to use your phone

https://timm.so/features/push-up-to-unlock
1•itsharveenatwal•51m ago•0 comments

Counting Jigsaw Puzzle Pieces

https://www.kleemans.ch/counting-jigsaw-puzzle-pieces
1•akleemans•52m ago•0 comments