HNHacker News
TopNewBestAskShowJobs

soc88

228 karma · joined November 22, 2011

submissionscomments
soc88··on We will try to stop fixing bugs in PHP
In PHP every code is amateur code.
soc88··on We will try to stop fixing bugs in PHP
Why? He said that the design principle of this method is in line with the rest of PHP, that's a correct and valid observation.
soc88··on Static Typing is not enough
Yes, exactly. The author didn't like the original article and decided to throw around some strawmen.
soc88··on Experiment: Unit testing isn't enough; You need static types, too
Yes, I'm full aware of that. I'm not claiming that it tells us the complete and final truth, just that it is an interesting data point.

In my experience a lot of those "I programmed 15 years in Java, get off my lawn" senior developers get angry about Scala. This is interesting, because it isn't that way for other languages running on the JVM like Clojure, JRuby or Groovy.

It is only a speculation why it is like that, but in my opinion it is because alternatives like Groovy, JRuby, Clojure are considered to be some sort of "supplemental" or "add-on" languages by those people, while Scala is seen as full-scale alternative to Java (not in the sense that it will replace Java, but in the sense of "I can write 100% of my application in this language without dropping down to Java for the performance critical parts").

I think it is interesting how different the reaction is compared to C# <> F#, for instance. Is it because Java and C# developers come from different backgrounds? Because F# is "made by Microsoft", while Scala is not "made by Oracle"? Is it because Java developers were happy with Sun telling them that they wouldn't need all those "fancy" features of the .NET languages? I think this would be interesting to discuss further, although I think it is hard to come up with valid data points.

From my experience, most of the claims about "complexity" and "too hard for beginners" come not from people learning the language, but from people with > 5 years of Java experience _not_ wanting to learn another language.

I'm quite ambivalent about the syntactic flexibility. On the one hand, they cut it down for 2.10, but on the other I think it is a superficial measurement. There are a lot of languages with more flexibility and a lot of languages with less, both seem to be alive and well. (Just want to make it clear that I think your stance is totally valid, even if I disagree slightly. Different people have different tastes, and this is a good thing!)

soc88··on Experiment: Unit testing isn't enough; You need static types, too
Interesting. I never perceived Scala to be in a functional niche. As far as I know most people consider it to be an object-oriented language first and foremost, with functional features.

Removing inheritance would have made the language (and every other language, too) a lot easier, but seeing that people cope with C# or Java quite well I'm not sure about the merit of the "complex" claim.

Comparing the C# and the Scala spec is very enlightening, even though they have different writing styles of course (so I won't bother bringing up page numbers).

Checking and realizing which "features" are in one language, but not in the other, is very helpful to gain some insight into this topic.

What do you think?

soc88··on Experiment: Unit testing isn't enough; You need static types, too
I wonder how long it takes until the first one picks Java to argue against typed languages.
soc88··on The Great German Energy Experiment
> The entire waste from a person's lifetime of energy use could fit in a teacup.

Sir, I have no other words for you, but you are a fucking stupid idiot.

I invite you to come here and have a look into Asse. Maybe you even want to move in, because it is so ... uhm ... "empty" down there?

soc88··on The Great German Energy Experiment
> That is air conditioner weather, period.

Whine whine whine

soc88··on The Great German Energy Experiment
> Nuclear plants don't require exotic materials.

Yeah, I bought 1 kilo of Uranium in the supermarket last week. Was pretty cheap.

soc88··on The Great German Energy Experiment
"just when sunburned Germans reach for their air conditioners"

I hope the rest of the article wasn't researched as "good" as this.

soc88··on C vs GO
Sorry, I'm not really sure if you're trolling.
soc88··on C vs GO
Well, I guess will have to agree to disagree here.

From my perspective Scala solves a lot of problems with Haskell:

- Working module system (From my experience, especially people coming from OO languages are surprised that this is such a huge unsolved problem in Haskell, because all the languages they know have come up with a working solution.) It will be interesting if some OCaml-style module system as currently discussed makes it into Haskell.

- It is much easier to reason about space consumption.

- It benefits from the best general-purpose VM with its superior garbage collection algorithms. (I agree that the lack of VM features is deeply annoying.)

- Tons of tools for monitoring.

- Debuggers. I'm not certain that Haskell will ever have decent debugging capabilities, taking its approach to laziness and compilation into account.

- Exceptions which don't leave the developer wondering where exactly an error has occurred. (Stack-traces, anyone?)

- Libraries for basically everything. Even if you don't use them, you can have a look at how other developers have approached a certain problem.

- Tool support. The Scala IDE alone has 10 people working on it. Compare it to Leksah and EclipseFP.

- Commercial support. Scala has Typesafe (> 30 people) and dozens of partners, consultancies, etc. In Haskell, there is Well-Typed, which is more or less payed by the “Industrial Haskell Group” (which consists of Galois and Amgen).

- The REPL is just a lot more usable.

