HNHacker News
TopNewBestAskShowJobs

tydok

56 karma · joined September 25, 2008

submissionscomments
tydok··on Show HN: Coding Career Handbook
Ask more? The book is expensive. If he lowers the price, say to $10, the sales will probably increase 10x.
tydok··on Ask HN: How to avoid over-engineering software design for future use cases?
> How far should we go in making things generic ?

Never make things generic apriori.

tydok··on My Job Interview at Google (2008)
> which is probably some trivial math...

The clock hand problem can be solved with the Rule of Three

https://en.wikipedia.org/wiki/Cross-multiplication#Rule_of_T...

tydok··on Complexity Has to Live Somewhere
Yeah, but perhaps the 90% of each 5% is common to all users.
tydok··on Ask HN: Are there good self-hosted video conference tools?
Exactly. It scales linearly, not quadratically. I forgot to mention that since clients do the "original" encoding, the server actually does less work (regarding resolution tiers).
tydok··on Ask HN: Are there good self-hosted video conference tools?
> 100 outgoing video feeds. Not many machines can encode 100 video feeds in realtime

The server will send 9 video streams to each connection, but it has to process only 10 video streams since it will send the same video data to all clients, if we ignore client bandwidth.

tydok··on Ask HN: Are there good self-hosted video conference tools?
Still, isn't it one stream per client? Why 10 streams each?
tydok··on Ask HN: Are there good self-hosted video conference tools?
Firstly, a client will have 10 outgoing video streams at most, not 100!

Secondly, if we consider receivers bandwidth, a client can encode 2 or 3 video streams, e.g. low, medium, and high quality video.

tydok··on To get good, go after the metagame
The fundamentals are about positional elements and strategic principles.

For example: Relative value of the pieces, Control of the center, Pawn structure, Tactics, Initiative, Tempo, Opposition, Keep the position balanced, Develop multiple ideas/areas (strategy), Control open lines (files/ranks/diagonals) and crossings

tydok··on Requirements volatility is the core problem of software engineering
Yes, it's indeed a property, not a problem. The problem is the accidental complexity which has the tendency to increase and requires constant effort/energy from us to keep it low.
tydok··on The Myth of Architect as Chess Master
Taste and Aesthetics https://www.artima.com/intv/taste.html

Taste for Makers http://www.paulgraham.com/taste.html

tydok··on Collected Papers of Alexander A. Stepanov
"I have yet to see an interesting piece of code that comes from these OO people [...] It claims that everything is an object. Even if it is true it is not very interesting"
tydok··on Challenging projects every programmer should try
We use double buffering to avoid flickering, but still we have to clear the back buffers.
tydok··on Classes vs. Data Structures
Classes vs Data Structures, or maybe Objects vs Data Structures, or maybe Classes vs Objects, or maybe Data vs Data Structures, or maybe Data vs State, or maybe Classes vs Types, or maybe OOP vs FP, or maybe I don't know what I'm talking about...
tydok··on Game Programming Patterns
I use extensively in my projects the Component decoupling pattern: http://gameprogrammingpatterns.com/component.html

The Observer and Mediator patterns can then be used for wiring components.

tydok··on Malicious Subtitles Threaten Kodi, VLC and Popcorn Time Users
Very interesting. It contains a few subtitle providers I've never heard before. Thanks for posting it.
tydok··on Malicious Subtitles Threaten Kodi, VLC and Popcorn Time Users
Perhaps the most difficult problem is to find a subtitle in multiple languages.
tydok··on Malicious Subtitles Threaten Kodi, VLC and Popcorn Time Users
The problem isn't only about matching subtitles to movies but also where to look for subtitles, e.g. opensubtitles.org, subscene.com, etc.
tydok··on Minesweeper: Advanced Tactics (2005)
Good idea, I could do it.
tydok··on Minesweeper: Advanced Tactics (2005)
It's not based on math, it's empirical. In practice seems to work.

I applied it on the minefield in the article and I solved it.

To put it another way, on two adjacent tiles where there's one mine, if you had the choice to reveal a 2 or a 6, which one would you choose?

tydok··on Minesweeper: Advanced Tactics (2005)
The mines are uniformly distributed, yes, but the numbers are not. In a relatively sparse minefield, how likely is to find a 4? Of course depending on the "shape" of a cluster, chances can be 50%. The mines influence the distribution of numbers, not the other way around.

Try to apply the tactic I mentioned to solve the minefield in the article.

tydok··on Minesweeper: Advanced Tactics (2005)
I use a simple but effective tactic.

50-50 chances on nearby/adjacent tiles aren't actually 50%. If one tile would reveal a 4 and the other a 2, pick the second, because 4s are more rare.

tydok··on Why I No Longer Use MVC Frameworks
> someone in Greece 2000 years ago

How the Ancient Greeks Invented Programming http://www.infoq.com/presentations/Philosophy-Programming

Summary:

Matt Butcher explores the philosophical systems devised by Plato and Aristotle, showing how Plato laid the foundations for what is now OOP, while Aristotle’s dynamic model is at the core of FP.

tydok··on Can 10,000 hours of practice make you an expert?
Jack of all trades, master of none.
tydok··on Keypress: A Javascript library for capturing input
That's keyboard ghosting.

http://en.wikipedia.org/wiki/Rollover_%28key%29#Key_jamming_...

http://www.microsoft.com/appliedsciences/antighostingexplain...

tydok··on 25 Dots, 8 Lines
My solution http://i.imgur.com/S2L9pht.jpg
tydok··on HTML5 Tetris - Practice Work
thank you
tydok··on HTML5 Tetris - Practice Work
Your girl friend is absolutely correct. Graphics don't mean much. I added colors but I spent most of the time tuning the keyboard controls :)
tydok··on HTML5 Tetris - Practice Work
Nice work.

I like to make simple games when I learn a new language. While playing with javascript and canvas, I wrote this http://nick-d.appspot.com/tetris.html

tydok··on 100,000 stars
"There's a lot of space out there to get lost in."
Page 1 of 2Next →