Better HN
topnewbestaskshowjobs
Log inSign up

tictac-toe

21 karma · joined Oct 12, 2020 (6y ago) · 8 submissions

Submissions

comment 5y ago · link · parent

> It feels like a mixture of the good parts of Scala, Kotlin, and Rust.

Indeed, I think at the moment it's hands down the best language available for general application programming. The problem is the lack of libraries on non-apple platforms.

comment 5y ago · link · parent

You can use a dynamically sized thread pool. E.g. remove a thread with a certain probability once it's idle for more than X seconds.

comment 5y ago · link · parent

All data is relational. If you think some data model is not relational then you haven't thought about the problem space enough :p

The only valid reasons to choose non-relational databases are scalability and performance.

comment 5y ago · link · parent

You could go into freelancing. For normal developer gigs in Germany you'll usually get 70-80€/hour. Contracts are often for 6 months and will get extended in 6 months steps. Depending on how much you work you can make 150k+. Still not comparable to SV salaries, but better than being a permanent employee in Germany.

5.

An open letter to my friends with fuck you money(defmacro.substack.com ↗)

29 points · by tictac-toe · 6y ago · 9 comments

comment 6y ago · link · parent

https://defmacro.substack.com/p/how-to-interview-engineers

comment 6y ago · link · parent

> Then, give them a problem. The one I gave for years is to write a program that plays every possible tic-tac-toe game, and then prints the number of valid games.

There must be people he interviewed, they should be able to answer your question.

comment 6y ago · link · parent

Ok, took me 20 minutes, and I forgot to count the draws–I only counted the games when there is a winner.

But I think his math doesn't work out. The solution is only about ~100 lines. If typing speed was the bottleneck, it would only take 2 or 3 minutes from start to finish.

> The most talented candidates will think about it for a few seconds, then write the program as fast as they can type (and they'll type fast). You can almost sense their frustration because they think way faster than the keyboard allows them to interface with the computer. Typing speed is their bottleneck. (...) The whole process will take about 10 minutes from start to finish.