short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
| #!/usr/bin/python3 | |
| # -*- coding: UTF-8 -*- | |
| # | |
| import os | |
| import subprocess | |
| import time | |
| import socket | |
| import sys | |
| import json |
At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.
What killed Haskell, could kill Rust, too
What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.
Is Haskell dead?
This is a collection of content marketing programs. I've tried to limit it to ones that pay (and have excluded some that paid insultingly low!) but exact pay ranges aren't always available.
Most of these programs are developer-oriented.
This list isn't very actively maintained, so some programs may no longer be running when you're viewing this.
The user experience of Python on a minimal Debian or Ubuntu installation is bad. Core features like virtual environments, pip bootstrapping, and the ssl module are either missing or do not work like designed and documented. Some Python core developers including me are worried and consider Debian/Ubuntu's packaging harmful for Python's reputation and branding. Users don't get what they expect.
The problems can be easily reproduced with official Debian and Ubuntu containers in Docker or Podman. Debian Stable (Debian 10 Buster) comes with Python 3.7.3. Ubuntu Focal (20.04 LTS) has Python 3.8.5.
| from .social_media_post import SocialMediaPost | |
| from .social_media_post_publisher import SocialMediaPostPublisher | |
| # This is used by 'from socsocial_media_post import *' | |
| # As far as there is nothing else here and in app.py | |
| # we import the classes explicitely, this part can be ommited | |
| __all__ = [ | |
| 'SocialMediaPost', | |
| 'SocialMediaPostPublisher' | |
| ] |
| -- count till n | |
| WITH RECURSIVE count_cte AS ( | |
| SELECT 1 AS n -- anchor member | |
| UNION | |
| SELECT n + 1 -- recursive member | |
| FROM count_cte WHERE n < 10 | |
| ) SELECT * FROM count_cte; | |
| -- factorial | |
| WITH RECURSIVE fact_cte AS ( |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| ``` | |
| package helper | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "fmt" | |
| "reflect" | |
| "time" |