Subscribe
Sign in
Home
Concepts
The Coding Corner
Lattes & Stories
Sponsorships
📌 Index
💬 Discord
Programming
Latest
Top
Discussions
Linus Torvalds vs. Ambiguous Abstractions
There’s no issue with abstracting code into a helper function. If we want to optimize for cognitive load, the intent should be as clear as possible…
Nov 26
Â
•
Â
Teiva Harsanyi
2
3
Organic Growth vs. Controlled Growth
A codebase is like a garden: left to grow organically, it becomes colorful but chaotic.
Sep 30
Â
•
Â
Teiva Harsanyi
6
2
What Makes Code Beautiful
The more average the code, the more pleasurable it is to read and maintain.
Jul 10
Â
•
Â
Teiva Harsanyi
9
8
Ford-Fulkerson Algorithm
The maximum flow problem involves finding the highest possible flow that can travel from a source to a sink in a flow network without exceeding edge…
Apr 30
Â
•
Â
Teiva Harsanyi
9
1
Functors, Applicatives, and Monads
Thanks to constructs like monads, imperative-style code can be reconciled with the purity and declarative nature of functional programming.
Mar 20
Â
•
Â
Teiva Harsanyi
5
3
1
Tidy First?
Tidying are a subset of refactorings. Tidying are the cute, fuzzy little refactorings that nobody could possibly hate on.
Mar 11
Â
•
Â
Teiva Harsanyi
11
Partially Applied Functions vs. Currying
Combining currying with partial application leads to a cleaner and more concise way to break down complex functions into reusable components.
Feb 11
Â
•
Â
Teiva Harsanyi
6
1
Nested Code
Align the happy path to the left; you should quickly be able to scan down one column to see the expected execution flow
Feb 4
Â
•
Â
Teiva Harsanyi
7
Topological Sort
The topological sort is used in various places, especially when handling dependencies. For example, in Homebrew to resolve the package dependencies and…
Dec 5, 2024
Â
•
Â
Teiva Harsanyi
4
Graphs
From social networks to maps and even in biology, graphs provide a powerful way to represent and analyze relationships between objects.
Dec 4, 2024
Â
•
Â
Teiva Harsanyi
3
Binary Heaps
A binary heap is great when we need quick access to the minimum or maximum element in a dataset.
Dec 3, 2024
Â
•
Â
Teiva Harsanyi
4
Arrays vs. Linked Lists
Linked lists offer better time complexity for certain operations, but can lead to lower performance in practice due to a lack of spatial locality and…
Dec 2, 2024
Â
•
Â
Teiva Harsanyi
5
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts