TheMonarchist

Joined 5 years ago

Karma
64
Submissions
125
Member since
Jul 23
Someone's interests should be in line with those of the country.
View on Hacker News

Recent submissions

Comment · 4 years ago
This has been my primary research strategy for the past decade. It's digging gems from piles of rubbish, but when you find them you know that they are genuine.
Comment · 4 years ago
> I'm not aware of a way to construct an std::vector without throwing an exception.

You use an allocator with enough pool for whatever you need to do and avoid out of bounds access.

Comment · 4 years ago
> Calling Thing::default() clearly communicates that your just getting baseline values and not a lot of magical other initialization stuff going on— with a Thing::Thing() in C++, you're really at the mercy of whatever the project conventions are for how "fat" the constructor is going to be.

In C++ the constructor without arguments is called default constructor. Of course the expectations depend on conventions, but usually it's something from uninitialized garbage to an empty state.

Comment · 4 years ago
Comment · 4 years ago
Comment · 4 years ago
I wish people were content at thinking that they know better. Right now they try to coerce others to act like they do in many parts of the world.
Comment · 4 years ago
To me it seems like a naturally arising question, but these days people aren't always rational so IDK.
Comment · 4 years ago
I wish I could say just "no" but nowadays you can't be sure where used laptops have been anyway. If you can't buy a new laptop, you could as well just buy one that has been in China.
Comment · 4 years ago
Experience-based guidelines for adopting C++11/14 at scale if you haven't already. (The experience requirement ruled out C++17 and C++20.)
Comment · 4 years ago
Comment · 4 years ago
Java was designed to support 80s style OOP. While many mainstream languages do the same, it isn't particularly modern. I haven't followed Java's evolution in the recent years but as I recall it is the last language to adopt anything new.
Comment · 4 years ago
The interesting languages are those that don't need killer apps to succeed.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton