Better HN
topnewbestaskshowjobs
Log inSign up

dicroce

967 karma · joined Mar 25, 2011 (15y ago) · 336 submissions

Submissions

comment 12y ago · link · parent

So how do they pay you? Rubles?

comment 12y ago · link · parent

Me too. RAII ftw!

comment 12y ago · link · parent

They see what you see out of your elbow.

comment 12y ago · link · parent

democracy->oligarchy->dictatorship->collapse->democracy

comment 12y ago · link · parent

Fuck "Personal Audio".

Go Adam. The world needs more people to stand up to bullshit like this. (sorry for the language in this post, this sort of stuff infuriates me).

comment 12y ago · link · parent

I usually just restrict the SQL I'm using to something reasonable and I've never had any trouble...

comment 12y ago · link · parent

Here's a thought experiment. Lets say we lived in a world without SQL and the default way to talk to DB's was through an ORM....

And then someone came and said: "I created this concise and super flexible language for querying data." Would people want it? I think they would, and we'd see tons of articles about vast forests of objects being replaced by small snippets of SQL.

comment 12y ago · link · parent

Yeah, you failed... but you put yourself out there... that's what really living is all about.

comment 12y ago · link · parent

Freedom is cyclical... When oligarchs rule, they unknowingly give power to anyone who will appeal to the mob... Whoever picks up that power will claim it's for the "good of the people", and the people will gladly trade their freedoms to be free of the oppressive rich elites... A people without freedom and dependent on their king for everything is a weak people, and eventually their empire will fall to pieces through some combination of internal fighting and weak external threats. Falling apart is hard as the people have no emperor providing free bread anymore and the people must learn to fend for themselves again... from this rises individualism and freedom once again. Cyclical.

comment 12y ago · link · parent

If you were building a sandcastle, a type system is like plastic forms in the shape of castle components (walls, towers, etc)... They help you create a better sandcastle...

This article was essentially saying: "You can remove the forms when you are done and your sandcastle will still stand."

comment 12y ago · link · parent

From the same process? Is there better documentation for this issue somewhere?

comment 12y ago · link · parent

I've always wanted something like this to. Only, I suspect that lists are only one possible form of information that needs to be organized. I also think users should be able to shape trees (and maybe others).

Maybe you encourage vistors to click on everything they agree with and thereby learn which users contributions are seen to be the most valuable. Users with the most valuable contributions could be rewarded with more ability to shape the tree or list...

comment 12y ago · link · parent

I keep my code portable to Windows soley for the purpose of getting to use the Visual Studio debugger. Likewise, Windows developers should write portable code so they can use valgrind.

comment 12y ago · link · parent

So, shouldn't it have just been a divide by 10?

comment 12y ago · link · parent

If the time was in tenths, why would you multiply it by 1/10 to get seconds? Shouldn't you be multiplying it by 10 to get seconds?

update: Ahh, I get it. You'd need to divide it by 10 to get seconds.

comment 12y ago · link · parent

Here's the thing: I believe that millions of years of evolution have baked into every living thing a deep need to work, and we'll feel bad if we don't (because for millions of years lazyness meant death). We need to struggle.

Further, I think we need to bad times to help us recognize the good times and a basic income would do much to soften those bad times...

I worry that Basic Income is in the long term practically unavoidable, but at the same time will create new levels of depravity in mankind.

comment 12y ago · link · parent

One thing that crosses my mind whenever I imagine creating a human level intelligence is that it takes humans YEARS of constant stimulation to begin to exhibit intelligent behavior... Sometimes I wonder if we'll have the algorithm may before we realize it...

258.

FlappyBot turns Flappy Bird into a driving game.(youtube.com ↗)

3 points · by dicroce · 12y ago · discuss

comment 12y ago · link · parent

Does it use the STL? The STL will throw. Does it use the new operator? new will throw unless you specifically tell it not to.

comment 12y ago · link · parent

Also check out ltrace... Shows the calls to other libraries the process is making...

I'd also like to point out that a key to using strace successfully is the result column... Programs that fail often make system calls that fail right before they exit... You can often tell what the program is trying and failing to accomplish...

comment 12y ago · link · parent

This is a great book for 3 reasons: 1) Abrash is actually a good writer. Sometimes, I read the beginnings of chapters just for the stories he tells. 2) It's full of algorithms. Sure, you probably won't be writing your own triangle rasterizer in assembly language, but the algorithms are still important to know. Besides, it has plenty of stuff that's pretty timeless (there is a boyer moore implementation in there). 3) Abrash's philosophy of optimization is the best there is.

comment 13y ago · link · parent

I agree with his main point, but to be honest, on most of the games I've worked on I've had something playable very fast (1 or 2 weeks)... Its all the details beyond basic gameplay that take all the time and really make delivering a game hard.

comment 13y ago · link · parent

I use Wikipedia nearly every day. I have learned a great many things that I am able to immediately apply in my work (recent example: http://en.wikipedia.org/wiki/Boyer_moore)... I guess its just a coincidence that this false information had the exact same running time complexity as the real thing (O(n+m))?

comment 13y ago · link · parent

The art of solving the problem in question and ONLY the problem in question.

comment 13y ago · link · parent

Everything you said is true. But so is the fact that people are starting to die of things that just a few years ago were curable.

comment 13y ago · link · parent

This is what I'm doing. I'm actually looking forward to having a real machine connected to my TV (for lots of reasons besides Steam)...

comment 13y ago · link · parent

Too many older developers are carrying around biases today that used to be true (like the performance issue you pointed out).

comment 13y ago · link · parent

This is a pretty basic article, but might be useful for some. One point I take issue with: a pointer in C is not simply a variable containing an address. It also knows (at compile time) how big the object pointed to is and so increments and decrements mean different things depending on the pointer type. In addition, void* is special because it does NOT know it's size.

comment 13y ago · link · parent

I remember the Denthor tutorials! Downloaded from a BBS, learned the basics of graphics programming... Mode 13h... :) I emailed Denthor once and thanked him (shortly after I got my first job in '96).... I have the Black Book as well, good memories!

comment 13y ago · link · parent

So, if Android products are banned in the US, that doesn't change the fact that they would continue to be sold elsewhere in the world, right? And if so, wouldn't it be likely that you could pay to have an Android imported (perhaps illegally)?
1
89101112