Better HN
topnewbestaskshowjobs
Log inSign up

indrekju

37 karma · joined Dec 1, 2011 (14y ago) · 15 submissions

Submissions

comment 5y ago · link · parent

3900X / 5700XT

comment 5y ago · link · parent

Interesting. I've been playing it on PC now for ~15 hours and have only seen a couple of minor bugs. I wonder how the experience is so different for users.

comment 6y ago · link · parent

I agree. Reading HN/Reddit it seems that FB is dying any minute now (for past couple of years), in reality they are still growing.

Beside couple of people, everybody else from my social circle seem to be just fine using FB (and others). Though there's definitely more usage of Instagram than FB nowadays (FB Messenger is still super popular)

(not from US)

comment 6y ago · link · parent

Same. I never thought they would change it, but I'm glad they did.

5.

CORS-Less Cross-Origin Requests(medium.com ↗)

1 points · by indrekju · 7y ago · discuss

comment 8y ago · link · parent

You can. Instead of passing null through the chain you could pass an actual error object.

Check out Elixir With statements for example: http://openmymind.net/Elixirs-With-Statement/

We do something similar in ruby with deterministic gem. Each action returns Success(value) or Failure(error). The error object is one of our own defined error instances (e.g. Responses::Unauthorized.new(msg)). These are then translated to actual error codes and messages in the web layer.

We added something similar to do-notion for ruby in deterministic gem. Not very nice but makes using deterministic a bit more convenient. https://github.com/pzol/deterministic#chaining-with-in_seque...

7.

Improving GitHub reviews with fixup commits and a helpful bot(github.com ↗)

5 points · by indrekju · 9y ago · discuss

comment 9y ago · link · parent

Traefik https://traefik.io/ is pretty cool.

comment 10y ago · link · parent

We use github-review-helper instead https://github.com/salemove/github-review-helper . It also has fixup commits support which is quite useful in our workflow.

comment 13y ago · link · parent

" Edit another file in the same directory as the current file

" uses expression to extract path from current file's path

map <leader>e :e <C-R>=expand("%:p:h") . '/'<CR><C-M>

map <leader>s :split <C-R>=expand("%:p:h") . '/'<CR><C-M>

map <leader>v :vnew <C-R>=expand("%:p:h") . '/'<CR><C-M>

comment 14y ago · link · parent

I hate when people are using it in the unit tests. It just makes testing very convenient, so they start using it everywhere. In the end, the test suite gets very slow. Unit tests should not hit the database.

First example there: test_new_customer_defaults. Really, it needs 3 saved models to test this? FactoryGirl isn't solution here. It's just hiding the problem.

12.

Patched ruby 1.9.3-p0 for 30% faster rails boot(gist.github.com ↗)

1 points · by indrekju · 14y ago · discuss

comment 14y ago · link · parent

"None - my stock option vanished and don't own any". What does this mean? How stock options vanish?