HackerTrans
TopNewTrendsCommentsPastAskShowJobs

TheMonarchist

no profile record

Submissions

Embracing Modern C++ Safely (book)

informit.com
1 points·by TheMonarchist·4년 전·1 comments

Why Bloomberg engineers wrote Embracing Modern C++ Safely

bloomberg.com
3 points·by TheMonarchist·4년 전·0 comments

[untitled]

2 points·by TheMonarchist·4년 전·0 comments

[untitled]

6 points·by TheMonarchist·4년 전·0 comments

What Americans Lost When We Abandoned the Secret Ballot

realclearpolitics.com
8 points·by TheMonarchist·4년 전·1 comments

What Americans lost when we abandoned the secret ballot

galioninquirer.com
23 points·by TheMonarchist·4년 전·54 comments

Direction for ISO C++ [pdf]

open-std.org
15 points·by TheMonarchist·4년 전·0 comments

Moonlight vs. Streetlights: Exploring the Differences

methowvalleynews.com
2 points·by TheMonarchist·4년 전·1 comments

Language statistics from open source projects

openhub.net
2 points·by TheMonarchist·5년 전·1 comments

C++ most popular programming language in open source

openhub.net
10 points·by TheMonarchist·5년 전·3 comments

comments

TheMonarchist
·4년 전·discuss
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.
TheMonarchist
·4년 전·discuss
TheMonarchist
·4년 전·discuss
> 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.
TheMonarchist
·4년 전·discuss
> 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.
TheMonarchist
·4년 전·discuss
> Like maybe checked exceptions in C++ would work

https://en.cppreference.com/w/cpp/language/except_spec
TheMonarchist
·4년 전·discuss
https://en.cppreference.com/w/cpp/io/basic_ios/exceptions
TheMonarchist
·4년 전·discuss
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.
TheMonarchist
·4년 전·discuss
To me it seems like a naturally arising question, but these days people aren't always rational so IDK.
TheMonarchist
·4년 전·discuss
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.
TheMonarchist
·4년 전·discuss
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.)
TheMonarchist
·4년 전·discuss
> Lambdas, Streams… Java is far from "80s style OOP" today.

Streams are a library feature. At a cursory look Boost seems to have had something similar since 2003: range adaptors[0].

Moreover lambdas have existed since 70s. They are modern only in the sense that Java got them in 2016 or so.

> It steals the best from the more avant-garde languages and builds it in coherently. That's no small task, so it takes few years.

That's a nice way to say that it gets new features only when they are undeniably useful.

> Therefore I wouldn't call Java "cutting-edge", but "modern" easily.

If Java is modern, C++ is cutting edge. It got the syntactic sugar for lambdas in 2011 - five years before Java.

However I may have put too much weight on "modern" in the question title. The demand for Java coders is going to be higher than the supply not unlike COBOL. If you can live with its limitations, you can make a living maintaining Java codebases for decades to come.

[0]: https://www.boost.org/doc/libs/1_78_0/libs/range/doc/html/ra... (Nowadays you would use Eric Niebler's Ranges-v3 when C++20 Ranges aren't available.)
TheMonarchist
·4년 전·discuss
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.
TheMonarchist
·4년 전·discuss
The interesting languages are those that don't need killer apps to succeed.
TheMonarchist
·4년 전·discuss
Represent it as a bitmap - people are good at seeing patterns.
TheMonarchist
·4년 전·discuss
> there are places on the internet that do the bare minimum of moderation and only remove illegal content. Unfortunately, only the worst members of society seem to frequent these types of forums

Could you link to worst examples? I think that finding these with search engines might be difficult.
TheMonarchist
·4년 전·discuss
I tried to add "self-proclaimed" to it but updating seems to fail.

Update: resumbission with new title seems to be the way to go. Link: https://news.ycombinator.com/item?id=30252507
TheMonarchist
·4년 전·discuss
I bumped into this recently. What do you think?
TheMonarchist
·4년 전·discuss
The dynamics of the KJV were different. N competing Versions had caused divisions among the people, so the king ordered the making of one universal standard. The translation committee was aware of the goal and tried to avoid bias. Curiously it didn't result in N+1 competing Versions, but KJV was almost universally approved and many older Versions were retired. Readers have been content for over four centuries now.

In the case of NWT I think the bias matters because JWs deviate fatally from Christian orthodoxy.
TheMonarchist
·4년 전·discuss
It is waiting its turn on my table btw.
TheMonarchist
·4년 전·discuss
I have read it cover to cover multiple times and plan to continue reading for the rest of my life.