News for hackers. Stuff that matters.

c8d3f7b49897918

Re:10 JavaScript Libraries for Front End on Monday March 19, 2018 @04:54PM (#16623054)
I've been pretty disciplined about not shilling it too frequently. You can check my comment history.

I don't enjoy it, but a well timed shill is what got it to the front of hacker news one day, and got it a ton of exposure. When you are a solo dev without the reach of facebook, google or 37signals, you do what you have to do to get the word out.

Especially since you are all doing web programming wrong. ;)

Re:10 JavaScript Libraries for Front End on Monday March 19, 2018 @03:19PM (#16622111)
Alright, if we're gonna do javascript listicles today, indulge me in a bit of shilling:

11) http://intercoolerjs.org lets you add an AJAX front end to your app with simple HTML attributes

Ethnicity is almost always a biological phenomenon as well.

Race and ethnicity are simply larger and smaller group categorizations of humans, both with reasonably accurate biological tests.

A daily reminder that the US spends more per-capita on socialized medicine than any other country except Norway, and spends more on socialized medicine per capita than many first world countries (e.g. france, australia, japan) spend on medicine in total, both public and private. [1]

Conservatives (I am a conservative) who say we have a free market system are wrong. Liberals who say we are too heartless to pay for a socialized medical system are wrong. Anyone who says our military spending is why we don't have public healthcare is wrong. Anyone who suggests the US is competent enough at public administration to implement a public health care system is also probably wrong.

Collapse appears to be the only way out.

[1] - https://en.wikipedia.org/wiki/List_of_countries_by_total_hea...

Re:Ask HN: We're being censored. Why? on Tuesday March 13, 2018 @02:32PM (#16578545)
Maybe it is off topic? But, on the other hand, this unflagged:

https://news.ycombinator.com/item?id=16576865

Seems pretty arbitrary to me. That's the internet, I guess.

