Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
allover
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
88 ms
·
361.
▲
by
allover
10y ago
HTML and XML took off for web. That's what the vast majority of devs write and that's how all devtools display the DOM. > If you do have to roll up your sleeves and work with the serialized syntax, you're far better off it
362.
▲
by
allover
10y ago
You're very lucky to be new to this! If you have success with div and flexbox for everything, then I'm guessing you're not supporting old IEs. You're lucky to have skipped the years of pain in which flexbox simply wasn&#
363.
▲
by
allover
10y ago
JSX is a language extension which desugars to JavaScript. It is not the same as 'going back to templates'. > Refactoring your views with the same ease that you do with your normal code and with a compiler to watch your back is
364.
▲
by
allover
10y ago
Linters (or in Elm's case), the compiler, should tell you when you forget a comma. Indents let the reader know the current line is a continuation. Comma-first also creates worse diffs than (enforced) trailing comma.
365.
▲
by
allover
10y ago
I'm suggesting it doesn't 'work fine', because syntax matters. Lisp-style 'S-expression' syntax for describing documents never took off. We have to take something from that - it seems the vast majority of devel
366.
▲
by
allover
10y ago
Yes I do understand all that, as I'm a React dev, in which render() methods and 'pure function components' work in exactly the same way (take props and state as input and return dom-creation-calls). That is why I used JSX as
367.
▲
by
allover
10y ago
As I alluded to I think the HTML version is less weird because it is close to what you're going to see when you open your browser DevTools. So the JSX/HTML style requires less mental gymnastics overall. Also there are some thing
368.
▲
by
allover
10y ago
Yeah as the article says they were only added for object literals in ES5, which is the main place the 'issue' comes up, and where I was making the comparison to Elm. That works in IE > ~7/8? without transpilation.
369.
▲
by
allover
10y ago
Yep, I get the preference over a lang that can't do trailing commas, which is why I used the trailing comma style as the counter-example. In a compile-to-JS language it's hopefully possible to make trailing commas legal. They'
370.
▲
by
allover
10y ago
(Ellie is really cool, apologies for the meta comment, but): It's a shame that all that hits me in the face with Elm code examples lately is awkward style conventions. Why do they have to be so user hostile? Trailing brace on the next
371.
▲
by
allover
10y ago
In context, it is a small detail (anyone serious enough buy this monitor and able to afford it will likely be able to relocate their router), and there's still no other 5k option on the market.
372.
▲
by
allover
10y ago
It's hacker news, some of us are interested in the tech stack!
373.
▲
by
allover
10y ago
As another commenter pointed out it's SoundCloud's genres that are at fault, they're at #9 here: https://soundcloud.com/charts/top?genre=alternativerock
374.
▲
by
allover
10y ago
Minor suggestion, focus the search field when it first loads so I can 'just start typing'. (Looks slick!)
375.
▲
by
allover
10y ago
>> Bootstrap, a theme for it, app css, a couple of 3rd party vendors, and we are over a megabyte. Who's doing that? And if they are adding dependencies without consideration of page-speed, they're to blame, and they'll
376.
▲
by
allover
10y ago
So which specific tool are you laying this accusation at? Bootstrap, which has been refined into tiny Sass and Less modules, and which for people who use neither, has the customize link in its main nav?
377.
▲
by
allover
10y ago
So it can be misused? All good tools can.
378.
▲
by
allover
10y ago
Why the drive-by attacks on good tools? This kind of stuff is tiring and just adds to the noise. > No megabytes of css Why would there ever be megabytes of CSS for such a site, apart from for ads, which is the main problem with modern &#
379.
▲
by
allover
10y ago
I've seen a lot of Rust posts on HN lately, but none saying you must ditch mature frameworks like Rails for Rust equivalents (there aren't any yet, and they know that, for one). Where's the evidence for this claim DHH/Ra
380.
▲
by
allover
10y ago
> There are a lot of vocal people who make it seem like you should be doing everything in Go or Angular or what have you Can you give examples of the 'lot of vocal people' saying 'you should be doing everything in Go or An
381.
▲
by
allover
10y ago
What exactly is your complaint? > Poor man's IRC What does that mean, fewer features? It's vastly more accessible and the UI easily beats the experience of navigating/selecting/using IRC clients. > The Dropbox of m
382.
▲
by
allover
10y ago
> This added information is not subjective. There objectively is more information. Yeah the overall win is what's subjective. To many, programming in a functional style, and embracing concepts like 'monads', is not appeali
383.
▲
by
allover
10y ago
And again that supposed benefit of yours is entirely subjective, no matter how objective you try to make it sound. To me that's not a good enough reason to write my code in that style, when to me (subjective), OOP models the world in a
384.
▲
by
allover
10y ago
Despise/tolerate/mess? The basic offering is a simple chat client with 'channels' and an easy signup/invite flow afaict.
385.
▲
by
allover
10y ago
I actually think momentum behind Reason/Bucklescript is going to start building, possibly spurred on by React people. Saw this tweet recently [1] re: React bindings to Reason at Facebook. (Neat demo and interesting replies to the tweet
386.
▲
by
allover
10y ago
> The entire point is to demarcate what functions interact with the world and which don't. This makes testing easier, reading code easier, composition easier. This is 1. a tradeoff , 2. subjective. Words like 'bizarre' are
387.
▲
by
allover
10y ago
Great explanation, thanks!
388.
▲
by
allover
10y ago
I did say 'comparable'. Built in debugger is just one example that makes Vim not comparable to VS Code: https://code.visualstudio.com/Docs/editor/debugging
389.
▲
by
allover
10y ago
First I've heard of Red. Does it implement 'readable' [1] or is it a [parallel school of thought] (can't think of right phrase here but you get what I mean)? Also has anyone tried to create a 'readable' [1] fla
390.
▲
by
allover
10y ago
His lazy comment doesn't need rationalising. VS Code is not 'a very bad app'. If you know of a comparable app that uses fewer resources to a significant degree please let us all know and I'm sure we'll all switch.
More ›