Better HN
topnewbestaskshowjobs
Log inSign up

felipehummel

198 karma · joined Apr 10, 2011 (15y ago) · 41 submissions

Submissions

1.

AI versus Microservices(michaelnygard.com ↗)

3 points · by felipehummel · 6mo ago · discuss

comment 1y ago · link · parent

That's the best and succinct description of using ChatGPT for this kind of things: it's a floor raiser, not a ceiling raiser.

3.

Where's My Feedback Loop?(felipehummel.com ↗)

1 points · by felipehummel · 3y ago · discuss

4.

The Value of Canonicity(building.nubank.com.br ↗)

3 points · by felipehummel · 5y ago · discuss

comment 9y ago · link · parent

That's no true at all. The syntax is pretty similar with few key differences. The idea is for dotty to become Scala 3.0. But, in the meantime, the next Scala 2.* versions will pave the way for 3.0. Meaning to avoid too many breaking changes in 3.0.

The above has been said repeatedly by Martin Odersky (creator of Scala) and the folks on the Scala compiler team in talks and discussions.

6.

Why Node and Scala will dry up: Go will drink their milkshake(devslovebacon.com ↗)

4 points · by felipehummel · 11y ago · 2 comments

7.

Elasticsearch node crashes can cause data loss(github.com ↗)

112 points · by felipehummel · 11y ago · 50 comments

comment 11y ago · link · parent

You may try out using Scala as script language like this: "scala myScript.scala". The first startup times are slower, and even after that it may be slower than Python/Ruby but it still may be sufficient for your use case.

Using "sbt ~run" (re-runs your program automatically at every file change) may also be an option.

comment 12y ago · link · parent

Although named arguments are good, you won't use it in all function calls.

comment 12y ago · link · parent

Can you elaborate on this: "and to handle all cases..".

comment 12y ago · link · parent

From my brazilian perspective it's very strange to read this. In Brazil, vacation is mandatory by law. Any employee has 30 days of vacation by year. But the moment the employee goes on vacation and how he does it (30 days straight, 15-15 days, 20-10...) is still discussed previously with the employer.

I'm not judging which one is better, just acknowledging the culture difference.

comment 13y ago · link · parent

Not really a natural law, but medicine from time to time finds out that working too much or sleeping less or not having time for pleasure/fun/family hurts your health.

comment 13y ago · link · parent

You can actually make it automatically convert in both directions with just an import. But it is good practice to do it explicitly. In my opinion, for a typesafe language, this is a good way to do it.

comment 13y ago · link · parent

I think "distributed" in this context is about multiple machines/servers. Not multiple plataforms.

comment 13y ago · link · parent

A few suggestions: you could remove this kind of idiom: .map( result = { ... }) In the blocking commands example the snippet resembles the Javascript callback hell when it could be simpler to read: https://gist.github.com/felipehummel/6187248

Also, even simplifying it, it still seems overcomplicated. The returning type: Future[Try[Option[(String, ByteString)]]] is too much. Can't you remove the Try or the Option? Futures can already hold either a Sucess or Failure, so isn't the Try redundant?

16.

Inside Search: Discover great in-depth articles on Google(insidesearch.blogspot.com.br ↗)

1 points · by felipehummel · 13y ago · discuss

comment 13y ago · link · parent

Chrome in OS X here and it all seems fine.

comment 13y ago · link · parent

Comparing Pattern matching to "ifs and elses" shows that, saddly, he didn't really understand its power.

Also, his opinion on Options seems to forget its advantage that the compiler won't let you use a "nullable" object without proper care. It is the main thing about it.

From the talk, it seems that he was new to Scala, didn't properly understand its concepts, wrote a bunch of spaguetti code and then blamed the language.

comment 13y ago · link · parent

I didn't understand what it is supposed to do.

comment 13y ago · link · parent

It hasn't been a real problem for me. But I cant say the same for every kind of program developed in Scala. I'm not saying that it is not a problem and I dont recognize it. Its just that, for me, the problem is much smaller than some people here seem to think.

Maybe I've waited too long too many times for gcc to compile C/C++ that when I went to Scala I thought waiting some seconds to compile is okay =P

comment 13y ago · link · parent

How many times you do full recompile during a day? I'm curious because in my workflow I rarely do full recompile.

comment 13y ago · link · parent

Just use sbt ~compile. It will compile every time a file changes (only what is needed) . I've been using Scala full time for a year now, and I've never been bothered by compiling time.

comment 13y ago · link · parent

One simple example of Scala power is the greatness of the Future pattern (scala, akka, finagle/twitter and other implementations).

You can still have the exact same Futures functionality in Java, but they will be so much more verbose and annoying to use that it ends up not being a good idea.

comment 13y ago · link · parent

Scala compilation is indeed slow (although I think C++ is worse). But I always have a "sbt ~compile" running, compiling every file as they change. So the compilation time is pretty much irrelevant to me. While using eclipse, I guess, you'd get the same speed too.

comment 13y ago · link · parent

The "much harder to read" varies greatly between codebases. Most "sane" codebases are 90% (random percentage) as easy to read as Java. Just collection initialization, transformations, simple pattern-matching, method invocations... Some times there is an ugly nested flatMaps/maps/filters. But in my experience, in general, they're more the exception than the rule.

comment 14y ago · link · parent

Can you elaborate on how you merge clusters? Many times a clusters will be just single-doc clusters, how to check if you need to merge two single-doc clusters? (it seems like the same process that was done in the first place to create the clusters: doc x doc similarity)

27.

Ask HN: What are the pros/cons for developers leaving Ubuntu/Linux for Mac OS X?

2 points · by felipehummel · 14y ago · 3 comments

comment 14y ago · link · parent

saturdaysaint said GUI.

comment 14y ago · link · parent

Siri has pretty much no interface. The AI/data part of the problem is much, much harder.
12