July 10, 2013

The Elements of Style

§ english     # book English

“No book in shorter space, with fewer words, will help any writer more than this persistent little volume.” — The Boston Globe

A friend recommended a book to read, “The Elements of Style” by W. Strunk. It resonated with me strongly, here are a couple of quotes:

Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts. This requires not that the writer make all sentences short, or avoid all detail and treat subjects only in outline, but that every word tell.


  • “Do not join independent clauses with a comma.” (Rule 5.)
  • “Do not break sentences in two.” (Rule 6.) “Use the active voice.” (Rule 14.)
  • “Use definite, specific, concrete language.” (Rule 16.) “Omit needless words.”
  • (Rule 17.) “Avoid a succession of loose sentences.” (Rule 18.)

The book advocates and illustrates how to write forcibly, clearly, and succinctly; something I value and aspire to incredibly in all sorts of communication, but also in thinking. The book’s volume, 85 smaller-than-A5 pages, reinforces the message and makes it an ideal manual to keep at hand.

Link to the on-line version of the book: http://www.keck.ucsf.edu/~craig/The_Elements_of_Style.html

There is a whole Wikipedia article about it with some background history bits:


July 21, 2012

vim syntax highlighting for cfengine3

§ tech     # vi vim cfengine highlighting syntax sa

A major part of my work these days is connected with cfengine3 and writing promises. I’m kind of a vim-guy, so clearly I’m using it when writing cfengine promises and when you write a lot of code, you’d definitely want to make your development environment comfy and snug. Part of being comfy and sung in my understanding is syntax highlighting, which tremendously simplifies reading the code and makes you spot typos and other sorts of mistakes right away.

There’s an initial version of syntax highlighting for cfeninge, written by Neil Watson available on github. However, I wanted more sophisticated highlighting functionality, so I took Neil’s work and spent couple of weekends extending it. Here are some screenshots with results of that extension:

At the moment, the module highlights correctly cfengine-stdlib.cf and all cf files in examples/ directory of cfengine with exception of knowledge-related promises. There’s still a lot of work to do – a bit of refactoring and then, perhaps, a rudimental syntax checker – but it seems to me already usable, so I decided to release it’s “first” version.

The syntax highlighting module is available at https://github.com/ivanpesin/vim_cf3/tree/master/syntax. To activate it, you’ll need to save cf3.vim in ~/.vim/ directory and add following lines to your ~/.vimrc:

au BufRead,BufNewFile *.cf set ft=cf3
au! Syntax cf3 source $HOME/.vim/cf3.vim

April 19, 2012

Завершальна презентація циклу лекцій у Львівський Політехніці

§ talks     # techtalks2012 nulp

Завершальна презентація циклу лекцій у Львівський Політехніці, що ми показали 18 квітня 2012 року.

Повнорозмірна версія презентації.


April 19, 2012

Презентація з лекції “SQL. Основи Темної Магії. Не SQL.”

§ talks     # techtalks2012 nulp

Привіт!

Презентація з лекції “SQL. Основи Темної Магії. Не SQL.”, яку читала Леся Гой у Львівський Політехніці в середу, 4 квітня.


April 19, 2012

Презентація з лекції “Чистий код”

§ talks     # techtalks2012 nulp

Презентація з лекції “Чистий код”, яку читала Іра Заяць у Львівський Політехніці 18 квітня.

Повнорозмірна версія презентації.


Navigation

§ Categories

english fun general howto links poetry quotes talks tech

# Tags

air airline aldrich alphabet ansible apple ascii asciiart autossh awk bash bedford big-o bigdata bleep book bootstrap bugs burns cfengine chance cheatsheet cli clouds coe collectd3 colors colours conf console conway corporate coursera cpuset crc32 dependencies devops dilbert dns docker doctors dou education ejf emoji english europe excellence expect experience figlet firmware fraser fry fun ganalytics glissade gnuplot golang google gphotos graphdb grep highlighting histograms ifconfig ios iphone israel iterm k8s keyboard kids knockd latency lavabit less lgbt life links lisa load-testing loc locale logs lviv lxc macos maidan management marshak math media meetup mlodinov model monitoring mosh mysql nagios netcat nulp numbers oom osx outlook palette paper passenger pax peter phoenix-project photos pidtree poetry politics profit progressbar punctuation putty quality quotes random recording redhat refresher regex religion review rpm rpmdb ruby russian sa scale schelling security segregation shell sher shortcuts signals sleep snowden solaris spinner ssl sunlight surge syntax systemd talks targets techtalks2012 ted terminal thinking time tor tracking travel troubleshooting twain ukraine ukrainian vi videos vim war wolfram writing yac

— `If you knew Time as well as I do,' said the Hatter, `you wouldn't talk about wasting IT. It's HIM.'
$ Last updated: Feb 7, 2021 at 13:38 (EET) $