Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LnxPrgr3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
211.
▲
by
LnxPrgr3
14y ago
Your point? Using inheritance the way he's suggesting is a rookie mistake. Either that, or I'm completely misunderstanding him. He can't be talking about hating composition, though, can he? He uses it in his own Erlang examples!
212.
▲
by
LnxPrgr3
14y ago
I for one wish every working programmer would watch and understand this presentation. A link, for the lazy: http://www.infoq.com/presentations/Simple-Made-Easy
213.
▲
by
LnxPrgr3
14y ago
Fair enough. In most cases, it's probably more "suboptimal for the task at hand" at worst. For some reason, anything like this turns into a crazy holy war. At the risk of invoking another holy war: "For these people, the iPad is unsuitable
214.
▲
by
LnxPrgr3
14y ago
I'm all for proper rants against popular tools to keep people on their toes. This isn't one of those. "Objects bind functions and data structures together in indivisible units. I think this is a fundamental error since functions and data st
215.
▲
by
LnxPrgr3
14y ago
Every time someone says $commonly_used_thing sucks, people come out and point out that $commonly_used_thing is being used for $productive_activity. It is possible to do amazing work with broken tools, or with the wrong tools. That doesn't
216.
▲
by
LnxPrgr3
14y ago
The only thing you have to provide is low-resolution versions of your graphics, assuming you don't need the newer hardware for some reason. The layout's still exactly the same. iOS has two screen sizes, with a third rumored. Apps on that se
217.
▲
by
LnxPrgr3
14y ago
Gruber is arguing that there won't need to be a redesign for a smaller iPad because, if developers followed Apple's recommendations, touch target sizes on the smaller iPad will match the iPhone. Unless your app depends on the physical size
218.
▲
by
LnxPrgr3
14y ago
And in C++, a variable is either declared as a reference and acts like one, or it's declared as a value and acts like one. It can't change behavior halfway through a function. (Well, ignoring operator overloading anyway… you could conceivab
219.
▲
by
LnxPrgr3
14y ago
No, I do understand references. I'm just trying to explain how references in PHP are very, very different from references or pointers in any other language I'm aware of, and how they could be confusing to people who know other languages wel
220.
▲
by
LnxPrgr3
14y ago
Sure, but you defined ptr outside of the loop. Who defined $object outside of the loop in the PHP example? Also note that, in C, you have to explicitly dereference pointers: ptr = 42; You should get a warning from your compiler if yo
221.
▲
by
LnxPrgr3
14y ago
C lets you define variables with block scope: int main(int argc, char *argv[]) { for(int i=0;i<10;++i) printf("%d\n", i); printf("%d\n", i); } The last line fails to compile—'i' is no longer defined after exiting the
222.
▲
by
LnxPrgr3
14y ago
If I'm picking a language for a new project, I don't care about barriers to adoption, as long as they're low enough that I and anyone else I'm trying to work with can get through them. I do care about the language having at least something
223.
▲
by
LnxPrgr3
14y ago
To be fair, it looks like it was fixed for a while, before resurfacing in 2006 and being ignored for the next 6 years.
224.
▲
by
LnxPrgr3
14y ago
If we're going to have amateurs doing things like this, we should at least give them the tools to do it safely without having to know too much, since they're not going to learn more than they have to in order to make something that looks go
225.
▲
by
LnxPrgr3
14y ago
The problem is programming is still hard, even in 2012. PHP makes it look easy enough on the surface, but people skip learning all the other stuff you have to know to be a competent programmer. They're often completely unaware that they n
226.
▲
by
LnxPrgr3
14y ago
This is definitely a problem, and not just for PHP. Check out this section from a C++ tutorial: http://www.functionx.com/cpp/examples/returnpointer.htm . The author is very clearly confused by even the basic rules of C++, yet he's out ther
227.
▲
by
LnxPrgr3
14y ago
Still my favorite PHP bug story: http://use.perl.org/use.perl.org/_Aristotle/journal/33448.ht... Though this one isn't far off: https://bugs.php.net/bug.php?id=18556 .
228.
▲
by
LnxPrgr3
14y ago
The arguments I've read supporting PHP scare me a little. They seem to boil down to a few things: * It's not so bad, really. Here's a map of land mines to avoid. Hopefully it's complete! * PHP is everywhere. Apparently COBOL and Visual Basi
229.
▲
by
LnxPrgr3
14y ago
This is just amazing, and it makes me glad I haven't bought a Linksys product since the merger. Enough parties can already track what we do online. Why should we pay Cisco for the privilege of adding them to that list?
230.
▲
by
LnxPrgr3
14y ago
If all your friends jumped off a bridge while programming in COBOL, would you follow them? If Visual Basic was a popular language, did that make it good? Maybe PHP Addiction is real: http://www.marco.org/2012/06/29/php-addiction . It does
231.
▲
A Fractal of PHP Rants
(codeanarchy.com)
2 points
by
LnxPrgr3
14y ago
|
0 comments
232.
▲
by
LnxPrgr3
14y ago
Mobile devices can cope with even less client-side logic than real computers can. Why would mobile devices lead to pushing more work onto the client? Disclaimer: I'm not one of the downvoters.
233.
▲
by
LnxPrgr3
14y ago
http://engineering.twitter.com/2012/05/improving-performance... Discuss.
234.
▲
by
LnxPrgr3
14y ago
There's no denying PHP's popular, but that doesn't mean it's the best tool for the job. Most of the arguments I see against it though are really problems with the programmers using it. "Look at this horrible code I have to put up with! The
235.
▲
by
LnxPrgr3
14y ago
Nothing will satisfy everyone. Stack Exchange is great at serving people who want to ask and answer well-formed questions with specific answers. It doesn't even pretend to be good at serving people who want to have long, open-ended discussi
236.
▲
by
LnxPrgr3
14y ago
The original intent of a startup doesn't matter much if your real goal is just to get a lot of users and sell them to advertisers. Then, who cares what you build, as long as it attracts users? The original intent matters a lot more if your
237.
▲
by
LnxPrgr3
15y ago
Did I just come out of a 40-day coma? What month is this? "Android was designed for touch only, and has its hands full winning the tablet wars." Be careful. I think Steve Jobs might've patented the reality distortion field. "The Ubuntu desk
238.
▲
by
LnxPrgr3
15y ago
THIS! It would've been nice if C came with real string support, but it didn't. Instead, we're stuck mucking around with character arrays. All the built-in functions expect null-terminated strings, but many functions don't guarantee they'll
239.
▲
by
LnxPrgr3
15y ago
Zed's Twitter killfile must be a mile long if this got me into it: https://gist.github.com/9efed904a1ea0902c7c7/213de692d29fdde... He's right though. This really is a silly argument. Your life will almost certainly be better if you forget