Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irjoe
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
irjoe
8d ago
I would say it's pretty common to talk to strangers on the train in England. I could just be the "Northerner terrifying Londoners by saying Hello" though. I do know not to start a conversation with a stranger on the tube.
2.
▲
by
irjoe
8mo ago
I always felt like go channels were more of a clever solution than a good one. Goroutines are a pleasure to work with though.
3.
▲
by
irjoe
2y ago
Using document.addEventListener means it will work even if the DOM is updated without having to add new event listeners. If I'm not expecting the DOM to change I would be more inclined to do something like: document.querySelectorAl
4.
▲
by
irjoe
2y ago
I don't recall the exact numbers but I had a very similar experience, scoring very highly on spatial reasoning almost to the detriment of everything else. I remember a close friend getting frustrated administering a working memory test
5.
▲
by
irjoe
2y ago
I imagine the red blood was very noticeable on the white snow. I might be wrong though.
6.
▲
Internet Archive Service Availability
(archive.org)
5 points
by
irjoe
2y ago
|
0 comments
7.
▲
by
irjoe
2y ago
I assume you're referring to Kowloon Walled City?
8.
▲
by
irjoe
2y ago
I'm not sure that's entirely true in the UK. The Polish plumber taking British jobs is a fairly common trope in far-right discourse. I believe this is prevalent across Western Europe in general.
9.
▲
by
irjoe
3y ago
You can also use anonymous functions if you find the module syntax a little terse or clunky for shell scripting. double = fn a -> add.(a, a) end double.(4) It starts to look a bit like a weird untyped OCaml / F# if you
10.
▲
by
irjoe
3y ago
Would Be Nice Ifs, maybe?
11.
▲
by
irjoe
4y ago
It was already fairly popular in the UK prior to being acquired by Facebook.
12.
▲
by
irjoe
4y ago
I live in a smaller city in the UK so my experience is likely much different from those living in larger cities. I never wear a helmet when riding a bike and used to commute daily. I've never had an accident involving traffic and have
13.
▲
by
irjoe
4y ago
curmudgeon
14.
▲
by
irjoe
4y ago
> 2. Any advice about automatic whitespace/indentation handling with Emacs? I use prettier-mode and editorconfig-mode. Everything is formatted on save so works well for me.
15.
▲
by
irjoe
5y ago
There's an inherent difficulty in making difficult things easy. I think we're more likely to improve the ergonomics of writing software rather than make it easier for others to translate business logic into code. I like to think t
16.
▲
by
irjoe
5y ago
I really wish the GraphQL alias syntax supported something like: query { users { email: contact.email } }
17.
▲
by
irjoe
6y ago
Interesting. I do the same thing in Elixir where I'll attach an iex session to a Phoenix application so I can interrogate modules and APIs as I'm building them out. I'm slightly disappointed that it's already something I
18.
▲
by
irjoe
6y ago
Is there a simple way to get code I write in a lisp REPL back into my editor? That's the part missing for me and why I usually only use interactive shells (REPL or otherwise) for testing APIs or small pieces of code. I can't imagi
19.
▲
by
irjoe
7y ago
I've found a fairly workable solution is to have an origin for the API in CloudFront and a behaviour to route /api/* to that origin. Saves any CORS headaches. Obviously this won't work in all cases.
20.
▲
by
irjoe
7y ago
Quite the opposite :) My preference would be to rely on pattern matching (unification) in the function head: def transform_data([_|[]]) do: [] I just wanted an example of using guard clauses. It does depend on the actual code thoug
21.
▲
by
irjoe
7y ago
You're right, they're not really "early returns" but for me at least they are often in similar fashion to the "early exit" pattern in the article: def transform_data(raw_data) when length(raw_data) == 1,
22.
▲
by
irjoe
7y ago
I'm currently writing a lot of Elixir where early returns are a feature of the language ( https://hexdocs.pm/elixir/Kernel.html#module-guards ). I also write a lot of JS and tend to use guard clauses fairly liberall