96 karma · joined May 20, 2018 (8y ago) · 55 submissions
comment 8y ago · link · parent
I see writing software to be similar to writing music. Music has rules and structure, but leaves room for creativity and allows two or more highly skilled musicians to be able to play music together and improvise.
Static typing imposes limitations (kind of like government), whereas dynamic typing gives you more freedom (but requires responsibility)
comment 8y ago · link · parent
For me, it's like living in a room where one of the walls has a weird inset, which makes it more difficult to arrange the furniture.
Or like having a picture frame on the wall that is slightly crooked no matter how many times you try to fix it.
Or maybe it's like having a mole or birthmark, and calling it a beauty mark.
Sure you can live with it and just ignore it, but that wouldn't be my first choice.
However if you are willing to boot camp into Windows, you are probably less likely to care about a notch.
comment 8y ago · link · parent
For example, a lot of people want their salmon cooked extremely well done, when you as the chef, think this is wrong, but this is what the customer wants, so you do it anyway, but you no longer care about it.
comment 8y ago · link · parent
I am a programmer and I would never ever get in a self-driving car if I had a choice. I don't trust other programmers, I don't know if a backdoor has been put in by someone, and I don't want to get into a vehicle that can be hacked.
I believe self-driving cars will be a catastrophic failure.
comment 8y ago · link · parent
a) "Brandon, imagine that I f* your wife..."
b) "Brandon, imagine if I cut off your arms and legs one at a time..."
c) "Brandon, imagine if you shot yourself in the back of the head... with a shotgun... twice... and declared it suicide..."
d) "Brandon, imagine if I fed you to the pigs, and they never found your body..."
e) "Brandon, imagine if I tortured you to death..."
f) "Brandon, imagine if the Germans cut your d* off..."
I just don't really get their "sense of humor". Why is (a) funny? It's like when somebody says "that's what she said", it's just not very funny, but I can imagine they say that there.
I've actually never heard of Riot Games before this article, but I don't think I would ever want to work there. Seems like a waste of time.
comment 8y ago · link · parent
Term limits are necessary, there should be no such thing as a "career politician". A politician should be required to have actual skills, and not just a nice smile.
Experience with politics is meaningless, there should be NO establishment. It is always the new guy who reveals the truth to the people, which is a good thing. Experience only results in being able to lie to the public, to further the establishment. Otherwise it becomes us vs them.
People will do anything to maintain power. It should be one year and out, nobody should be able to get rich by becoming a politician.
A good first step would be to get rid of Diane Feinstein.
comment 8y ago · link · parent
comment 8y ago · link · parent
Someone who works a job where they receive consistent tips can make a lot of money, and if it's in cash it's tax free.
Plus the tips never go to the kitchen who do all the actual work.
comment 8y ago · link · parent
If you want to write it yourself in C using Xlib, you can use the 'XMoveResizeWindow' function. You could use 'XGetWindowAttributes' to get the size of the root window.
I'm just not sure if you need a window manager to handle the dialog windows. If you do, I would just use Blackbox.
comment 8y ago · link · parent
The way that I write Objective-C is to use 'id' for everything and have as few classes as possible, mostly I just add methods to the existing classes mainly NSString, NSArray, and NSDictionary.
Objects are interchangeable as long as they can respond to certain messages. For example, any object can be an array as long as it responds to objectAtIndex: and count. There was a whole discussion above about how Objective-C doesn't have generics, but this completely misses the point because Objective-C doesn't even need generics. "Modern" languages are not necessarily an improvement, software generally does not get better over time, it reaches a peak then it declines.
Objective-C is one of the best languages I have ever used, but the vast majority do not understand it, even the ones who say that they used to write Objective-C for X amount of years but now love Swift. The truth is, they never understood the beauty of Objective-C.
I consider Swift to be a language for large teams of average programmers, reading Lattner's response to Swift's criticisms tells me that he is a compiler guy, but that expertise does not carry over at all to programming languages.
I don't really like the direction they were taking Objective-C anyway, so in the end it doesn't matter. I'm against things like dot notation for accessing properties and ARC, I don't use either when I program in Objective-C. Those recent changes end up making the compiler more strict and a pain to deal with.
comment 8y ago · link · parent
A volcanic eruption is more likely to cause the climate to change.
The war on climate change suggests that humans are capable of preventing a volcano from erupting.
The poles are shifting as well.
Pollution is a separate issue, of course we should keep everything clean, but when the climate stops changing, that probably means the planet is dead, like Mars (setting up a colony on Mars makes absolutely no sense either)
comment 8y ago · link · parent
comment 8y ago · link · parent
My feeling is that they were so jealous of Steve Jobs legacy that they had to redesign everything to prove something, and screwed it all up in the process. Maybe it's like having a parent who is very famous and successful and having to live in their shadow.
comment 8y ago · link · parent
https://www.folklore.org/StoryView.py?project=Macintosh&stor...
comment 8y ago · link · parent
I was able to write a prototype version of things like a tableview or image viewer that gets input directly from the touchpad device (that draws straight to an OpenGL texture or pixmap). The problem is that you'll never be able to integrate this with Gtk and Qt, it just doesn't fit together. And working within those two frameworks is kind of hell. Generally, gestures are not discrete, you can go halfway through a gesture and change your mind, but you'll still get graphical feedback from the UI. That's part of the joy of using the touchpad. But it's just easier to write it from scratch than to add it to Gtk or Qt.
For me personally, it's not a huge problem because I generally avoid Gtk and Qt apps if at all possible and make my own UI's, but I don't see it gaining widespread adoption so I don't know if it's worth the effort.