72 karma · joined Jan 9, 2012 (14y ago) · 31 submissions
comment 3y ago · link · parent
> The Visitor pattern is really about approximating the functional style within an OOP language (source: https://craftinginterpreters.com/representing-code.html)
The expression problem is one of those "mathematical duality" or yin-yang thing in software design that are less well-known for some reason. People keep pointlessly arguing in favor of one or another without knowing this duality.
Another favorite of mine is SQL vs NoSQL which Erik Meijer mathematically proved to be dual of each other using category theory (https://queue.acm.org/detail.cfm?id=1961297).
comment 3y ago · link · parent
comment 6y ago · link · parent
The paper also discusses that you can separate a program into
1. state (data that changes over time)
2. behavior (computational logic)
In order to reduce the accidental complexity, you can use functional programming (which is purely behavior, devoid of complexity due to state mutation) for the behavior part. For the state part, you can use a relational database to manage it in a more systematic manner. They call it functional-relational approach to software design.
If you do game development, you likely heard of ECS (entity-component-system) and data oriented programming which in a way promotes this approach to software design.
4.
Ask HN: How do you manage dependencies between multiple repos?
2 points · by 9diov · 6y ago · discuss
comment 7y ago · link · parent
- Its use of LookML provides a steep learning curve, yet provides a maintainable and reusable data modeling
- Looker's drill-down ability is decently powerful and easy to use once you are familiar with LookML.
- Looker does not have its own storage layer but instead relies on customer's data warehouses
- Looker, in essence, is a SQL query builder engine that converts business users' drag-and-drop inputs into SQL queries.
- Looker provides highly flexible and sophisticated access control and permission management, sacrificing simplicity for power.
- Looker has limited data preparation capabilities compared to other tools, delegating this task to its partners to provide these capabilities.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
- Mission: This could be specific like "bring humans to Mars" or it could be vague like "accelerate space exploration".
- Strategy: This should be the principles and methods used to implement the mission. Example: "Starting up a private company that works on rocket technology. Sell electric cars on the side to make money."
- Roadmap: This should be actionable, measurable and time-based such as "build a reusable rocket by 2016"
comment 9y ago · link · parent
comment 12y ago · link · parent
The major feature is that it can install plugins in parallel. I've switched from vundle to it and have been quite happy.
comment 13y ago · link · parent
The best programmer I know in person agonizes over his approaches until it satisfies his high level of standard. He is a professional, not an amateur who does his work for fun. Does he have fun when he works? Yes, sometimes, but not all the time.
comment 13y ago · link · parent
Think of it as acquiring an addiction rather than "learning" something. Look for the most addictive component activity the subject involves, that can be repeated with minor variations and increasing complexity as rapidly as you can go.
In math for example, this is graded homework problems of increasing levels of difficulty. For programming, it might be little coding problems. For people management, it is running effective meetings.
No individual instance should take more than an hour on average, for a meaningful "hit."
Now do this activity repeatedly. "Learning" is merely a supporting activity required to keep the hits coming. You'll find that you are endlessly resourceful while pursuing the next hit, just like crack addicts can be quite clever in finding money to buy the next hit.
Some people are serial addicts and can learn one thing after another, learning many things very quickly. Others get addicted to just one thing. Others struggle with even one thing. For the last category, the problem is often patience until the first hit. Once you have your first hit, the addiction begins.
20.
Attention control is critical for changing motivation(lesswrong.com ↗)
2 points · by 9diov · 13y ago · discuss
comment 14y ago · link · parent
What I want to say is that loving something is hard work and usually the initial period is the hardest. If you don't grind your teeth to overcome this, you will never find what you love.
comment 14y ago · link · parent
23.
Early Unix history and evolution(cm.bell-labs.com ↗)
1 points · by 9diov · 14y ago · discuss
comment 14y ago · link · parent
For anyone who never played Starcraft: zerglings are created in pair, two per egg and the maximum number of eggs are 3. A player who attempts to do a zergling rush wait for the first 3 eggs to be available, hatch them and subsequently make a new pair of zerglings as soon as a new egg is available.
25.
Sun Tzu's "The art of war" applied to competitive gaming(sirlin.net ↗)
1 points · by 9diov · 14y ago · discuss
comment 14y ago · link · parent
"I had nearly five thousand volumes in my library at Rome; but after reading them over many times, I found out that with one hundred and fifty well-chosen books a man possesses, if not a complete summary of all human knowledge, at least all that a man need really know. I devoted three years of my life to reading and studying these one hundred and fifty volumes, till I knew them nearly by heart; so that since I have been in prison, a very slight effort of memory has enabled me to recall their contents as readily as though the pages were open before me. I could recite you the whole of Thucydides, Xenophon, Plutarch, Titus Livius, Tacitus, Strada, Jornandes, Dante, Montaigne, Shakespeare, Spinoza, Machiavelli, and Bossuet. I name only the most important." -- Abbe Faria, Chapter 16. A Learned Italian.