3 ms·
I'll talk about side projects. At any point in time I usually have three side projects, two of which I am really making progress on and the other is aspiratio
by PaulHoule 2y ago
I'll talk about side projects.
At any point in time I usually have three side projects, two of which I am really making progress on and the other is aspirational. I think that's fine.
For instance last month I wrote a Python chess program because it was something totally new to me but not that hard and there is a big literature on the subject (see https://www.chessprogramming.org/Main_Page https://www.chessprogramming.org/Main_Page) It is a good match for my tester and I want to take it to the chess club so I need to make it respect time control so I've been rewriting it in Java where interrupting threads is like falling off a log.
I code a lot of Python and Java and was able to code up the Java engine quickly because I really understood alpha-beta at that point and had a good set of test cases. If I get to the point where the Java engine is really refined it would be a good project to code up a faster one in Rust or Assembly or something, but it would be a disaster to try writing your first chess engine in a difficult and new language.
I have another ongoing project that involves making interactive cards like https://bsky.app/profile/up-8.bsky.social/post/3lbqfh7pesc2x https://bsky.app/profile/up-8.bsky.social/post/3lbqfh7pesc2x
Some key ideas are:
Kanban: only have a limited number of projects in progress so your really finish them https://en.wikipedia.org/wiki/Kanban https://en.wikipedia.org/wiki/Kanban
Also choose projects that involve a certain budget of learning, risk and innovation. It is one thing to do something new with familiar tools and to do something old with new tools. Doing both at the same time is really dangerous. Think of how an athlete trains progressively.
- keyboard_user_2 2y agoThank you for the respones. Do you find that your side projects are mainly guided by general interest mixed with utility? Taking an example from myself, I find Sudoku pretty interesting. By interesting I mean that I find them fun to do and I am pretty sure that generating them is an interesting challenge that _seems_ like I could accomplish it, in some form. Now at this stage, I'll end up doing some preliminary research on Sudoku solving and generation programmatically. I'll realize this is a by and large solved problem and someone has already written a program that will do anything I would do in every programming language under the sun. I start to wonder - Is this worth my time to do? It's that question that starts to cast doubt. Also partially if there is so much literature on the topic I wonder if I am just "copying" or if I really am doing something valuable/learning. Your comment on learning budget is insightful and appreaciated, I can already think of examples that I can apply that to, so thank you.
- PaulHoule 2y agoI think it is. So far as solvers you can make one pretty simply by trying combinations exhaustively. The trick is that you have to start with the ones that have a low number of possibilities (ideally just one) I think you could also hack a solver into being a generator. See also https://en.wikipedia.org/wiki/Satisfiability_modulo_theories https://en.wikipedia.org/wiki/Satisfiability_modulo_theories an SMT solver is a generalized solver and it is designed to make this kind of thing easy. It is a super-valuable skill to be able to look something up in the literature and implement so you can learn from other people's experience. If somebody studied computer science in school that would be the most valuable skill they could get, I think. The last problem in the Python course for Hackerrank for instance involves a string search problem that has to be completed with impossible speed. The solution I know is to use https://en.wikipedia.org/wiki/Suffix_tree https://en.wikipedia.org/wiki/Suffix_tree which looks like a magic trick. There are several things you need to pay attention to to get it to run in O(N), if you knew it was possible you might figure it out after a lot of work but if you look in the literature you'll find exactly what those are. In the case of chess I didn't really understand the importance of different things and how they fit together until I tried it. Book learning + practical experience = usable knowledge.