Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gdp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
151.
▲
by
gdp
17y ago
Well, I think it's reasonably intuitive to think that way. It basically involves asking yourself the questions - "what types of values am I interested in?" "what types of results do I expect?" and finally "how do I get from input to outpu
152.
▲
by
gdp
17y ago
It depends on the situation, but I generally think in terms of pure (recursive) functions and types. This then usually provides me with a reasonably quick mapping to my preferred languages (e.g. ML or Haskell), as well as providing a reaso
153.
▲
by
gdp
17y ago
This sounds like a good rationale for increasing usage of domain-specific languages. I assume this is why software like Matlab and Mathematica (and even more domain-specific packages built on top of them) are very popular within many scien
154.
▲
by
gdp
17y ago
I have no idea what about this you think would be 'elegant'. It's elegant in the same way that using computed offsets into raw memory is elegant in C, which is to say that it's inherently fragile, prone to very subtle bugs, and detrimental
155.
▲
by
gdp
17y ago
> Having a blog about programming languages and formal methods I understand the basis of your disgust with PHP. In a perfect world all programming languages would use robust type systems and be capable of formal verification. PHP makes
156.
▲
by
gdp
17y ago
Sigh. Must we? This kind of large-scale dynamic behaviour tends to go wrong even in languages that provide type-checking and sensible lexical scoping. In PHP it's basically just a recipe for the kinds of untouchable "black magic" code th
157.
▲
by
gdp
17y ago
I think it serves a purpose very similar to "I am a member of your constituency" when writing to a congressperson in the US - basically saying "you should consider what I say because my relationship to you is _____".
158.
▲
by
gdp
17y ago
Definitely horizontal. I have a basic algorithm for garbage collection though: When there is no more room for new stuff to be laid out (i.e., it would introduce structural unsoundness into the heaving mass that covers my desk), I sift thro
159.
▲
by
gdp
17y ago
It's a petition to the Prime Minister of the United Kingdom, so Commonwealth status is unlikely to have any meaning, because he has nothing to do with the Commonwealth (except for happening to be the leader of a member country). However, wr
160.
▲
by
gdp
17y ago
Thanks for that. So there is a commercial version of the IDE that basically has more features?
161.
▲
Making money from programming language design
(plsadventures.com)
2 points
by
gdp
17y ago
|
4 comments
162.
▲
by
gdp
17y ago
As has been pointed out here before, Google are essentially a customer in this situation, therefore they are under no real obligation to keep buying ad impressions from you, so I'm not sure 'lost revenue' liability would be particularly f
163.
▲
by
gdp
17y ago
For instances like these, I would happily pay $x per minute to talk to a real person. A high call charge would prevent random crazies from calling (e.g. "why isn't my website top of the search rankings!?!?"), but would at least give the cha
164.
▲
by
gdp
17y ago
That was exactly my reaction when I read it: "Maybe I'll never have to setup netbooting ever again!"
165.
▲
Netboot.me - Turning netboot into internetboot
(blog.notdot.net)
37 points
by
gdp
17y ago
|
7 comments
166.
▲
by
gdp
17y ago
Interestingly though, in conversation with a road safety researcher, apparently texting is not as bad as talking while driving. This doesn't negate the fact that texting while driving may be dangerous, but apparently because unlike talking
167.
▲
by
gdp
17y ago
So I've only looked in passing at Scala, but I've certainly heard first-hand from several people who are forced to code Java on a daily basis that they have managed to use Scala for bits of their system. They all claim that their lives got
168.
▲
by
gdp
17y ago
The presence or absence of anonymous functions is the deciding factor in terribleness now? I guess that makes PHP non-terrible, right? (and yes, I'm being sarcastic)
169.
▲
by
gdp
17y ago
The "missing the point" argument is a little bit easy. It's not that I don't understand OOP - I do, and I've done far too much of it. I understand it, and I reject it as a useful paradigm for any of the classes of program that I would lik
170.
▲
by
gdp
17y ago
> Real-world objects don't have this property -- it would be like the gas tank hatch disappearing from my car after I fill it up, and reappearing once I drive around for a minute. The entire point I was making in the article was that
171.
▲
by
gdp
17y ago
In kragen's defense, we do know each other (from the internet), and we argue about these sorts of things to no end. So there is a discernible reason, it's just probably not obvious to the casual observer :) All of these properties of functi
172.
▲
by
gdp
17y ago
Well outside my field, but I believe this is a reasonably well-established problem in text processing/NLP, known as "Sentiment Analysis" - http://en.wikipedia.org/wiki/Sentiment_analysis My very brief google scholar search on that key phr
173.
▲
by
gdp
17y ago
I think you're reading wayyyy to far into this. I wasn't making a this-versus-that argument. I was having a rant about X being totally unfit for the purpose for which it is sold (in this case, X is 'OOP' and its purpose is 'modeling syste
174.
▲
by
gdp
17y ago
Apparently blogger's automatic spam-detection system didn't like the flood of traffic that suddenly hit the blog as a result of this article making the front page. I've requested it be fixed, so hopefully that message won't stay there for
175.
▲
by
gdp
17y ago
That's quite a nice idea! I certainly hadn't thought of that. I would upvote this several million times if I could. Another thing that sometimes makes sense is Model-Based Testing (I was involved in the ModelJUnit project - http://www.cs.
176.
▲
by
gdp
17y ago
> Who on Earth writes a Bike class? http://java.sun.com/docs/books/tutorial/java/concepts/inheri... http://www.novio.be/blog/?p=621 http://www.roseindia.net/software-tutorials/detail/9172 The 'Bike' is a very common example used
177.
▲
by
gdp
17y ago
Your examples ignore the way that data encapsulation is used though. You can inspect the position of the gear lever in your car before deciding what to do next. A vector rotation relies on no external state whatsoever. A better example wo
178.
▲
by
gdp
17y ago
> Instead of "hiding", think of encapsulation as "organizing". You can organize verbs, most of the time, by the parts of program state they deal with. Isn't that reinforcing the point that the main way that OOP is useful is for name-s
179.
▲
I laugh at your puny human 'objects'
(plsadventures.blogspot.com)
30 points
by
gdp
17y ago
|
53 comments
180.
▲
by
gdp
17y ago
I have to step in here to defend "non-trivial". Perhaps it is abused as a term by the population at large, but I'm reasonably sure it has its roots in theoretical computer science and maths. It has a meaning that is distinct from "complex"
More ›