HNHacker News
TopNewBestAskShowJobs

SanderMak

4,031 karma · joined August 5, 2011

Author of Java 9 Modularity (O'Reilly): https://javamodularity.com
submissionscomments
SanderMak··on 9m.no – Short URLs for the Unicode Age
Twitter shortens every URL regardless and reserves 23 chars (I believe) for each link in a tweet.
SanderMak··on Take It to the Limit (2010)
If you're fascinated by infinity, you should check out 'Infinity and the mind' by Rudy Rucker. It really puts the concept of infinity in it's historical perspective and even contains a unique conversation between Rucker and Godel. (shameless plug: I wrote a review on my blog http://branchandbound.net/blog/bookreview/2013/01/bookreview...)
SanderMak··on The Road to React 1.0
I tried using https://www.npmjs.org/package/gulp-changed, but couldn't get that to work in the timebox I allowed myself. Also, just passing the changed file to the typescript compiler would probably not work in our case (since we also need to pass in our type definitions in the same compiler pass), and recompiling a single file might lead to errors in a different file importing the changed file that you would miss with this setup...

The tsc executable does have a -watch flag itself for incremental compilation, which presumably takes into account these dependencies. So may be the solution is to use that outside of gulp (since gulp-tsc doesn't seem to be able to launch the compiler in watch mode).

SanderMak··on The Road to React 1.0
WebStorm from JetBrains has good TypeScript support. You could look into that as VS alternative.

Another question: our TypeScript compile-times are approaching 5/6 seconds whenever gulp watch triggers. Imo this is too long for a workable frontend workflow. Did you guys find a way to incrementally compile TS with gulp?

SanderMak··on Show HN: Softcover – A publishing platform from the author of the Rails Tutorial
Indeed. So as somebody who justed started thinking about self-publishing a book, that raises a question. Should I go with the 'established' platform or this upcoming platform that seems more advanced? Will I suffer from a lack of recognition by potential buyers? Are there other non-technical (financial) differences between the two?

Looks like it's time to start reading and comparing.

SanderMak··on Mt.Gox Withdrawals
kraken.com
SanderMak··on My take on RESTful authentication
One thing I discovered last week is OpenID Connect [1]. It layers an authentication standard upon oAuth2, without any of the cruft of 'legacy' OpenID it seems. Does anybody here have practical experience with OpenID connect?

[1] http://openid.net/connect/

SanderMak··on My Hardest Bug
Or to properly modularize your application with something like OSGi [1]. No more flat classpath and name collisions will be apparent very early on.

[1] http://www.osgi.org/Technology/WhatIsOSGi

SanderMak··on All Packt ebooks are $5
They seem to exhibit the same behavior as online content-farms. Shame we don't have a real-life Panda update to squash subpar books.
SanderMak··on All Packt ebooks are $5
Skip the Packt books and get 'Machine learning for hackers' from O'Reilly.
SanderMak··on All Packt ebooks are $5
I had the same experience with them. Withdrew myself as reviewer because I felt the material would never get to a standard where I'd be comfortable to have my name mentioned with it.
SanderMak··on RethinkDB raises an $8M Series A
I'd like to second the call for an official Java(/Scala) driver. Would be real helpful to push RethinkDB forward in the circles I'm in.
SanderMak··on How I Made $6,000 in 7 Days with my Ebook
Of course what you say is true.

Let me put it another way: when my CC issuer detects an anomaly, they block the charge and contact me rightaway to resolve it. I don't fear anything because I know they'll do the right thing and keep me in the loop. Why can't PayPal have such a symbiotic relationship with their customers, rather than instilling fear?

SanderMak··on How I Made $6,000 in 7 Days with my Ebook
Nice to see the results of your previous post!

> I was so afraid that PayPal would freeze my account that I called to let them know that I was going to sell a book and that I might have a few sales.

You know something's wrong when your customers are fearing you. Seriously, how did PayPal end up like this?

SanderMak··on Tried CSS hands on today, the result is this.
Indeed. However, I resemble the other remarks as well...
SanderMak··on Tried CSS hands on today, the result is this.
Seriously? http://books.rkravi.com
SanderMak··on Ask HN: What are some good alternatives to HN?
If you are into JavaScript, http://echojs.com is pretty good.
SanderMak··on This basic income crowdfunding campaign reached its goal in less than 48 hours
Hence you post it to HN, who have all obviously signed the initiative? Sorry, but that seems like a missed opportunity.
SanderMak··on This basic income crowdfunding campaign reached its goal in less than 48 hours
Maybe I'm missing something, but if they want to gather signatures - why not add a link to the petition so people can actually sign?
SanderMak··on Little-known directives of Angular.js
To see an example of the sibling comments, see http://branchandbound.net/blog/web/2013/08/some-angularjs-pi...
SanderMak··on PredictionIO, a machine learning server for software developers & data engineers
LensKit: http://lenskit.grouplens.org which also prominently features in the currently running 'Intro to Recommender Systems' MOOC on Coursera.
SanderMak··on Principal Component Analysis for Dummies
Unfortunately returns a 403...
SanderMak··on Mobile at Scale
Let me add another suggestion: http://www.sikuli.org/

Originally developed at MIT, now freely available and maintained as open-source lib. It offers advanced (partial) matching at the UI level.

SanderMak··on Multi-tenant Java 8 VM in beta
It was never like that. Threads have their own stack, but that's about it. They can access anything anywhere. Hence the current focus on concurrency using immutable message passing mechanisms on the JVM (actors etc.)
SanderMak··on My first project in Rails – Pastebin for Mathematicians
Note that this won't work for MathJax, since the certificate won't match the domain. For a workaround: http://www.mathjax.org/resources/faqs/#problem-https
SanderMak··on The Future of Programming in Node.js
Did you use bnd/bndtools? Without those I heartily agree: you'll have the steep learning curve of OSGi upfront, and the manual maintenance of metadata for the duration of your project. Using bnd/bndtools, it's only the initial learning curve that you have to worry about.
SanderMak··on Some AngularJS pitfalls
Thanks! I also just found out about angular-ui-utils, where they have a generic pass-thru directive for initializing jQuery plugins. Interestingly, they opted to use $timeout inside the compile function: https://github.com/angular-ui/ui-utils/blob/master/modules/j...

Wonder why that is, are there cases that would otherwise break?

SanderMak··on Some AngularJS pitfalls
Agreed. I tried to explore this issue a while back: http://branchandbound.net/blog/web/2012/11/unify-server-side...

Turns out that using script-tags is somewhat problematic, but as a comment points out, data-attributes could work.

SanderMak··on Some AngularJS pitfalls
Correct, the particular system I encountered this minification issue has an Ant-based build (which calls r.js for concatenation and minification).

I'll have to check on your compile suggestion. I tried lots of things, including using the postLink etc. Do you have an example?

SanderMak··on Can you help me understand the benefit of require.js?
Sure. True, Angular has modules and dependency injection which we use (both before and after RequireJS). However Angular modules are more namespace than true modules. When you split your Angular app over multiple files you'll still have to manage these dependencies by yourself.

The real trigger for introducing RequireJS was our need to optimize our JS by concatenating and minifying it. And to do that in the right order, you need to know your dependencies very well. That's when I decided I didn't want to do that by hand. Not now, and not in the future. So I took https://github.com/tnajdek/angular-requirejs-seed as an example and started defining modules and dependencies. Now I can easily run the r.js optimizer as a build step before releasing and now I'll get a correct and concatenated/minified JS for production.

The nice thing is that RequireJS not only manages our Angular modules (defined in separate files), but also their dependencies on vendor scripts (JQuery, Hammer.js etc.) I really have the feeling I'm in control again.

← PreviousPage 3 of 4Next →