Better HN
topnewbestaskshowjobs
Log inSign up

SimHacker

914 karma · joined Sep 12, 2010 (16y ago) · 607 submissions

Submissions

comment 13y ago · link · parent

Ethical programmers don't want to deliver programs to users that are riddled with unknown, undetectable bugs, that silently corrupt data and make mistakes, without being caught by testers or warning the user.

That's why it's better to be bold and crash spectacularly, instead of trying to cover up unexpected problem by guessing. If you have an unexpected null pointer, there is a reason, and your expectations were wrong, so there's something bad going on that you don't know about. By silently hiding the problem, your program may be doing the just wrong thing, and you never know about it.

That's the problem with PHP, which has it even worse than Objective C. Ignoring errors and guessing what to do is PHP's way of life, and it's been the cause of countless security holes, data corruptions, and hard to diagnose bugs.

Use lots and lots of pedantic asserts, and test thoroughly, so the production code does not have to be riddled with labyrinths of error handling and mitigation guessing code. Assume the APIs obey their contracts, and write APIs with strong contracts that do what they promise. If something might return a NULL, then test for it and handle it properly, so whoever is reading and maintaining your code knows that you considered the possibility and thought through the solution, and the computer doesn't have guess what to do.

Computers are notoriously bad at guessing the programmer's intentions, so programming languages should not encourage programmers to let the computer guess what they meant.

comment 13y ago · link · parent

OK, perhaps I was too harsh saying that VLC had the most systematically terrible user interface of any program I have ever seen. I had forgotten about The Gimp. They are both suffering from the same kind of pathological user interface problems that seem to result from a pretentious and cliquish committified developer community whose individual members each care much more about overdeveloping their particular paroquial corners of the applications than how it all fits together as a whole, and who religiously refuse to even consider looking at competing commercial products because to expose themselves to any non-open-source software would make them impure and suck out all their precious bodily fluids. But at least VLC's name wasn't chosen for the express purpose of being bigoted and obnoxious and repelling ordinary mainstream users, under the false pretense of being whimsically humorous and self deprecating like Git.

comment 13y ago · link · parent

Some but not all of the changes I make to the configuration (like key bindings in particular) don't take effect until I restart VLC. What the fuck???

http://forums.logitech.com/t5/G-Series-Gaming-Keyboards/G19-...

"In VLC, as of 1.1.11, you have to go to interface, preferences, hotkeys, and doubleclick the GLOBAL hotkey you need to set. Press the media key on the keyboard, and it'll return but will act like nothing changed. Click "Apply" and it should show you the media key identification of the key you pressed. Once you have setup all your keys, save, and completely exit and restart VLC."

For me, on both Mac and Windows, VLC key bindings fail to take effect until I restart it (any key bindings, not just global media hotkeys), and many options simply don't get saved at all. I have to hand edit the configuration text file. Ridiculous.

http://forum.videolan.org/viewtopic.php?f=14&t=91154

"Saving can fail. And sometimes it can even output corrupted file."

http://forum.videolan.org/viewtopic.php?f=14&t=13340

"As for saving, make sure you click 'Save' on the options dialog. OK applies them without saving, while Save applies and saves them."

Yes I am pressing the "Save" button. There is no "OK" button, and if there was both an OK and a Save button, that would still be a terrible user interface design.

Basic simple things like that just don't work. Maybe my preferences file keeps getting corrupted, but that should NOT happen, ever. At least it should give me an error message instead of just silently losing. Shameful.

Then there's the way it decides to resize the playlist window really big for no reason at all. Why can't the playlist window just stay the same size?

It crashes all the time, and then when I restart it, it ALWAYS asks if I want to report the last crash to the development team. No I don't, and I also don't want it to ask me that every fucking time. I just want it to shut the fuck up and play a video. Of course there is no option I can find to turn off that annoying modal pop-up dialog. A not-terribly-designed user interface would have a checkbox on the annoying modal dialog that says "Never ask me this ever again", and I wouldn't have to go through an unsuccessful wild goose chase through the millions of advanced options searching for a way to turn that dialog off.

The simple preference user interface has checkbox options to disable video and audio. What's the point of that? In fact, those are the first options in the video and audio sections! Who would ever want to disable video or audio in a video player? You already have a volume and mute control, and you can disable video and audio tracks from the menus. So why is that the first option in the simple preferences user interface? Was there a huge demand from novice users for that option? Terrible user interface design.

