- Denial : “I don’t need to learn $stuff”
- Anger: “This syntax sucks! “
- Bargaining: “If only I knew how to do this using $stuff, I’d be done sooner”
- Depression: “Learning this $stuff really sucks and I don’t think I’ll ever get it”
- Acceptance: “I know $stuff now so I can put that on my CV”
I’m learning SQL.
Here’s an algorithm for storing long urls as short ones. We assume that our shortened url will have a maximum of 4 “digits” and pick from an alphabet of 36 characters (26 lower-case letters +10 digits). Steps:
- pick a random number n between 0 and 36**4
- translate this number n into base-36 number m.
- the resulting url will be something like http://url.com/m, where m is at most 4 ‘digits’ long
If you’re using TeX a lot like I did, you might want to read this:
- Everyone has a favorite way to design their favorite symbol. For example, did you know that there is no “official” function for the absolute value of an element? Here’s the worst part: 50 different mathematicians will have 50 different ways to define the absolute value bars. Some will think the bars are too high, some too low, some will find the space between the bars is too small or too big, etc. And guess what? you can do every single one of these things in TeX. This is stupid. Stop it.
- You can modify every little detail of the layout of your page. You can redefine style file attributes. You can. You shouldn’t. You’re wasting your time. This is stupid. Stop it.
- TeX (the programming language) is a hack. A Turing-complete hack, but a hack nonetheless. Keep this at the back of your mind every time you use it. Think about the amount of complexity you add every time you customize table layouts, indentation, etc.