Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 10y ago · link · parent

Doorkeeper is closer to a full-package with customizable features, including a basic frontend. I'm not too familiar with hydra, but it seems Doorkeeper is best when you want to get the full OAuth app & user interface running (and customize later), whereas Hydra is best when you want to get a quick OAuth API app and build your own frontend. Would you say this is accurate?

comment 10y ago · link · parent

If you're interested in this sort of thing, Doorkeeper[1] is a robust, open source OAuth 2 provider that's been around for about 5 years. We use it as a standalone app, and have many other node.js apps that sign in using it.

[1] https://github.com/doorkeeper-gem/doorkeeper

comment 10y ago · link · parent

But compared to something like GWT, angular is minimalist :) Surely that doesn't mean we should all settle with angular, does it?

comment 10y ago · link · parent

This looks similar to Crystal[1], another statically typed OO language with ruby-like syntax.

[1] http://crystal-lang.org/

comment 10y ago · link · parent

What direct approaches do you have in mind?

comment 10y ago · link · parent

Does anyone think Haxe is a good server-side language? I'm still desperately thirsty for a server-side language that has a sound, yet understandable and easy-to-use static type system.

comment 10y ago · link · parent

I'm sorry, could you explain what you mean? That was my first comment on Christianity.

comment 10y ago · link · parent

Could it be that you provided your own education? If so, I would say most are not organized or visionary enough to do the same thing.

comment 10y ago · link · parent

This is great, but I was really hoping for a fast-forward-only merge button...

comment 10y ago · link · parent

How does not squashing your commits help the protocol/implementation scenario you described?

comment 10y ago · link · parent

I try to avoid them too, but sometimes business requirements are just too particular to do so.

comment 10y ago · link · parent

How does one deal with complex if-else statements in a concatenative language?

comment 10y ago · link · parent

Interesting, can you provide a link to the source code that supports your claim?

comment 10y ago · link · parent

Could someone explain the downvotes? I'd genuinely like to know what my comment is doing wrong.

comment 10y ago · link · parent

Is it wrong for me to think that having a thousand Cell elements on the page is the true anti-pattern? The user can really only see maybe 10-20 at one time. The cost of re-rendering on 15 rows should be trivial enough not to worry about creating a callback function in render.

Edit: To elaborate, you can solve this by using pagination (a common solution), or, if you want the user to be able to scroll and not click, occlusion culling. Someone out there must have written an occlusion culling library for React by now, surely.

comment 10y ago · link · parent

And why is this bad? At least they get the fair chance to make something of themselves, regardless of their social / economic backgrounds. Too many don't get that chance.

comment 10y ago · link · parent

npm can install directly from GitHub:

    npm install visionmedia/express
Or any git repo:

    npm install git+https://git@github.com/visionmedia/express.git
    npm install git+ssh://git@github.com/visionmedia/express.git

comment 10y ago · link · parent

http://js-zero.com/

comment 10y ago · link · parent

I am definitely biased (being the creator and all), but I like the approach JS Zero[1] is taking. Everything is written in a sound, subset of JavaScript, but you can always use an `assume` tag as an escape hatch, allowing you to write "normal" JavaScript when you really need it.

For example, if you're reading records from a SQL database, you don't have to bother wrestling with the type system – just tell it what your data looks like! :)

    let Pet = Object.of({ name: String, happiness: Number })

    $assume `fetchPets : (Number) => Promise( Array(Pet) )`
    function fetchPets (minHappiness) {
      return db('pets').select('*').where('happiness', '>', minHappiness)
    }

comment 10y ago · link · parent

It's certainly not about "winning". God said vengeance is His. If heaping coals was vengeance, wouldn't that mean we ourselves apply vengeance, albeit indirectly, by being nice to our enemies? Wouldn't that mean the motivation for our acts of kindness is corrupted by the burning desire for revenge?

These problems cause others to find a different interpretation, putting the hot coals in a good light, instead of a "vengeful" one. Here is a short overview on the topic: http://prumc.blogspot.com/2009/04/heap-burning-coals.html

comment 11y ago · link · parent

It's not just syntax; it actually opens new ways for API design. See abreza's comment: https://news.ycombinator.com/item?id=10686596

comment 11y ago · link · parent

After a certain point, it isn't a question of valuing one thing over another, but instead a question of addiction. People who are addicted to cigarettes smoke them because their body feels the need to. Once hooked, it's _very_ difficult to force yourself to stop.

comment 11y ago · link · parent

That's a good point; I can see and understand people rationalizing like that. It's unfortunate that many will never experience the reality of being a minority in police situations.

comment 11y ago · link · parent

You could try telling them that police kill more people than terrorist do https://reason.com/blog/2014/12/09/more-than-1000-people-hav...

comment 11y ago · link · parent

True, but people fear terrorism because it's something they can't control. Police are also something people can't control, so comparing police deaths to terrorism deaths is a great comparison.

comment 11y ago · link · parent

JS Zero [1] is one approach. I would love to make it happen, but although I'm confident I can make the sublanguage design and developer experience great, I'm only familiar with basic type theory. It would be great to have even one interested expert join the project and help get the ball rolling.

[1] http://js-zero.com/

comment 11y ago · link · parent

Living coding isn't lazy, unpracticed living coding is lazy. I find live coding to be a lot more effective than explaining code that's already there; as a speaker, you have the opportunity to explain the reasoning behind and relationships between each line of code.

comment 11y ago · link · parent

> suppose I have a list of thousands of elements

That's going to be a problem regardless. You shouldn't have so many elements on one page (can a user even parse through so many at once?). Use pagination or occlusion culling to show a few at a time instead.

1
252627
31