There are many other things about the UI design that are extremely annoying, a lot having to do with the out of control feature creep and totally uncoordinated committee design. All those advanced options, yet there is no way to set it to always show advanced options every time. Isn't it ironic that it has millions of options, but no option to always show the millions of options by default? Or maybe it's just failing to save the "advanced mode" option. So lame.

It gives me the distinct impression that nobody on the development team gives a shit.

comment 13y ago · link · parent

So why does it have one set of controls in window mode, and a totally different set of controls in full screen mode? Who decided that?

comment 13y ago · link · parent

Strongly disagree. You should fix trivial bugs before you ship the app, and Objective-C silently hiding them from you makes that much harder. It's one of the things I hate about Objective C. Makes it seem more like PHP with warnings off.

comment 13y ago · link · parent

VLC may play lot of videos, but it has the most systematically terrible user interface of any program I have ever seen. Just absolutely horrible, on a level that could not possibly just the results of ignorance and carelessness, but it actually seems to optimized to actively fuck the user on purpose.

comment 13y ago · link · parent

The correct assumption is the more some politician supports the NSA, the dirtier stuff they have to blackmail them with. I wonder what Pelosi's secret is?

comment 13y ago · link · parent

John Gilmore! http://w2.eff.org/Privacy/Gilmore_v_NSA/

"That's the kind of society I want to build. I want a guarantee -- with physics and mathematics, not with laws -- that we can give ourselves real privacy of personal communications."

"The Net interprets censorship as damage and routes around it."

comment 13y ago · link · parent

http://breakingbad.wikia.com/wiki/Gustavo_Fring

comment 13y ago · link · parent

Apple hasn't had much of an experience for developers recently...

comment 13y ago · link · parent

They traded the Fourth Amendment in for two Second Amendments.

comment 13y ago · link · parent

Sounds like PHP or JavaScript!

As Alex Coles @myabc tweeted:

truthy || falsy values – like JS, @BrendanEich also has issues with equality – http://projects.latimes.com/prop8/donation/8930/

comment 13y ago · link · parent

"I'm try'n to think, but nuthin happens!" -Curly Joe

http://www.youtube.com/watch?v=WxtW98VSegk

comment 13y ago · link · parent

But they're phasing in driving on the right in the UK -- first all the lorries, then once everyone gets used to that, the rest of the cars.

comment 13y ago · link · parent

Citi Bike: A Nazi, Muslim Plot to Create a Dresden-on-the-Hudson, Says Frontpage Mag Writer

http://observer.com/2013/06/citi-bike-a-nazi-muslim-plot-to-...

Editorial board member Dorothy Rabinowitz on New York City’s new bike-share program.

http://live.wsj.com/video/opinion-death-by-bicycle/C6D8BBCE-...

"Do not ask me to enter the mind of the totalitarians running this government."

comment 13y ago · link · parent

But how many people actually use non-Oracle Java VMs as the default Java VM in a web browser? Or even as a non-default Java VM?

comment 13y ago · link · parent

Except that their pot will suck like McDonald's hamburgers, since they'll make it out of Green Slime.

comment 13y ago · link · parent

Would you trust it more if it required JavaScript instead of Java?

Why or why not?

Would it matter if the JavaScript code was un-obfuscated and open source?

Java is now owned by Oracle, which has always been and will always be evil.

But there are multiple JavaScript implementations available, so it would be harder for the code to be compromised by a back door in the VM.

And the people developing JavaScript interpreters are generally not as shady and untrustworthy as Oracle. (Although one of them is known to be inexplicably homophobic...)

comment 13y ago · link · parent

Well, it looks like we got ourselves a reader.

http://www.youtube.com/watch?v=BwkdGr9JYmE

comment 13y ago · link · parent

The pop singer faced numerous disagreements with the song's co-producer. Quincy Jones did not want "Billie Jean" to appear on Thriller; he felt that the song was too weak to be part of the collection. The producer disliked the demo and did not care for the song's bassline. Jones wanted to cut Jackson's 29 second introduction, which was the longest one ever created at the time. The entertainer, however, insisted that it be kept. "I said, 'Michael we've got to cut that intro'", Jones later recalled. "He said, 'But that's the jelly!' [...] 'That's what makes me want to dance'. And when Michael Jackson tells you, 'That's what makes me want to dance', well, the rest of us just have to shut up."

comment 13y ago · link · parent

I wanted to launch a Shartcasting site, but OMGPOOP.com was taken.

comment 13y ago · link · parent

Or blow up.

comment 13y ago · link · parent

Mmmmmm, grass!

comment 13y ago · link · parent

There are known IKnowns: there are APIs we know that we know. There are known IUnknowns: that is to say, there are APIs that we now know we don't know. But there are also unknown IUnknowns: there are APIs we do not know we don't know.

