tictac-toe
tictac-toe on Hacker News
> 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.
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.
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.
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.
Posted by
tictac-toe on Monday October 19, 2020 @10:35AM
from the defmacro.substack.com dept.
> 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.
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.