logoalt Hacker News

chbkalllast Saturday at 12:10 PM2 repliesview on HN

Would you give me a small example of the kind of small irritations you are talking about here?


Replies

Disposal8433last Saturday at 3:51 PM

Not OP but when I was way younger I had some trouble learning programming languages. Following tutorials was boring and gave limited instructions. Someone on the internet gave the same piece of advice, i.e. to do something useful in your life.

I was at the time downloading a lot of porn pictures but the internet connection was slow and unreliable. And that's how I learned the Ruby programming language with its regexes, how to parse HTML with those regexes, parsing CLI arguments, and how to download files and put them in proper folders. It was the cleanest and best script/framework I have ever written.

The moral of the story is to find something to do, and it will show you a lot more.

show 1 reply
surgical_firelast Saturday at 12:33 PM

For example - I wrote a script that automatically rsyncs a bunch of folders I care about to one external HD, and then replicates the backup to a different external HD for backup purposes.

That sort of thing that would require you to run a bunch of commands and that you have to do from time to time. Automating it to a single script is cool.

I have a friend that wrote a bot to track the prices of stuff that he wants to buy and messages him on Telegram the current price and the min/max since it started running. Another fun little project.

show 1 reply