HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jhck

no profile record

comments

jhck
·5 maanden geleden·discuss
There is RustRover from JetBrains.
jhck
·2 jaar geleden·discuss
Congrats on launching the early access! I'm familiar with data-oriented programming from Clojure and F#, and I'm interested in seeing how you approach it in Java, so I just picked up a copy (ebook). Wish you all the best on completing the book!
jhck
·3 jaar geleden·discuss
Worth mentioning that there's a companion book to this website: https://cses.fi/book/book.pdf

The problems are indeed of very high quality. But it can be a difficult place to start. For example, even the very first problem has an overflow gotcha built into it. Also, Kadane's Algorithm appears as an early problem even though several mathematicians and computer scientists failed to discover it: https://en.wikipedia.org/wiki/Maximum_subarray_problem#Histo...
jhck
·3 jaar geleden·discuss
I think it's a fine place to start for the following reasons:

* It has a large selection of problems with many good starter problems.

* Once you've solved a problem, you can see how others have solved it (wish more sites had this feature).

* You don't have to write I/O code, so you can just focus on the problem.
jhck
·3 jaar geleden·discuss
I share that sentiment. I've been practicing Competitive Programming off-and-on for some years now. I still struggle a lot with it. But sometimes I manage to come up with a nice solution, and that makes it all worth it to me.

When I make no progress at all, I take comfort in an anecdote I once read about the statistician Jimmie Savage [1]:

"Jimmie had what he called 'a long-standing neurosis about Pólya-Szegö' (the most famous and long-lived problem book in analysis). Even when he was working on his first (and major) book in Paris, he was spending evenings on that neurosis. 'Pólya-Szegö humiliates me', he wrote. 'I never really know what's going on, but I can now work quite a few of the problems and seem to learn thereby some things of general interest.'" [2]

[1] https://en.wikipedia.org/wiki/Leonard_Jimmie_Savage

[2] Quote from Paul Halmos's Automathography
jhck
·4 jaar geleden·discuss
You're right that the searching and sorting methods discussed are elementary, but note that the article is about how to prove the correctness of the methods (validity and termination); so it's not just the usual fare about binary search and insertion sort - the article's treatment of those methods actually builds on the transition system theory developed at the beginning. That said, this note is indeed used for CS 101 at Aarhus University - more specifically, it's used in the "Algorithms and Data Structures" course that first year CS students go through.
jhck
·5 jaar geleden·discuss
Thanks a lot, I'll give it a watch!

Also, thanks dunham for the sixten suggestion!
jhck
·5 jaar geleden·discuss
Those are some very nice insights, thanks for sharing them! Can you recommend a good resource on writing a parser by hand that doesn't bail on the first error? Or would you instead suggest studying the source code for e.g. the rust-analyzer parser?
jhck
·5 jaar geleden·discuss
Maybe it's this one? https://ericlippert.com/2020/03/27/new-grad-vs-senior-dev/