HackerTrans
TopNewTrendsCommentsPastAskShowJobs

throwaway09432

no profile record

comments

throwaway09432
·3 jaar geleden·discuss
I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ?
throwaway09432
·3 jaar geleden·discuss
Can you map over this and preserve the NonEmptyArray type?
throwaway09432
·3 jaar geleden·discuss
The production of this gadget will create more pollution.
throwaway09432
·3 jaar geleden·discuss
Typescript is a good try, but ultimately our favourite JS runtime errors still happen, even with all the strictest ts settings. Syntactically it is quite clumsy, you can see the uninspired mix of C++ and Java in there. The typings now although people are doing lots of cute things with them, don't do some really fundamental things. For example there is currently no sensible way to type a non empty array in Typescript. Also the discriminated union with the identifying string literal in there is not terribly elegant.

Personally I wish either Rescript or Purescript gained adoption instead.
throwaway09432
·3 jaar geleden·discuss
Does carbon filter this stuff?
throwaway09432
·3 jaar geleden·discuss
Personally I prefer haml, in my opinion JSX is grotesque.
throwaway09432
·3 jaar geleden·discuss
Honestly, all I care about is speed. Couple of word swaps here and there using a thesaurus, who gives a shit.
throwaway09432
·3 jaar geleden·discuss
It works!
throwaway09432
·3 jaar geleden·discuss
Python lambda syntax is ugly as hell.
throwaway09432
·3 jaar geleden·discuss
Very tastefully done. Every one of these items is a huge improvement. This one in particular drives me crazy: `x.map(($) => $.name)`, `x.map .name` is almost Haskell level terseness.

Can this all not be done as experimental typescript though, rather than a new language?
throwaway09432
·3 jaar geleden·discuss
>"attention seeking"

Oh I stand by that comment. It is my opinion, did it offend you? I'm curious why you even felt the need to comment. Not every Briton has the power to do what she did. So the article is essentially just about her. She told all her friends what she was doing beforehand. Now what type of behaviour would you describe this as?
throwaway09432
·3 jaar geleden·discuss
Reading it back you are indeed correct. I found the article misleading.
throwaway09432
·3 jaar geleden·discuss
As pointed out below, she still lives in London after all this verbiage.

https://twitter.com/intent/user?screen_name=byameliahill

Edit - Censored [flagged] because we are apparently not allowed to criticise. Pathetic.
throwaway09432
·3 jaar geleden·discuss
So basically after all that, you are quitting an in-office role for a remote role.
throwaway09432
·4 jaar geleden·discuss
>I'm a little bit butthurt that no one wants to gaze in adoration at my cool toy

That's life. Did you call up the bus company and thank them for engineering a bus to get you to work safely?
throwaway09432
·4 jaar geleden·discuss
I can't believe they chose an array for the Tuple type. Which has no sensible equality definition as arrays in JS are references.
throwaway09432
·4 jaar geleden·discuss
Ok, so when registering on a new site you don't mind waiting back to hear from the server after clicking submit, to find out your passwords don't match, or don't meet the required policy? That's fine. But the majority of impatient and perhaps spoilt users do. In fact I hear people these days complain violently about the most trivial UX issues on websites they visit. User's expectations are sky high.

Regarding the massive nestings of divs. Well this is computer generated HTML. It is ugly as hell, but browsers are well geared up to deal with it, it doesn't create any serious performance issues unless taken to stupid levels. The other side of the coin, with this rather ugly generated HTML, is you get a human benefit, a time saving efficiency. You can spin up a web page with React/Bootstrap in a fraction of the time it took you in the 1990s.
throwaway09432
·4 jaar geleden·discuss
Emphatically yes. The most popular UI framework's dropdown component, documentation reads as follows:

"Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They’re made interactive with the included Bootstrap dropdown JavaScript plugin"
throwaway09432
·4 jaar geleden·discuss
This is just the same argument as the comments upthread rehashed. In the absolute most minimalist, hair pullingly annoying implementation, that is correct. However the polish you are used to on dropdowns plus countless other controls you interact with every day require javascript.
throwaway09432
·4 jaar geleden·discuss
[flagged]