links
Links to programming and software engineering related resources I found useful or interesting. A personal "awesome list".
https://github.com/pawroman/links
Last synced: 4 days ago
JSON representation
Algorithms
- Cache replacement policies - - Algorithms that tell you how to evict entries from the cache.
- Consistent Hashing
- The Simple Magic of Consistent Hashing
- The Ultimate Guide to Consistent Hashing
- Dijkstra's in Disguise
- In Search of an Understandable Consensus Algorithm - - (PDF) paper describing the Raft consensus algorithm.
- Introduction to the A* Algorithm - - Explained very clearly, with great interactive examples.Also explores BFS and Dijkstra's algorithm.
- Implementation of A* - - A follow-up on the article, with implementation tips.
- Rendezvous hashing
- Reservoir sampling - - Sample items from very large or infinite collections.
- The Wavefunction Collapse Algorithm explained very clearly
- Algorithms by Jeff Erickson
- The Algorithm Design Manual - - An excellent resource for all sorts of algorithms, full of references.
- Raft Consensus Algorithm Visualization - - Raft Visualized in a very easy to follow way.
- Big-O Complexity Cheat Sheet
Architecture and Programming Patterns
- Clean Architecture (book)
- Design Patterns - Describes the classic OO patterns.
- Game Programming Patterns - - An excellent book on OO patterns found in games. When performance matters.
- The Internals of PostgreSQL - - "for database administrators and system developers".
- The Twelve-Factor App - - 12 good rules for "service" type software.
- PresentationDomainDataLayering - - Similar concept from Martin Fowler.
- Database-as-IPC
- The C4 model for visualizing software architecture - - A promising model for visualizing software.
- Visualising software architecture with the C4 model (video) - - An introductory talk about this model.
- System Design Primer - - Concepts behind modern(-ish) large-scale systems, with plenty of references.
- Global Variables Are Bad
- You are not Google - - Words of caution on architecture and scale.
- Vertical Slice Architecture - - Argues that architecture should be sliced "vertically" (across business domains)rather than "horizontally".
Career Development
- Apprenticeship Patterns - - Problem-solution book for career planning, in praise ofsoftware craftsmanship.Free to read online.
Code Quality and Good Practices
- Empathy is Code Deep - - A talk on applying empathy and thinking about others in coding.Code matters and people do too.
- Software craftsmanship
- Clean Code (book)
- The Clean Coder (book)
- The Future of Programming (video) - - A talk from Uncle Bob about the past and the future of programming.Touches on a plethora of subjects, well worth a watch.
- The Pragmatic Programmer (book) - - An absolute classic of a book, there's a new 20th Anniversary Edition.
- Take-home reference - - Sums up the book.
- AHA Programming - - Avoid Hasty Abstractions.
- Don't Repeat Yourself
- DRY (Don't Repeat Yourself) is a Fallacy - - Argues that DRY is mostly about knowledge, not just code.
- Principle of least astonishment
- Manifesto for Software Craftsmanship
- Cyclomatic complexity
- Keep a Changelog - - A set of guidelines for maintaining changelogs (aka. change logs) in projects.This is a very good practice for versioned software.
- Preventing the Collapse of Civilization - - A good talk touching on software simplicity and knowledge transferin software development.
- When costs are nonlinear, keep it small. - - Talks about the importance of regular maintenance:
- Write code that is easy to delete, not easy to extend. - - Iterating on code design should be easy.
- 5 Things I’ve Learned in 20 Years of Programming - - Some good advice.
- API Evolution the Right Way
- ARCHITECTURE.md - - Advises to document project's architecture in the repo.
- Do Not Log - - Argues that in certain cases logging should be avoided over more structuredsolutions (monitoring, error tracking). Recommends Rust patterns in Python :)
- Some Useful Probability Facts for Systems Programming - - Probability applies to systems and probabilistic models explain someseemingly weird behaviors rather well.
- Superior Testing: Stop Stopping - - Great post on why testing matters (Archived version).
- The AI Hierarchy of Needs - - Looking to do AI? Better sort out the basics and foundations first.Contains the "AI pyramid of needs". I would add "Solid engineering" at thevery bottom of the pyramid though!
- hacker-laws
- Programming Principles
- How To Write Unmaintainable Code - - Learn what not to do :)
- API Security Checklist
- Make It Work, Make It Right, Make It Fast
- The Ship of Theseus to NOT rewrite a legacy system from scratch (FKA. Avoid rewriting a legacy system from scratch, by strangling it) - - A very reasonable approach to rolling out new systems, without full rewrites.
- Rule of three - - Rule stating that a generalization should only be attempted on third repetition/duplication.
Command Line Tools
GUI tools
- QDirStat - Analyze disk usage by directory / file type.
- PosteRazor - - Print posters (e.g. large images spanning multiple paper pages)
- Midnight Commander (mc) - The best file manager.
-
mosh
- Like
ssh, but with local echo and roaming. Good for poor connections. - ncdu - Disk usage analyzer.
- bandwhich - - Display current network utilization by process, connection and remote IP/hostname.
-
bat
- Syntax and git-aware
catclone, with automated paging. -
ctop
-
topfor containers. - direnv - - Per dir/project env var management. You can use it to activate Python virtual envs,store development environment credentials, personal access tokens, etc.It "just works" and is fast, compared to some other tools.
- dive - - Inspect Docker images, layer by layer. Useful to search for spurious/unneeded files.
-
dua
- - Aka.
dua-cli. A (fast!) disk usage analyzer and cleaner. Also has a nice interactive mode. -
eza
- Better than
ls. Also has atree-like switch (-T).A maintained fork ofexa. -
fd
- Better than
find. - gdb-dashboard - Makes GDB so much better.
- grex - - Generate regular expressions matching provided inputs.
- htop - Excellent process viewer.
- hyperfine - CLI benchmarking tool.
- iredis - - Featureful Redis CLI client with syntax highlight and completions.
- kubectx - - Switch between Kubernetes contexts (clusters) and namespaces easily.
- kubetail - - Aggregate logs from multiple Kubernetes pods.
- lazydocker - - CLI dashboard for Docker and Docker Compose.
- lychee - - A fast and featureful link checker.
-
mtr
- Better than
ping. - ripgrep - Fast file content searcher.
- rmlint - - Free up disk space (e.g. duplicate files).
-
sd
- - A simpler, more intuitive
sedreplacement. - speedtest-cli - Speedtest from a command line.
-
stern
- - Tail multiple k8s logs (like
kubetail) but more quickly (and optionally in JSON format). - thefuck - Correct the previous command.
- tmux - A terminal multiplexer, more user-friendly than screen.
- topgrade - - Upgrade just about everything using one single command.
- watchexec - Execute a command when a path is modified.
- xh - - A HTTPie clone in Rust. Much faster startup time compared to the original.
- ArchiveBox - - Your personal (self-hosted) webpage archive.
-
HTTPie
- - cURL for humans. An easy to use CLI HTTP client. Uses Python + requests. Also see
xh. - tealdeer - A very fast tldr client.
- DBCLI - Collection of great CLI database clients,e.g. pgcli, mycli etc.
Data
Databases
- Don't Do This (PostgreSQL wiki) - - What not to do in Postgres.
- Nested Set Model - - Reasonably efficient solution for storing tree structures in relational databases.Aka. MPTT (also see example implementation in Django: https://github.com/django-mptt/django-mptt)
- Readings in Database Systems (commonly known as the "Red Book") - - A short book about databases, with lots of references ("readings").
- Lessons learned scaling PostgreSQL database to 1.2bn records/month - - Very insightful article.
- 10 Things I Hate About PostgreSQL - - A rebuttal to the above, listing shortcomings of Postgres.
- Designing Data-Intensive Applications - - Excellent book that acts as a guide to modern data engineering (and distributed systems).Explains the basic concepts, as well as theory and practical concerns. Doesn't get too specificregarding the software vendors. Highly recommended.
- Storing UTC is not a silver bullet (archived) - - Why "just store all times in UTC" is sometimes not the best approach.
- Your Calendrical Fallacy Is... - - A collection of common timekeeping fallacies.
- Delta Lake - - A promising new "data lake" format, based on parquet. Widely supported acrossvendors, frameworks and programming languages.
Design and Web
- A JavaScript-Free Frontend - - You can do without JavaScript (Archived version).
- Brutalist Web Design - - A set of very reasonable guidelines for designing websites.
- Laws of UX - - Collection of principles to consider while designing user interfaces.
- Opting your Website out of Google's FLoC Network - - How to opt your website out of the newest Google tracking mechanism.
- HTTP headers for the responsible developer - - Good practices for HTTP headers.
Distributed Systems and Cloud Computing
- Complexity Explained - - Complexity science fundamentals, good to keep in mind when dealing with complex systems.
- Nines are not enough: meaningful metrics for clouds - - Explains the relationships between SLA, SLI and SLO and how to approach defining them (archived).
Eye Candy
Fonts
- Hack - - My font of choice. Very easy on the eyes, and very unambiguous.
Icons
- Feather Icons - - Light-weight SVG icons, MIT licensed.
Themes
- Adapta-gtk-theme - - GTK / desktop theme I use. Works great with Cinnamon.
git
git help
- git-flight-rules - - "Lessons learned" guide to git.
- Oh shit, git! - - How to revert common git mess-ups.
- Little Things I Like to Do with Git - - A few useful tips.
- delta - - A great-looking and featureful CLI git diff viewer.
Go
- The Zen of Go - - Go is Go. A few pointers for idiomatic Go code.
Hardware and CPUs
- A fast alternative to the modulo reduction - - A clever alternative to modulo for spreading out values across a fixed-sized array, like in a hashmap.
- Amdahl's law - - Useful thing to know regarding threading and parallelization.
- Branch prediction - - Quick intro to CPU branch prediction.
- Common Systems Programming Optimizations & Tricks - - A few low-level tricks.
- Computer Latency at a Human Scale - - Latency with human-relatable scales.
- Gallery of Processor Cache Effects - - Concise examples showing how cache affects code run time, with good explanations.
-
How does your programming language handle “minus zero” (-0.0)?
- - For numerical programming, it's good to be aware of
-0.0handling. - How x86_64 addresses memory - - Memory addressing on this platform is quite complicated.
- Latency Numbers Every Programmer Should Know - - Know your latencies.
- Performance speed limits - - Super-low-level details of how fast can a CPU execute code.
- The Fallacy of Premature Optimization - - Avoiding "premature optimization" doesn't mean we shouldn't optimize at all.Thinking about performance early on is important.
- The microarchitecture of Intel, AMD and VIA CPUs. An optimization guide for assembly programmers and compiler makers - - (PDF) Very in-depth description of inner workings, ins and outs of various CPUs.
- What Every Programmer Should Know About Memory - - (PDF) An in-depth paper on computer memory from (mainly) programming perspective.
- "What The Hardware Does" is not What Your Program Does: Uninitialized Memory - - Words of warning not to forget the "abstract machine" that programming languages model.
- Branch Prediction - Fundamentals Every Programmer Need Not Know - - Basics and rationale for CPU branch prediction.
- How to Quantify Scalability - - Some theory, tips and useful models for quantifying systems scalability.
- Napkin Math - - Latency/throughput and cost numbers in computer systems.
Kubernetes
- An Illustrated Guide To Kubernetes Networking - - Slides explaining inner workings of K8S networking.
- CNCF Cloud Native Interactive Landscape - - A map grouping all the current and emerging "cloud native" technologies(mostly related to Kubernetes).
- Cloud Native Trail Map - - The migration path to "cloud native".
- k3s - - Lightweight Kubernetes distribution.
- Kubernetes Failure Stories - - Learn from other people's mistakes.
- The Distributed System ToolKit: Patterns for Composite Containers - - Explains Sidecar, Ambassador and Adapter container patterns.
- Authorization Overview (k8s docs)
- kubectl Usage Conventions
- Kubernetes Network Policy Recipes - - Copy-paste examples of Network Policies with diagrams illustrating theireffects.
- kubectl explain — #HeptioProTip
Linux
- The Linux Kernel documentation - - Comprehensive documentation for the Linux kernel.
- The kernel’s command-line parameters
Management / dealing with people
- Turn the Ship Around! - - Great book on management from a US Navy captain. Straight to the point,down-to-earth and genuinely interesting (it's a true story and there's a nuclear submarine involved).
- 22 Principles for Great Product Managers (archived) - - Do product management right.
- Developer to Manager - - Collection of interviews with developers who became managers.
- Do the Real Thing - - Postulates that in order to achieve success, one should focus on realthings, not distractions and fake alternatives.
- Early Evangelists of Agile Engineering Wouldn't Mind Watching It Die - - Some well-grounded criticisms of modern "agile".
- Eliminating the Product Owner Role - - Argues that the "product owner" role might be spread across a team.
- Habits of High-Functioning Teams - - A few principles and rules for high-performing teams.
- Hanlon's razor
- How NOT to hire a software engineer - - Good advice on what not to focus on during an interview.
- How to be a manager
- How to Stop Endless Discussions - - Glorifies the RFC ("Request For Comments") process.
- Spotify's Failed #SquadGoals - - Why the "Spotify agile model" doesn't work, and recommendations for notrepeating the same mistakes.
- The Framing of the Developer (archived) - - Discusses the "Impact oriented" framing vs "Backlog oriented".Advocates that we should ditch the backlog frame; instead focus on impact andthe delivered value.
- Top 12 Things That Destroy Developer Productivity
- Unlearning toxic behaviors in a code review culture
- Users hate change - - Arguments for not changing your product if it works and giving users a choice.
- What Got You Here Won't Get You There (Book Summary) - - Generic tips for leaders.
- When your coworker does great work, tell their manager - - There's a lot of work being done that's not being recognized. This is one way to help your coworkers.
- Why does it take so long to build software? - - Talks about accidental complexity and rapid growth in volume of software.
- Your Company Culture is Who You Hire, Fire, and Promote
- Anatomy of an Asshole
- Breaking Bad: Why Good People Become Evil Bosses
- Prioritizing Technical Debt as if Time and Money Matters (video) - - Talk about dealing with tech debt in a data-driven way.
- Pushing through Friction (video) - - A few tips on pushing through "organizational friction", and getting your ideas acrossin a large organization.
- Every Time Zone - - A readable time zone overview. Useful for scheduling meetings.
- PERT (Program evaluation and review technique)
- Three-point estimation
- Producing Open Source Software - - A book on running open source projects.
- Manager's Playbook - - Heuristics for effective management.
- Commit messages guide - - How to write commit messages well.
- Work is Work - - Getting effective in management and getting work done in an organizationis hard work. There are some universal principles to follow though (archived)
- Deadlines Are Killing Us, And Almost Everything Else I Know About Leadership - - Good article on deadlines, employee motivation, narcissists and managementoverall.
- How to Deliver Constructive Feedback in Difficult Situations - - In praise of Nonviolent Communication (NVC) principles.
- Open Source Guides For The Enterprise - - Resources and guidelines for running an open source program.
Networking
- Reserved IP addresses - - List of reserved and special purpose addresses (Wikipedia).
- Endlessh - - SSH tarpit server.
Other Lists
Privacy
- Nothing to hide argument - - A Wikipedia article discussing the "I have nothing to hide"privacy argument.
- Three Reasons Why the "Nothing to Hide" Argument is Flawed
- Pi-hole - - Your custom DNS server, with a lot of features.Can run on a Raspberry Pi.
- privacytools.io - - A grab-bag of resources for the privacy-minded.
- WireGuard - - The next-generation, fast & easy to use VPN.
Productivity
- Busy Person Patterns - - (PDF) How to be less overwhelmed by the lack of time.
- Mental Models: The Best Way to Make Intelligent Decisions (109 Models Explained)
Programming Languages
- Rosetta Code - - Compare language syntax.
- The Computer Language Benchmarks Game - - Which are the fastest? Shows why Rust is so great :)
Python
Python learning
- Advanced asyncio: Solving Real-world Production Problems - PyCon 2019 (video)
- Slides
- How to Make Mistakes in Python - - (PDF). Free book collecting Python antipatterns and common mistakes.