News for hackers. Stuff that matters.

tydok

Re:Show HN: Coding Career Handbook on Wednesday July 01, 2020 @11:02AM (#23702139)
Ask more? The book is expensive. If he lowers the price, say to $10, the sales will probably increase 10x.
> How far should we go in making things generic ?

Never make things generic apriori.

Re:My Job Interview at Google (2008) on Saturday May 09, 2020 @09:58AM (#23124728)
> 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...

Re:Complexity Has to Live Somewhere on Friday May 01, 2020 @11:46AM (#23043229)
Yeah, but perhaps the 90% of each 5% is common to all users.
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).
> 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.

Still, isn't it one stream per client? Why 10 streams each?
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.

Re:To get good, go after the metagame on Tuesday February 25, 2020 @01:40PM (#22415856)
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

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.
Re:The Myth of Architect as Chess Master on Tuesday February 18, 2020 @09:12AM (#22356154)
Re:Collected Papers of Alexander A. Stepanov on Tuesday February 04, 2020 @08:42AM (#22235388)
"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"
Re:Challenging projects every programmer should try on Sunday December 15, 2019 @08:57AM (#21796228)
We use double buffering to avoid flickering, but still we have to clear the back buffers.
Re:Classes vs. Data Structures on Monday June 17, 2019 @11:29PM (#20209549)
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...
Re:Game Programming Patterns on Saturday June 03, 2017 @04:45AM (#14475554)
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.

Very interesting. It contains a few subtitle providers I've never heard before. Thanks for posting it.
Perhaps the most difficult problem is to find a subtitle in multiple languages.
The problem isn't only about matching subtitles to movies but also where to look for subtitles, e.g. opensubtitles.org, subscene.com, etc.
Re:Minesweeper: Advanced Tactics (2005) on Sunday February 05, 2017 @10:04AM (#13572637)
Good idea, I could do it.
Re:Minesweeper: Advanced Tactics (2005) on Sunday February 05, 2017 @09:09AM (#13572452)
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?

Re:Minesweeper: Advanced Tactics (2005) on Sunday February 05, 2017 @08:27AM (#13572318)
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.

Re:Minesweeper: Advanced Tactics (2005) on Sunday February 05, 2017 @06:06AM (#13571839)
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.

Re:Why I No Longer Use MVC Frameworks on Monday February 15, 2016 @04:02PM (#11105945)
> 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.

Re:Can 10,000 hours of practice make you an expert? on Saturday March 01, 2014 @09:30AM (#7324282)
Jack of all trades, master of none.
Re:25 Dots, 8 Lines on Sunday April 21, 2013 @06:58AM (#5584515)
Re:HTML5 Tetris - Practice Work on Saturday January 05, 2013 @09:24AM (#5012688)
thank you
Re:HTML5 Tetris - Practice Work on Saturday January 05, 2013 @07:19AM (#5012415)
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 :)
Re:HTML5 Tetris - Practice Work on Saturday January 05, 2013 @07:04AM (#5012389)
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

Re:100,000 stars on Thursday November 15, 2012 @12:24AM (#4787247)
"There's a lot of space out there to get lost in."

Older »