914 karma · joined Sep 12, 2010 (16y ago) · 607 submissions
comment 13y ago · link · parent
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
comment 13y ago · link · parent
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
comment 13y ago · link · parent
"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
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
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
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
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
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
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
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?