comment 13y ago · link · parent

Looks like there's somebody using "dataflow" programming on a large scale: http://www.washingtonpost.com/blogs/worldviews/files/2013/08...

comment 13y ago · link · parent

One thing I love about Forth is that the Forth assembler is implemented in the same spirit as the Forth compiler, which is to say that it's fully integrated and programmable and extensible in Forth! So it has much more than a "macro" facility -- you can write full-fledged Forth assembly macros that assemble any code you like programmatically! And write your own assembler flow control constructs, and stuff like that!

comment 13y ago · link · parent

FORTH ?KNOW IF HONK! ELSE FORTH LEARN! THEN

I love Forth: I don't use it any more, but I'm glad I used it a lot in the past.

Programming in Forth is like doing power push-ups with weights, that make you stronger when you're programming in other languages.

It's a "glass box" and you just have to (and CAN, because it's so minimal) memorize not only the name, inputs and outputs of every word, but even recite their implementations in terms of other Forth words. It's simple and elegant enough that you can understand and get your head around the entire system, in terms of itself!

And then when you're writing code, you also have to remember what is on your stack between every word, which changes with every word, or you write explicit stack comments at the end of every line to keep track of them, if you're weak.

After Forth, programming in other higher level languages that let me (gasp) name my variables so they would stay in one place and be associated with meaningful symbols, instead of having to carry them around in my head and and shuffle them around on the stack, it was like slicing butter with a hot knife!

I did a lot of PostScript programming after Forth, but that was easy because PostScript has dictionaries that you can use for local scopes (and which can be used to implement a multiple inheritance object system like smalltalk's), so naming variables is acceptable, and you could keep the stack pretty shallow. Plus PostScript is just a lot more like Lisp than it is like Forth.

comment 13y ago · link · parent

They counter-sued each other and settled out of court. The terms are secret, but Zynga phased out The Ville.

EA and Zynga Settle The Ville -The Sims: Social Lawsuits: http://gamepolitics.com/2013/02/15/ea-and-zynga-settle-ville...

Breaking: EA and Zynga reach settlement in lawsuit surrounding The Ville: http://www.insidesocialgames.com/2013/02/15/breaking-ea-and-...

No, EA, you are not “standing up for the industry” by suing Zynga: http://www.insidesocialgames.com/2012/08/24/no-ea-you-are-no...

The Ville was obviously a graphical and mechanical rip-off of The Sims, with a thick helping of Zynga Sauce slathered on top.

Having worked on the original version of The Sims, and knowing a bunch of former Sims designers and developers who now or recently worked at Zynga, I thought that The Sims Social was itself, modulo the original Sims stuff at its core, an almost literal rip-off of the cliché "social game" mechanics that are the signature of Zynga's game, but that was EA's sweet and fitting revenge for Zynga ripping off theirs and everybody else's games. (But no, EA wasn't "standing up for the game industry", it was just a bully bullying back at another bully.)

So Zynga copied The Sims and added their own "stuff" on top, then they got mad when EA copied Zynga's own stuff back on top of The Sims to make it into a "social game". Tough shit, assholes! Really sucks when somebody does the same thing back to you that you did to them, doesn't it, huh? The judge must have had a big laugh at both their expenses.

I suppose it's a good thing that they settled out of court, so they didn't established any legal precedents that you can't copy generic game elements.

So if all The Sims Social was meant to do was to screw over Zynga the same way Zynga had been screwing over other companies, then it was a spectacular success, and a brilliant piece of performance art, and parroting all those clichéd design decisions was justified! But was that the best direction to take the Sims franchise in as a game...? Well that's a different question! ;)

comment 13y ago · link · parent

Just want to point out that Russia just passed a law banning "gay propaganda" -- their term for saying anything true or positive about homosexuality. The CURRENT government. Signed by Putin. Passed unanimously by the parliament. Did you ignore that fact because you support that law and don't consider it a violation of human rights?

http://www.guardian.co.uk/world/2013/jun/11/russia-law-banni...

And black people are certainly still widely discriminated against and treated unfairly in the United States. Have you ever heard of Trayvon Martin? The incarceration rates of blacks versus whites? The Republican Party? Its leader, Rush Limbaugh? Voter suppression? The Southern Strategy? I could go on and on. Do you believe that racism is no longer an issue in the United States, because your glorious leader Rush Limbaugh told you so?

comment 13y ago · link · parent

Maybe they will let Dick Cheney shoot him in the face with a shotgun.
1
101112
21