News for hackers. Stuff that matters.

fedesilva

Re:Show HN: DeskGap – Like Electron, but uses the system webview on Wednesday February 13, 2019 @06:40AM (#19152302)
At least for me, webapps are just 1 in a thousand tabs open in 500 browser windows (ok, I exaggerate a bit). For an app with it's own window I can just hit a shortcut and said app gets focus. Disclaimer, not an Elektron fan.
Re:Show HN: DeskGap – Like Electron, but uses the system webview on Wednesday February 13, 2019 @06:36AM (#19152286)
About 6k+ people use it in my org - the vast majority are not devs.
Many people cross the Atlantic every year in relatively (not like this) small boats every year. There are common procedures and knowledge available to people that do that, see here for example: http://www.yachtingmonthly.com/archive/arc-safety-checklist-...

Examples of gross negligence: being dismasted in low or moderate wind conditions because lack of maintenance to the rigging and/or motor failing because of lack of a fuel filtering system, departing when conditions are obviously not favorable (wind against current in the Gulf Stream off the US coast).

There is no such thing as a clear line but it can be established for each case I think.

Re:Apple Has Removed Dash from the App Store on Wednesday October 05, 2016 @06:42PM (#12648593)
The lazy approach is probably way cheaper. Unless the social media shit storm is too big in which case they can correct after the fact.

Not saying it is ok to do it. Just that business will always pick the cheapest option they can get away with - that is, that does not affect the bottom line.

In my case its the contrary; it's the changes in patterns that distract me; the brain can move repetitive sounds to the background.

I don't play the same song but play repetitive music, also I use mid-tempo and up so I don't get sleepy.

Re:Scala: Where it came from, Where it's going on Tuesday March 17, 2015 @06:38PM (#9222123)
"Knowing LinkedIn is saying "enough" is a real breather for me. At this point, I can stop. Hopefully it will trigger a chain reaction, and leave Scala for the academics."

You later speak of "hate" while justifying on the decision of one company your dismissal of a whole ecosystem. The chain reaction comment was tasteless and in no way looks like an opinion trying to make the platform better as a community.

If you don't like it, drop it.

Also FWIW in my experience with academics, most of them use Python, go figure.

-- EDIT

I don't usually reply to comments like this one but this time I could not resist. Sorry.

Re:Ask HN: Scala usage? on Thursday February 19, 2015 @11:13AM (#9074779)
I would say that is because neither you nor the original authors had an idea of how things work (thread scheduling, etc).

Good for you if you rewrote it and it did solve your problems. Obviously it was not such a huge task, if it was, learning how to control those things would have been wiser.

In this specific case 'dispatchers' is what you were looking for (http://doc.akka.io/docs/akka/snapshot/scala/dispatchers.html) and it is quite flexible.

Re:Scala.js no longer experimental on Thursday February 05, 2015 @02:51PM (#9005517)
But this applies to any javascript program (or compiled to javascript). If you have specific requirements then scala.js is not the tool. Scala is.
Re:Avoiding Complexity with Go on Friday October 17, 2014 @01:23PM (#8472093)
I agree with you. There is a difference between simple and simplistic. Easy is not always simple.
Re:Scala: the Case for Correctness on Wednesday October 15, 2014 @09:35PM (#8462834)
It's true what you say about libraries and turtles. Still it's rare the event when I get an NPE from my/our code.

Sometimes think I would love to have a layer between us and Java. Some sort of FFI which returned everything on an Option.

Probably too cumbersome, but still ...

Re:Scala: the Case for Correctness on Tuesday October 14, 2014 @10:58PM (#8456988)
You can always use Option() as in:

scala> Option(System.getProperty("kaboom"))

res1: Option[String] = None

then map, getOrElse or fold at will.

(edited format)

Re:Official Go support on Wednesday September 24, 2014 @08:36AM (#8361087)
In my experience most people won't even learn the ins and outs of the "for those who can't" languages. Worst yet, it's not about the language: most people won't grasp more important concepts that maybe "for those who can" languages force them to know upfront. And clearly while not knowing upfront some things is easier in the short term, it is a recipe for disaster as problems get more complex. So maybe it's about problems "for those who can" and "for those who can't".
Re:Announcing Calibre 2.0 on Friday August 22, 2014 @08:03PM (#8214493)
Open source does not mean "Accept All Patches At All Costs", it does not even mean accept any patch at all.
Re:MySQL: Why “My”? on Friday August 22, 2014 @11:36AM (#8212555)
My experience tends to be that distro packaged software is not always what one ends up using in production. Except for some base packages when you start doing more sophisticated deployments. Distros may backport bug fixes and specifically security fixes but they tend to be several versions behind.
Why did you have to write the same function again and again? I guess polymorphism would have helped, would it not? Not knowing too much c++ I can't really comment so I guess I am asking for a clarification.
Re:Nimrod: A New Approach to Metaprogramming [video] on Thursday January 16, 2014 @03:47PM (#7072431)
I hear people saying this all the time. Why? For me they are similar to type-classes+records but without polymorphism. Care to elaborate?
Re:Nimrod: A New Approach to Metaprogramming [video] on Thursday January 16, 2014 @03:45PM (#7072410)
No. It has polymorphism and metaprogramming, things that Go (at least parametric polymorphism) eschews.
Re:Nimrod: A New Approach to Metaprogramming [video] on Thursday January 16, 2014 @03:42PM (#7072391)
If I understand correctly once you stop using the GC, Nimrod is not memory safe. Rust is.
Re:Web Framework Benchmarks Round 7 on Thursday October 31, 2013 @08:06PM (#6650972)
There are several servlet containers listed, that is as plain as JEE can get, isn't it?
Re:Facebook is using D in production starting today on Saturday October 12, 2013 @10:07AM (#6538772)
I wrote a simulation software to test a product in my previous job which used akka mostly but also used AHC which is a plain java http client library without problems. Size-wise the code would periodically get more features but by refactoring often it never got beyond 2500~3000 LOCs. Readability was never harmed; Scala - contrary to what some people think - allows for very clear code. People that inherited the code is working on adding features. Obfuscated code can be written in PHP if you want (or are unable to do otherwise). Another piece of scala software was an internal web service written using unfiltered on jetty. It's so stable sometimes I just forget it's there.
Re:TextTeaser – An automatic summarization algorithm on Saturday October 12, 2013 @09:30AM (#6538668)
Curiously, I find easier to read the scala code than the commented pseudo code. I've been experiencing this a lot lately. It' seems I am loosing my ability to reason about code that loops explicitly.

One minor nitpick that can be of help when dealing with tuples: A partial function ( {case xxx => yyy} ) is a Function1 so you can use it with map and filter. This way you can deconstruct tuples into names and avoid using _1, _2, etc. { case (name, value) => blah }

https://github.com/MojoJolo/textteaser/blob/master/src/main/... could be made more readable by giving names to the tuple elements.

Thanks for publishing this code. It yields impressive results.

Re:Scaling Django to 8 Billion Page Views on Tuesday October 01, 2013 @07:55AM (#6475519)
[Disregard, I read your post again after a coffee and in a normal screen. Sorry]

I don't understand "yet passing an object by value is only one character off from passing it by reference".

Is that Go?

Re:Scaling Django to 8 Billion Page Views on Thursday September 26, 2013 @08:04AM (#6450127)
"* Lack of parametric polymorphism means there's no useful higher-level functions like map, fold, etc."

This is one of my problems with Go, too. This will add line after line of repeated code in the long run. Time will tell.

Re:Scaling Django to 8 Billion Page Views on Thursday September 26, 2013 @07:53AM (#6450096)
"And if you screw up or forget to change it, your local modifications to the object are silently ignored. "

Since I started writing Scala I got used to immutable data and the reverse happens to me when coding in imperative style in other langs; that I pass something and it gets "locally modified" feels awkward. Preposterous even.

Regarding Go and the "also the anti-Java" part: I really don't think so.

They have made some decisions that seem to me a reaction to c++ and that at least is similar to Java. Some of them seem simplistic not simple: for example "There is no inheritance!" (one one one) but I really don't know how implicit structural subtyping will work out in the long run.

What I really envy from Go is the "compile and link to one executable" from an ops point of view.

Time will tell.

[Edited to add envy part, and rewrite a phrase]

Re:Big Programming, Small Programming – Glow, the language on Tuesday September 17, 2013 @08:09AM (#6398771)
When faced with a JS problem in a SPA - around 6 years ago - I had a representative from a client say me "wait, I will install the latest JAVA and see if that fixes it". He even chose the jdk to be safe.
Re:Ask HN: Dealing with a huge MySQL database - help on Sunday September 08, 2013 @12:07PM (#6349159)
I would put Percona higher in that list if you have the money.
Re:Ruby Tips Part 1 on Monday September 02, 2013 @05:47PM (#6317371)
Maybe it's old age but I find that annoying too. Looks pretty but is unreadable.
Re:Scala 2.10 now available on Tuesday January 08, 2013 @08:11AM (#5026016)
I always assume undefined is wrong.
Re:Scala 2.10 now available on Tuesday January 08, 2013 @08:11AM (#5026013)
Interesting, I never had this happening to me, and I have not tested your example, but I'm bookmarking this to try some time later. Can you confirm this is a problem with sbt 0.13?

Thanks for taking the time to make and example.

Re:Scala 2.10 now available on Friday January 04, 2013 @11:21PM (#5011576)
Correct.

Older »