...the code may be doggone ugly. One project I worked on actually had a data type called a FuckedString.
(c) https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
(c) https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
Joel on Software
Things You Should Never Do, Part I
Netscape 6.0 is finally going into its first public beta. There never was a version 5.0. The last major release, version 4.0, was released almost three years ago. Three years is an awfully long tim…
In some measure we become what we remember, so we must be careful what we remember
(с) http://augmentingcognition.com/ltm.html
(с) http://augmentingcognition.com/ltm.html
One common pattern is that people think they're getting stuck on esoteric, complex issues. But when you dig down it turns out they're having a hard time with basic notation and terminology. It's difficult to understand quantum mechanics when you're unclear about every third word or piece of notation! Every sentence is a struggle.
It's like they're trying to compose a beautiful sonnet in French, but only know 200 words of French. They're frustrated, and think the trouble is the difficulty of finding a good theme, striking sentiments and images, and so on. But really the issue is that they have only 200 words with which to compose.
My somewhat pious belief was that if people focused more on remembering the basics, and worried less about the “difficult” high-level issues, they'd find the high-level issues took care of themselves.
But while I held this as a strong conviction about other people, I never realized it also applied to me.
(с) http://augmentingcognition.com/ltm.html
It's like they're trying to compose a beautiful sonnet in French, but only know 200 words of French. They're frustrated, and think the trouble is the difficulty of finding a good theme, striking sentiments and images, and so on. But really the issue is that they have only 200 words with which to compose.
My somewhat pious belief was that if people focused more on remembering the basics, and worried less about the “difficult” high-level issues, they'd find the high-level issues took care of themselves.
But while I held this as a strong conviction about other people, I never realized it also applied to me.
(с) http://augmentingcognition.com/ltm.html
Haskell is full of these little decisions where it just won't let you do something because it's not "correct" code, and they kind of don't care if that makes coding in it a fight against the compiler.
Rust took that philosophy and applied it pointers.
(c) YC comments on https://nibblestew.blogspot.com/2020/03/its-not-what-programming-languages-do.html
Rust took that philosophy and applied it pointers.
(c) YC comments on https://nibblestew.blogspot.com/2020/03/its-not-what-programming-languages-do.html
Blogspot
It's not what programming languages do, it's what they shepherd you to
How many of you have listened, read or taken part in a discussion about programming languages that goes like the following: Person A: "Pro...
Boilerplate is not the problem. Magic is the problem.
(c) https://news.ycombinator.com/item?id=22995928 (A Critique of React Hooks)
(c) https://news.ycombinator.com/item?id=22995928 (A Critique of React Hooks)
Мне страшно. Мне хочется забиться в угол и плакать. Я не могу быть уверенным как минимум в половине строк, что я пишу. У меня есть чувство, что я строю фекалодендритные конструкции, а убеждение хотя бы самого себя в том, что написанное имеет смысл, занимает неоправданно много времени. Что бы я ни делал, в моём коде будут UB. Я ни на что не могу повлиять. Психологи говорят, что выученная беспомощность тут где-то рядом, так что написание кода на плюсах для психики не очень полезно.
(с) https://habr.com/ru/post/497114/
(с) https://habr.com/ru/post/497114/
Дуглас Крокфорд изобрёл JSON. Некомпетентный болван похоже не знал, что у нас уже есть XML. Программисты задолго до него изобрели способ обмена данными, кем он там себя возомнил вообще?
(с) https://habr.com/en/post/498754/
(с) https://habr.com/en/post/498754/
Хабр
Хорошо, что создатель вашего любимого инструмента не слушал ослов, когда изобретал велосипед
Прошлым летом мы с пацанами рассказали про свою либу, которую наш заказчик не принял и выкинул на помойку. Мы бомбили, потому что верили в свое решение, и расс...
For the uninitiated, Cascading Style Sheets are a cryptic language developed by the Freemasons to obscure the visual nature of reality and encourage people to depict things using ASCII art.
(c) https://scholar.harvard.edu/files/mickens/files/towashitallaway.pdf
(c) https://scholar.harvard.edu/files/mickens/files/towashitallaway.pdf
It’s just that Boolean thinking has infected the software world to such an extent that I feel that I have to fight back. Just the idea of comparison to “null” to obtain a Boolean is absurd, even if you think you need a “null” pointer (which you don’t, in a properly designed language).
(c) comments on https://existentialtype.wordpress.com/2011/03/15/boolean-blindness/
(c) comments on https://existentialtype.wordpress.com/2011/03/15/boolean-blindness/
Existential Type
Boolean Blindness
I hate Booleans! But isn’t everything “just bits”? Aren’t computers built from gates? And aren’t gates just the logical connectives? How can a Computer Scientist p…
…we recommend staying away from shell noscripts as much as possible.
(c) https://docs.gitlab.com/ee/development/shell_noscripting_guide/
(c) https://docs.gitlab.com/ee/development/shell_noscripting_guide/
Gitlab
Shell noscripting standards and style guidelines | GitLab
GitLab product documentation.
Perhaps one of the worst misfeatures of C is the ease with which responsibility for problems can be shifted to the person who wrote the code. “Oh, you segfaulted? I guess you forgot to check for
Clearly, computers can’t be expected to do everything for us. But they can be expected to do quite a bit. Programming languages are built for humans, and they ought to eliminate the sorts of rote work humans are bad at whenever possible. A programmer is already busy thinking about the actual problem they want to solve; it’s no surprise that they’ll sometimes forget some tedious detail the language forces them to worry about.
(с) https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
NULL.” If only I had a computer to take care of such tedium for me!Clearly, computers can’t be expected to do everything for us. But they can be expected to do quite a bit. Programming languages are built for humans, and they ought to eliminate the sorts of rote work humans are bad at whenever possible. A programmer is already busy thinking about the actual problem they want to solve; it’s no surprise that they’ll sometimes forget some tedious detail the language forces them to worry about.
(с) https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
eev.ee
Let’s stop copying C
Ah, C. The best lingua franca we have… because we have no other lingua francas. Linguae franca. Surgeons general? C is fairly old — 44 years, now! — and comes from a time when there were possibly more architectures than programming languages. It works well…
In essence, I would rather be remembered as a bad artist than a good programmer.
(с) The end of the Redis adventure, http://antirez.com/news/133
(с) The end of the Redis adventure, http://antirez.com/news/133
As I looked for images for the book covers, I came across some odd-looking animal engravings from the 19th century. They seemed to be a good match for all those strange-sounding UNIX terms, and were esoteric enough that I figured they’d probably appeal to programmers.
(c) https://www.oreilly.com/content/a-short-history-of-the-oreilly-animals/
(c) https://www.oreilly.com/content/a-short-history-of-the-oreilly-animals/
O’Reilly Media
A short history of the O'Reilly animals
How lions, tigers, and tarsiers went geek.
What the heck is this code? What are these method names?
If this is the quality of code which this programmer produces — at his own leisure, under ideal circumstances, with none of the pressures of real production software development, as a teaching example — then why should you pay any attention at all to the rest of his book? Or to his other books?
(c) https://qntm.org/clean
set2AsFirstPrime? smallestOddNthMultipleNotLessThanCandidate? Is this meant to be clean code? Is this meant to be a legible, intelligent way to search for prime numbers?If this is the quality of code which this programmer produces — at his own leisure, under ideal circumstances, with none of the pressures of real production software development, as a teaching example — then why should you pay any attention at all to the rest of his book? Or to his other books?
(c) https://qntm.org/clean
qntm.org
It's probably time to stop recommending Clean Code
It may not be possible for us to ever reach empirical definitions of "good code" or "clean code", which means that any one person's opinions about another person's opinions about "clean code" are necessarily highly subjective. I cannot review Robert C. Martin's…
One of the key components of designing a distributed system is deciding when the “distributed” part is actually unnecessarily complex.
(c) Designing Distributed Systems, Brendan Burns, 2018
(c) Designing Distributed Systems, Brendan Burns, 2018
In my experience Clean Code is a lot like teenage sex. Everybody brags about it, but very few are actually doing it and those that do invariably lead to accidents.
(с) comments on https://qntm.org/clean rant
(с) comments on https://qntm.org/clean rant
qntm.org
It's probably time to stop recommending Clean Code
It may not be possible for us to ever reach empirical definitions of "good code" or "clean code", which means that any one person's opinions about another person's opinions about "clean code" are necessarily highly subjective. I cannot review Robert C. Martin's…
I would go so far as to say that Kubernetes (or, as the "cool kids" say, k8s) is the worst thing to happen to system administration since systemd.
(c) https://www.roguelazer.com/2020/07/etcd-or-why-modern-software-makes-me-sad/
(c) https://www.roguelazer.com/2020/07/etcd-or-why-modern-software-makes-me-sad/
Roguelazer
roguelazer's website: etcd, or, why modern software makes me sad
musings on tech, politics, music, and more
According to Shaw, people use contempt (of developers using a different programming language, for example) as a social signifier, a way of showing that they belong to the correct group. This sort of contempt certainly plays into this story, where large groups identify themselves primarily by their disdain for systemd and those who work with it.
(c) Systemd as tragedy [LWN.net]
https://lwn.net/Articles/777595/
(c) Systemd as tragedy [LWN.net]
https://lwn.net/Articles/777595/
LWN.net
Systemd as tragedy
Tragedy, according to Wikipedia, is 'a form of drama based on human suffering that invokes an [...]
If you need to make fun of a language, do it with your own language, inside your own community. JavaScript is really good at this…
(c) https://blog.aurynn.com/2015/12/16-contempt-culture
(c) https://blog.aurynn.com/2015/12/16-contempt-culture
Aurynn
Contempt Culture - The Particular Finest
So when I started programming in 2001, it was du jour in the communities I participated in to be highly critical of other languages. Other languages
Это победа. В одной из моделей боинга в софтине, управляющей генераторами, каждые 248 дней переполняется память и генераторы вырубаются. Проблемы в авиации решают красиво: кривую софтину обнуляют, обесточивая самолёт во время техобслуживания o\
Problem:
This condition is caused by a software counter internal to the GCUs that will overflow after 248 days of continuous power. We
are issuing this AD to prevent loss of all AC electrical power, which could result in loss of control of the airplane.
Solution:
This AD requires a repetitive maintenance task for electrical power deactivation.
(c) https://s3.amazonaws.com/public-inspection.federalregister.gov/2015-10066.pdf, по наводке https://news.1rj.ru/str/sqaunderhood/217
Problem:
This condition is caused by a software counter internal to the GCUs that will overflow after 248 days of continuous power. We
are issuing this AD to prevent loss of all AC electrical power, which could result in loss of control of the airplane.
Solution:
This AD requires a repetitive maintenance task for electrical power deactivation.
(c) https://s3.amazonaws.com/public-inspection.federalregister.gov/2015-10066.pdf, по наводке https://news.1rj.ru/str/sqaunderhood/217
В Израиле решили тренировать алгоритм, чтобы он мог принимать решения в суде. Анализировали массив простых дел с ясным контекстом происшествий, по которым принимаются бинарные решения — либо штраф, либо 15 суток. Можно было проследить за историей вынесения приговоров в течение нескольких лет и заложить в алгоритм. Приходит новое дело, судья выносит свой вердикт, а люди, ведущие эксперимент, сообщают, какое решение по нему принял алгоритм. На те решения, которые принимает машина, немедленно набрасываются аналитики данных и начинают их изучать. И выясняют чудовищную вещь: у нее есть большой суточный ход. В начале рабочего дня машина выносит более мягкие приговоры, потом жесткость растет, потом снова падает и постепенно восстанавливается. Почему? Оказалось, что чем ближе по времени к обеду, тем приговоры злее, а чем живые судьи более сытые, тем они мягче. И обработка алгоритмом массива дел позволила выявить эту закономерность. Там было много еще разных сюрпризов: оказалось, что алгоритм чудовищный и с точки зрения гендера, и с точки зрения того, какого цвета подсудимый.
После этого эксперимента было сказано: все, никакие алгоритмы пускать никуда нельзя. Простите, но ведь судьи принимали решения точно так же. Судьи — это люди.
(с) https://www.colta.ru/articles/society/25546-iz-zhizni-algoritmov-intervyu-andrey-sebrant-iskusstvennyy-intellekt, via https://news.1rj.ru/str/techsparks/2615
После этого эксперимента было сказано: все, никакие алгоритмы пускать никуда нельзя. Простите, но ведь судьи принимали решения точно так же. Судьи — это люди.
(с) https://www.colta.ru/articles/society/25546-iz-zhizni-algoritmov-intervyu-andrey-sebrant-iskusstvennyy-intellekt, via https://news.1rj.ru/str/techsparks/2615
www.colta.ru
Андрей Себрант: «Средний класс просто вымрет, потому что 90% того, что он делает, алгоритмы делают лучше»
Большой разговор с Ксенией Лученко о настоящем и будущем искусственного интеллекта — и о нас, которые будут с ним жить бок о бок