I don't have any problems with the compile time. When developing in Eclipse there is just no delay between pressing “Run” and the execution of the program. It is instantaneous.

Syntax ... well, that's a completely subjective topic.

“terrible dependency/package/module management” ... SBT delivers a top-notch experience here. Have dependencies as source on sites like GitHub? SBT will fetch and build them without problems. Need to deploy artifacts into the local repo, to Maven Central or other services? SBT will happily do that. Need to cross-compile to different versions? Easy. Want to build software for Android? SBT will compile, jar, proguard, dex and install it on your device in seconds. I would love to hear what you would like to see here!

“semantically an inferior language”: Well, I guess every language is inferior to Haskell. I appreciate the hard work done in Haskell to track side-effects and other things. While I don't think these exact approaches will ever see much adoption, it leads the way to more manageable approaches. I'm pretty sure computer science will come up with some great solution in the next decade and Haskell will play its part here.

“less powerful language”: Well, it depends on what you mean with “Haskell”. “Haskell” == the Haskell standard? Scala is a lot more powerful than that. “Haskell” == GHC with all its proprietary extensions enabled: Yes, probably.

I don't think Go is really comparable with Scala or Haskell. It feels a bit like it was designed in an ivory tower. It is certainly a nice language if you ignored the last 20 years of progress in language design and have never used anything except C.

Let me know what you think and if I missed something!

soc88··on C vs GO
Details, please.
soc88··on MacBook Pro gets Retina Display; MacBook Air updated with Ivy Bridge
Two extremes don't make it right.
soc88··on MacBook Pro gets Retina Display; MacBook Air updated with Ivy Bridge
I guess the “Retina Display” is the admission that they never figured out how to do decent font rendering?
soc88··on Germany, Not Greece, Should Exit the Euro
Interesting, but not much different from the age-old concept of a "North"-Euro and a "South"-Euro.
soc88··on Ten reasons to use PHP
Is this irony?
soc88··on Turkey charges pianist Fazil Say over Twitter posts
He's an atheist, so nothing wrong about it for those in 'MURICA.
soc88··on US and Israel created Stuxnet, lost control of it
Why not stop making enemies instead of creating and building ones end then trying to kill them again?
soc88··on McLaren F1 Developer Designs New Auto Driving 100 MPH on 96 MPG
> 100 MPH on 96 MPG

WUT? Translation for the civilized world, please.

soc88··on Python vs. Processing as a First Language
Absolutely. A lot more than Java, in fact.
soc88··on Python vs. Processing as a First Language
There is also SPDE for people who prefer a superior language with all the benefits you mentioned.
soc88··on Python is a voluntary language
Did you consider Scala? From my POV it could fit your bill pretty well.

It has tons of data structures for pretty much every usecase, and even lists the complexity of various operations. All the data structures share the same API so replacing one with another is fairly painless.

2. — 8. are all no problem in Scala and running on the JVM means not having to worry about speed or stability anymore, while having all the superior tools of the JVM ecosystem for monitoring and debugging available to you.

9. Macros will ship as an experimental feature in 2.10, to make sure everything can be adjusted and fixed as necessary before declaring it stable.

10. Perl 5/6 is still ahead in Unicode, but judging from the Unicode presentation by Tom Christiansen the JVM is more or less on the second place, which fits with my experience.

Overall Scala is a impressively well-designed language imho, although some people really dislike that it doesn't restrict method names like Java does.

soc88··on (Some) ORM haters do get it
Absolutely right!
soc88··on (Some) ORM haters do get it
The idea of translating the declarative way of doing things to an imperative approach (that's basically what ORMs are doing) is imho a huge failure. It just never worked decently.

These days, we have languages which integrate rather nicely into the declarative mindset, so no need anymore for such bizarre "paradigm translators".

soc88··on (Some) ORM haters do get it
If Hibernate is one of the "proper" ones, then I can happily declare ORMs to be a non-working, time-wasting, over-complicated POS.
soc88··on German Police Used Only 85 Bullets Against People in 2011
> So, either America has no: [...]

If I would keep making fun of American exceptionalism I would propose striking the "either". :-)

> It would be most beneficial to all of us to politely ask how we can improve each others' lives [...]

How about stopping to kill people for a start? :-) Civilized countries managed to resist that urge decades ago, why not the US?

___

So, don't take these remarks serious. It just amuses me how many people behave as if they are personally offended. C'mon guys, it is just an arbitrary line on a map. :-)

soc88··on FreeBSD 10 to use Clang, GCC will be deprecated
I guess I'm just not living in such a companies-are-people and everyone-sues-over-shit country.
soc88··on German Police Used Only 85 Bullets Against People in 2011
That's probably the dumbest thing I've read this year and the year is far from over. Congratulations.
soc88··on German Police Used Only 85 Bullets Against People in 2011
Can you point to the "provocative" part? I don't see it...
← PreviousPage 2 of 8Next →