diff options
| -rw-r--r-- | _posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md | 6 | ||||
| -rw-r--r-- | _posts/2023-11-07-personal-sane-vim-defaults.md | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md b/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md index 4515466..ccee72b 100644 --- a/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md +++ b/_posts/2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md | |||
| @@ -62,7 +62,7 @@ to see if you are using what is considered the “cool” thing. If you are doin | |||
| 62 | this, you already failed in my opinion. | 62 | this, you already failed in my opinion. |
| 63 | 63 | ||
| 64 | Oh, you are not using this “insert here” algorithm? Such a pleb. Don't you know | 64 | Oh, you are not using this “insert here” algorithm? Such a pleb. Don't you know |
| 65 | about O(2) complexity? OMG, such a noob. He doesn't know. Uneducated pleb. 2017 | 65 | about O(N) complexity? OMG, such a noob. He doesn't know. Uneducated pleb. 2017 |
| 66 | called, and they want their stack back. | 66 | called, and they want their stack back. |
| 67 | 67 | ||
| 68 | Yes, there is a place for all of those things. But not everything needs to be | 68 | Yes, there is a place for all of those things. But not everything needs to be |
| @@ -87,11 +87,11 @@ Code or Vim or Emacs or even Notepad if you wish. If you are having fun, then | |||
| 87 | just do it. Don't worry about these elitist pricks. They will never be satisfied | 87 | just do it. Don't worry about these elitist pricks. They will never be satisfied |
| 88 | anyway. You will never get their approval. So why even bother. Just go for | 88 | anyway. You will never get their approval. So why even bother. Just go for |
| 89 | it. Use C, Rust, OCaml, whatever floats your boat. If it tickles you, just do | 89 | it. Use C, Rust, OCaml, whatever floats your boat. If it tickles you, just do |
| 90 | it. To hell with everybody else. And if somebody says O(n) complexity, dude? You | 90 | it. To hell with everybody else. And if somebody says O(N) complexity, dude? You |
| 91 | can say, OOOOO, fuck the fuck off. | 91 | can say, OOOOO, fuck the fuck off. |
| 92 | 92 | ||
| 93 | If this post triggered you, then you are the asshole. Probably. Then you | 93 | If this post triggered you, then you are the asshole. Probably. Then you |
| 94 | probably are that guy preaching about O(n) or this language is soo slow | 94 | probably are that guy preaching about O(N) or this language is soo slow |
| 95 | haha. Stop it. Nobody cares! Touch grass. | 95 | haha. Stop it. Nobody cares! Touch grass. |
| 96 | 96 | ||
| 97 | Anyway, back to having fun. Cheers! | 97 | Anyway, back to having fun. Cheers! |
diff --git a/_posts/2023-11-07-personal-sane-vim-defaults.md b/_posts/2023-11-07-personal-sane-vim-defaults.md index e8a5551..77ed024 100644 --- a/_posts/2023-11-07-personal-sane-vim-defaults.md +++ b/_posts/2023-11-07-personal-sane-vim-defaults.md | |||
| @@ -14,6 +14,7 @@ personal list. This is how my `.vimrc` file looks like. | |||
| 14 | " General sane defaults. | 14 | " General sane defaults. |
| 15 | syntax enable | 15 | syntax enable |
| 16 | colorscheme sorbet | 16 | colorscheme sorbet |
| 17 | nnoremap q: <nop> | ||
| 17 | set nocompatible | 18 | set nocompatible |
| 18 | set relativenumber | 19 | set relativenumber |
| 19 | set nohlsearch | 20 | set nohlsearch |
| @@ -28,12 +29,8 @@ set autoread | |||
| 28 | set wildmenu | 29 | set wildmenu |
| 29 | set encoding=utf8 | 30 | set encoding=utf8 |
| 30 | set backspace=2 | 31 | set backspace=2 |
| 31 | set tabstop=2 | ||
| 32 | set shiftwidth=2 | ||
| 33 | set expandtab | ||
| 34 | set scrolloff=4 | 32 | set scrolloff=4 |
| 35 | set spelllang=en_us | 33 | set spelllang=en_us |
| 36 | nnoremap q: <nop> | ||
| 37 | 34 | ||
| 38 | " Status Line enhancements. | 35 | " Status Line enhancements. |
| 39 | set laststatus=2 | 36 | set laststatus=2 |
| @@ -52,6 +49,11 @@ augroup commenting_blocks_of_code | |||
| 52 | augroup END | 49 | augroup END |
| 53 | noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> | 50 | noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> |
| 54 | noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> | 51 | noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> |
| 52 | |||
| 53 | " Language specific intentation. | ||
| 54 | filetype plugin indent on | ||
| 55 | autocmd Filetype make,go,c,cpp setlocal noexpandtab tabstop=4 shiftwidth=4 | ||
| 56 | autocmd Filetype html,js,css setlocal expandtab tabstop=2 shiftwidth=2 | ||
| 55 | ``` | 57 | ``` |
| 56 | 58 | ||
| 57 | I keep it pretty vanilla so this is about everything I have in the file. | 59 | I keep it pretty vanilla so this is about everything I have in the file. |
