day 302 — code 365
Tue 11 Oct 2016
Terminal
Another nice shortcut:
!!
that will execute that last command, and if we follow it with a tab:
!! <tab>
we can see what the last command was, and edit it!
Code
I’ve decided that I need to set some more goals for the months/year ahead, and one of them is to learn another programming language — at least one.
I think one of them will be C++ because I get the impression that it is a very fast language (Facebook rewrote their chat application in C++), and because I’ve heard / read a lot of references to C, C#, and C++ in the time that I’ve been learning programming.
A funny thing I read from a tutorial on C++ was:
As you can imagine, programming a computer directly in machine language using only ones and zeros is very tedious and error prone.
Atom
I ran into a problem today when Atom started throwing errors about an ESLint configuration — lots of red notifications were being thrown, with every save / type action.
I did a quick Google search, and people had noted that it was due some problems with Airbnb or some such (I didn’t really understand most of the issues / solutions posted). I decided to switch to VS Code. This went well, but I realised that there were some things that I really like about Atom:
- easy multi-panel editing
- more keybindings / shortcuts (duplicate lines is Cmd + D, instead of Shift + Option + Arrow)
- the particular theme I was using in Atom showed highlighted words clearer than the theme I was using in Code
- etc etc
I went back to Googling, and managed to find a solution — uninstall ESLint globally. I found where ESLint was on my computer:
where eslint
and then:
rm eslint
and then… all fixed!