News for hackers. Stuff that matters.

Ideka

Re:Why Can't Programmers Program? (2007) on Saturday June 11, 2016 @01:24PM (#11884309)
Do you know how that sentence you wrote right there works? Did you create the English language?
Re:Vimb – Vim-Like Web Browser on Saturday March 07, 2015 @04:57PM (#9163265)
I see a lot of talk about Vimperator here.

Vimperator's pretty good, but you people really need to check out Pentadactyl.

Re:Why is clockwise Clockwise? (2008) on Thursday February 26, 2015 @09:57AM (#9112786)
True, I always think the same thing. But if a wheel was rotating clockwise, it would be moving from left to right. That could be where it comes from.
Re:Don't call yourself a programmer (2011) on Saturday February 07, 2015 @04:54PM (#9015445)
Honest question: Why do people care so much about or like having the year in the title? In some situations I can see it being needed to prevent big confusions, but many times I see people put the year in the title when it doesn't really seem to matter. In this particular case for instance, I don't see why it would be needed.
Re:The Fight to Save Japan’s Young Shut-Ins on Tuesday January 27, 2015 @06:36AM (#8952526)
I downvoted you.

You shouldn't generalize people (doing it by race is called racism; doing it by country has no fancy name that I know of but it's wrong all the same), or refer to some cultures as "better" than others.

Re:Is your (programming) language unreasonable on Tuesday January 27, 2015 @02:16AM (#8951843)
(The following mostly applies to C#.)

> Objects containing the same values should be equal by default.

Sounds good, but it's a tricky issue. Equality must be checked between all values of both objects. This can take long, as objects can have many values and may contain references to other objects which may in turn contain references to other objects and so on. Object references might even be cyclical. Not impossible to account for but quite tricky.

And how about get/set properties? These must be checked as well, even though many will be just "mirrors" of private or protected properties, and others might be calculations based on other properties (like the area of a circle).

> Comparing objects of different types is a compile-time error.

Accounting for inheritance, I assume.

> Once created, objects and collections must be immutable.

This sounds like a terrible idea. Wouldn't objects be to even modify their own properties?

> Objects must always be initialized to a valid state. Not doing so is a compile-time error.

> No nulls allowed.

Nulls are useful. The problem here comes from not knowing whether something may be null or not. The solution would be only allowing Nullables to be null, and enforcing anything that's not a Nullable to be initialized.

Re:Elevator Saga – An elevator programming game on Friday January 23, 2015 @07:52AM (#8934575)
A couple of problems with the API.

First, why do you have to call checkDestinationQueue after modifying the queue? It's awfully redundant. I assume this is due to some kind of limitation.

And second, goingUpIndicator and goingDownIndicator are kind of sketchy. Can you activate both at the same time? What effect would that have? There should be a single property, directionIndicator of an enum type with the possible values up, down, and none. I don't think you can make enums in javascript though, but I don't know the language very well. I'm just explaining this in terms that I know; there probably is a suitable javascript equivalent or replacement.

Re:Dwarf Fortress, the Great Ancestor on Thursday January 22, 2015 @07:28PM (#8932706)
DF also already has an almost silly level of ambition: http://bay12games.com/dwarves/dev.html

No-bullshit email system

You register with a username and a password. The username must be alphanumeric and must fit within the local part of an email. But actually let's limit it to 32 characters (instead of 64), we'll need more space later. Let's say your register as "johndoe".You are assigned a randomly generated unique id with all kinds of symbols and shit (because it will act as a salt). Let's say for you it's...

( Read More... | 6 comments | 5 points | on HN )
Re:Look, no hands on Monday December 29, 2014 @09:03AM (#8809770)
Your post is very reminiscent of this[0], which was posted on HN a long time ago.

[0]: http://worrydream.com/ABriefRantOnTheFutureOfInteractionDesi...

Re:ASMR: The videos which claim to make their viewers 'tingle' on Thursday December 11, 2014 @10:47AM (#8735367)
I'm gonna need a source on that one. I experience ASMR, and the tingling sensation definitely calms you and feels nice, but it has nothing sexual attached to it.
Re:Cursors on Sunday October 19, 2014 @06:43PM (#8479900)
Hahaha. That level is so much fun to troll people in.

Someone was drawing an X on the correct exit, and I started drawing a checkmark on the one next to it. When they realized, they tried to cross it out.

Re:Microsoft unveils Windows 10 system with Start Menu on Tuesday September 30, 2014 @04:55PM (#8391158)
No. The japanese consider 4 and sometimes 7 to be "unlucky numbers". 9 is fine.
Re:Psychedelics in problem-solving experiment on Sunday August 31, 2014 @11:24AM (#8249493)
Can you explain in detail how you achieved this? How is it that you "designed" the trip?
Re:Designing game narrative on Sunday August 03, 2014 @07:48PM (#8129578)
You raise a good point, but even if sophisticated AIs are not technically possible yet, predefined characters can still be done well without (ab)using cutscenes.
Re:Introducing EFF's Stupid Patent of the Month on Thursday July 31, 2014 @11:18PM (#8118223)
Their product is presumably not photo tagging or recording GPS data. These are just components they need for their actual product to work. When you talk about "innovating" here you are actually saying "finding way of achieving something that's different enough from the most convenient way (because someone has already thought of that)". That's no innovation at all; all that would do would be stopping them from launching their product until they figure out a way around the problem. By blocking entrepreneur's paths, patents prevent them from releasing their possibly innovative products, thus preventing innovation.
Yaguarón 1414, Montevideo, Uruguay
Re:Pokémon Crystal disassembled source code on Monday May 19, 2014 @01:05PM (#7768491)
This is certainly a thing of beauty. See, for instance, the way the trainers are defined:

https://github.com/kanzure/pokecrystal/blob/master/trainers/...

It almost looks like a high-level language.

Re:Unpythonic Python on Wednesday April 09, 2014 @06:35PM (#7562968)
That's not what they mean. The usage they are discussing is more like this, I believe. In a functional context, instead of doing:

    print expensive_computation(), expensive_computation()
You can do:

    (lambda x: print x, x)(expensive_computation())
Which would be equivalent to, with an imaginary let syntax:

    (let x be expensive_computation(): print x, x)
Re:Ask HN: What language should I learn next? on Saturday April 05, 2014 @09:12PM (#7539190)
Lisp/Scheme. Go through SICP[0] and do the exercises. Also, mandatory pg essay: http://www.paulgraham.com/avg.html

[0]: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html

Re:Depackaging the Nintendo 3DS CPU on Thursday March 27, 2014 @04:18PM (#7483151)
I always open these up in a new tab (usually can be done fast with third click, or ctrl+click), then close the tab when I'm done. It's fast, you can keep reading the original site while the image/webpage/whatever loads, and the problem you mention never happens.
Re:2048 in sed on Tuesday March 25, 2014 @07:54AM (#7465226)
Well, there's this: https://github.com/Sanqui/2048-gb

It was posted on HN but didn't really take off, sadly: https://news.ycombinator.com/item?id=7434529

Re:Show HN: Gameboy port of 2048 on Thursday March 20, 2014 @07:33AM (#7434905)
Man, that's awesome. And it's written in assembly! I'm asking out of my armpit here but, is there no way to compile C/C++ for the Gameboy?

Older »