Re:Bringing Back Skeuomorphic Design on Thursday March 08, 2018 @07:38PM (#16548972)
Balance in all things: a design should be minimalist where that is called for (the background, unimportant or repetitive elements, etc.) and should increase in visual complexity/depth/color/brightness in areas that are important and need to draw the users eye. (NB: minimalism does not mean "nothing". Sometimes a slight texture completely changes the feel of a UI, but it requires a deft hand.)

I'm glad to see the flat-ui/material-design over-application of minimalism is coming to an end and designers are getting back to more complex visual treatments. My hope is that, rather than casting back and forth between the various schools of thought, designers start thinking in context-sensitive terms: not "Should I use flat design or skeumorphic design for this app?" but rather "Where in this UI are flat design AND skeumorphic designs best utilized?"

Re:The Great Lightbulb Conspiracy on Monday March 05, 2018 @11:32PM (#16526877)
I would be interested in an economy that incentivized repair rather than replacement. Maybe make repairs tax-free or even a tax credit.
Re:Is Bitcoin a Waste of Electricity, or Something Worse? on Friday March 02, 2018 @12:02AM (#16499177)
This headline is a good example of getting the target (you) to think past the sale: if you deny bitcoin is "something worse" you are implicitly conceding it is, in fact, a waste of energy (when contrasted with HFT server farms, I suppose?)

Trump did this with the "and mexico will pay for it" addendum to building the wall. By getting people to say "Mexico will never pay for it!" they are mentally conceding the wall.

I dislike these sorts of verbal tactics, but they are effective manipulations.

We must cancel everybody's debt for the economy's sake, but we also have to do it in a fair way. Thankfully, we have Steve Keen, who has already worked out a solution:

http://www.ideaeconomics.org/a-modern-jubilee/

Re:Things are going so well we’re doing a hiring freeze on Thursday February 01, 2018 @09:37AM (#16282095)
They are stopping at the lower end of Dunbar's number.

Smart guys.

Re:The narcissism epidemic is dead? on Tuesday January 30, 2018 @04:02PM (#16268994)
> However, because older generations are typically in a good financial situation, having profited both from the pre-80's social contract, and often, from its disassembly - it's not at all narcissitic to care about personal concerns! It's absolutely rational - they aren't going to become homeless if they decide to go on a buddhist retreat, or engage in a messy divorce, or start a new career.

Thank you for your earnest and thoughtful post.

I'd like to say that it is to some extent narcissistic to sacrifice future generation's wellbeing to satisfy present desires and I think it is reasonable for millennials too accuse baby boomers and, to a lesser extent, genX'rs of that fault. I am an X'er and, admitting their faults, I get upset when I hear millennials held up for undo scorn, given the cards they have been dealt.

nihilism is not liberating or joyful, that is squishy lastman talk

it drove nietzsche insane, and he was much smarter and greater than any of us

nihilism is terrible and heroic and demonic, and possibly true

but i don't think so

> Realizing that you can live your life as you wish is amazing.

You aren't taking nihilism seriously enough.

> And nihilism isn't a bad thing.

You aren't taking nihilism seriously enough.

Re:Trends to Avoid When Founding a Startup on Tuesday January 09, 2018 @08:17PM (#16111786)
Negative trend 6: adopting a trendy, complex web stack before you absolutely have to when a simple one would get you to market faster
Re:A few reasons to try intercooler.js this year on Thursday January 04, 2018 @02:03PM (#16073054)
I apologize for self posting on HN, but I haven't been doing much PR for intercooler lately and I'm hoping some new people find it an interesting alternative.
Re:Teens Aren’t Partying Anymore on Wednesday January 03, 2018 @09:50AM (#16061379)
Extraversion/Introversion is one of the big five personality traits and is ~50% heritable:

https://en.wikipedia.org/wiki/Big_Five_personality_traits#He...

That's not to say introversion/extraversion wouldn't manifest differently in different contexts, but the trait does exist (as much as any personality trait does) and appears to have a large genetic component to it.

intercooler should work in any browser that your chosen version of jquery or zepto works in.

If you want to see if a particular browser is compatible with a particular version of intercooler + (jquery || zepto), the unit tests are linked off the release page:

http://intercoolerjs.org/download.html

And you can simply open the the unit test page in question:

http://intercoolerjs.org/release/unit-tests-1.2.1.html?hidep...

This will run all tests for intercooler 1.2.1 using jQuery3 as the underlying library. Be sure to let the window retain focus or a few tests will fail.

> The Turbolinks/Intercooler approaches seem to be managing state with the DOM,

I won't speak for turbolinks, but with intercooler the idea is to return to a stateless architecture, the second aspect of the REST-ful architecture[1]. State, as such, is stored on the server, not on the client.

It has scaled quite well in my applications: browsers are very fast at swapping new HTML into a page. The downsides can be additional chattiness with a server and a lack of interactivity if you are building a fancy (or fancy part of an) application, such as a game. In those cases, intercooler is not a good choice.

[1] - https://en.wikipedia.org/wiki/Representational_state_transfe...

Thank you for the kind words about intercooler.js. :)

If you are interested in some reading on the theory behind it, I recommend these two blog posts that explain how HTML and REST/HATEOAS hang together better than Javascript with JSON:

http://intercoolerjs.org/2016/01/18/rescuing-rest.html

http://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.ht...

Re:Ask HN: What did you work on in 2017? on Monday January 01, 2018 @01:29PM (#16047256)
I don't mind going against the current, I'm a contrarian by nature. :)

I hope you find it useful, and good luck in 2018.

I would like to break the intercooler.js dependency on jquery.
Re:Ask HN: What did you work on in 2017? on Sunday December 31, 2017 @12:34PM (#16041476)
I continued to work on intercooler.js:

https://github.com/LeadDyno/intercooler-js

http://intercoolerjs.org

I'm trying to get people to reconsider the more traditional web development style of server-side rendering of HTML + HATEOAS.