Better HN
topnewbestaskshowjobs
Log inSign up

cryptos

1,795 karma · joined Sep 13, 2012 (14y ago) · 646 submissions

Submissions

comment 11y ago · link · parent

I wonder why they didn't move the main code repo to GitHub as well. https://go.googlesource.com/ is somewhat poor compared to GitHub.

comment 11y ago · link · parent

What about Dell Latitude, e. g. 14 7000 Series: http://www.dell.com/us/business/p/latitude-e7440-ultrabook/p...

comment 12y ago · link · parent

Keep calm. This is not a relevant benchmark for real world scenarios.

comment 12y ago · link · parent

I'd say that this "benchmark" is senseless. Ruby is for sure generally not faster than Java, and C is not about 18 times faster than Go. So no reason to pat any language on the shoulder.

comment 12y ago · link · parent

I was thinking that the Emacs operating system already had a kernel! ;-)

comment 12y ago · link · parent

What is the goal of Paul Philips? He is obviously frustrated by his experiences at Typesafe, but what does he really want? Show us that he can do better? Create an alternative Scala? This seems not be realistic and he seems to be realistic enough to know it. All this sounds like emotional actions from a disappointed ex-lover.

Paul, if you read this: why don't you do something completely different? Leave Scala and your personal rage behind.

comment 12y ago · link · parent

I'm worried about this fork. Scala is far away from being a wildly used industry language. Yes, there are some well known companies using Scala, but how many of them develop a really big part of their software with Scala? Not so much. If you look around you'll see Java, C#, C, C++ (depending on the business) and actually not so much Scala. The ones who think forking Scala does help the community are in a reality distortion field.

Take a look and Linux desktops to see that diversity is not always good, especially if you're in a niche.

comment 12y ago · link · parent

This looks much better, although not as simple as mocking in Java with an advanced mocking tool like JMockit. It could be hard to avoid accidental integration tests with this approach.

comment 12y ago · link · parent

I find the mocking/stubbing in Go awkward. You have to implement all mocked methods, and if you want to record certain calls, you have a lot more code to write.

Let's translate the example to Java:

  public interface Job {
    int getPriority();
    void doWork();  // do is a reserved word
  }
Then, to mock it with JMockit:

  new Expectations() {{
    job.getPriority(); result = 1;
    job.doWork(); times = 1;
  }};
These 4 lines replace all this Go code:

  var Done bool

  type DummyJob struct {
  }

  func (j DummyJob) Priority() int {
    return 1
  }

  func (j DummyJob) Do() error {
    Done = true
    return nil
  }
If you imagine some larger interface, it would be a lot of code in Go. Mocking in Go isn't fun.

comment 12y ago · link · parent

I'd vote for a tree-like structure, where you can actually see the discussion structure (what post is the answer for what post).

611.

The Checker Framework – Pluggable Types for Java(types.cs.washington.edu ↗)

7 points · by cryptos · 12y ago · discuss

612.

Is Sublime still alive?

39 points · by cryptos · 12y ago · 29 comments

comment 12y ago · link · parent

I've spend some time with Go, but never felt overly productive with it. As someone else in this discussion mentioned a simple language doesn't mean that solutions in this language are simple! Look at what real problems you have to solve in you applications, and then tell me that generics in a statically typed language are not important! Go applications are full of useless code to circumvent this restriction. Want to make something immutable? Not very convenient in Go, very easy in most other (statically typed) languages.

While Scala has a complex type system it is a simple language at it's heart. For example try-catch is not a special language feature but another application of the powerful pattern matching. It will take a little longer to learn Scala compared to Java, but you get a much better tool to solve the most problems. And you get all the libraries and the tools (any Go IDE on the level of IntelliJ or NetBeans?) of the big Java ecosystem.

But even if you don't want to use Scala, you could be more productive with Java than with Go. From a Java perspective Go has not much to offer, not even fancy concurrency.

614.

Scala Collections: Why Not?(youtube.com ↗)

1 points · by cryptos · 12y ago · discuss

comment 12y ago · link · parent

I've the same feelings about Go. After working several month on a side project with Go, I have given up, because I've felt not as productive as with Java (not to mention Scala). There are lots of annoying things: missing generics leading to a lot of uselesse code which could carry bugs. Without generics you can not create an Option datastructure, but have to return nil (the million dollar mistake of Hoare). Without generics you can not write concise object/functional code like someCollection.map(i -> i * i). Go has no good support for immutability. Mocking is awkward, because you have to code your mocks by hand. Unicode handling is a pain.

That is why Go attracts mainly people from scripting languages (they get a bit more type safety and better performance) and C (they get a bit more type safety and less errors). Coming from other languages Go is not that attractive. I'm hoping for Rust to succeed.

616.

JMockit – mocks even constructors and final or static methods(code.google.com ↗)

1 points · by cryptos · 12y ago · discuss

comment 12y ago · link · parent

The author of the article should read the book "Specification by Example" (http://specificationbyexample.com/).

It is absurd to complain about cucumber, if cucumber is used for things it wasn't intended to do.

comment 12y ago · link · parent

What a bullshit! The user has no idea that there is a linux under the hood and the user cannot use the power and freedom of linux. Would Android be a proprietary system nobody would care (besides some cyganogenmod users). So Android is not about linux from the end users view point.

comment 12y ago · link · parent

Look for the hard things in software development. To learn a new programming language or framework is not that hard. Software architecture, requirements engineering or the overall development process are hard.

comment 12y ago · link · parent

"REST = HTTP + JSON" is absolute nonsense!

621.

Java template engine like Razor and Play templates(rythmengine.org ↗)

1 points · by cryptos · 13y ago · discuss

622.

Will Java 8 kill Scala?(linkedin.com ↗)

3 points · by cryptos · 13y ago · discuss

comment 13y ago · link · parent

An often overlooked fact is that a lot complexity in the Java world is in the frameworks. You can express many things directly in Scala, for which you would use a Java framework a bunch of annotations (without compile time semantics).

comment 13y ago · link · parent

Method names like ~, %, %% or #> are terrible in Scala! This should be generally banned as bad practice. There are too many developers creating obscure and unreadable code with such method names.

I even thought to create readable adapters for common APIs like SBT API.

comment 13y ago · link · parent

I wanted to say: "it looked to me like a statically typed Python"

comment 13y ago · link · parent

I tried Go for the same reasons. It looked to me like a statically typed Java, but in practice it was not the best experience. The Code is not more expressive than Java, but you lose all the good libs and tools from Java. Most annoying was the in ability to create concise mocks, because you cannot implement interfaces at runtime with Go.

comment 13y ago · link · parent

IntelliJ IDEA 13 will have a real SBT integration.

comment 13y ago · link · parent

I like the emphasis of freedom in the Firefox philosophie, but I must admit that I'm using Chrome more and more. This is simply because firefox has more bugs annoying me. A few month ago there was a terrible font rendering bug in FF for several versions. Chrome never had such bugs. It offers a great userinterface with a unified location and search bar. It is fast. It has amazing developer tools ... and so on. I want to like Firefox, but Chrome makes it sometimes hard.
1
1819202122