2,130 karma · joined May 18, 2008 (18y ago) · 814 submissions
On HN since '08.
https://dtrejo.com
comment 1y ago · link · parent
1. It'd save a lot of time if one could just click a Markdown PR description and start editing it, without entering edit mode first.
2. Thanks to the following prompt, I barely write PR descriptions these days.
> Run `gh pr view` then `gh pr edit` to fill out the PR description. Use my words verbatim as much as possible. Be brief. Use tasteful markdown formatting.
comment 1y ago · link · parent
Starting from the test, allow me to step through the program execution, just like a debugger, to observe variables, surrounding code, and the complete file.
If you read only the covered lines of code in a linear way, you'd miss the refactoring opportunities because you aren't looking at the rest of the file.
comment 1y ago · link · parent
1. Allow me to step through the code execution paths that have been modified in the pull request, based on the tests that have been modified.
2. Allow me to see the data being handled in variables as I look through the code.
3. Allow me to see code coverage of each part of the code.
4. Show me the full file as I am navigating through the program execution so that I can feel the level of abstraction and notice nearby repetition or code that would benefit from being cleaned up.
Full article: https://dtrejo.com/code-reviews-sad
comment 6y ago · link · parent
Further reading:
https://www.usatoday.com/story/news/nation/2019/03/30/goats-...
https://www.google.com/search?q=california+goat+herders&oq=c...
https://www.ted.com/talks/bobby_gill_it_s_not_the_cow_it_s_t...
comment 7y ago · link · parent
Feature idea: prevent you from leaving the page or doing anything else on your laptop for the time period, that way you can’t research anything.
More tips: https://dtrejo.com/how-to-write-consistently-painlessly-and-...
comment 8y ago · link · parent
It is cheaper to raise them this way because you don’t need to buy corn feed.
The cows digest grass well. They do not digest corn well, which means corn fed cows produce methane and get sick, and don’t build the soil (sequestering carbon).
Definitely worth watching some YouTube videos and reading about it, it’s pretty fun and interesting.
comment 9y ago · link · parent
Find people with expensive problems† and help them solve those problems with your words, a software product, or consulting.
comment 9y ago · link · parent
Metrics related, here's a book review of Moneyball I just wrote: https://dtrejo.com/moneyball-book-review-and-measuring-reven...
comment 9y ago · link · parent
I might be hooking graphql/apollo up to some strange data sources like CSVs to help import my data in the right shape, so this and the examples are going to be very handy. Thanks for making this!
comment 9y ago · link · parent
comment 9y ago · link · parent
Another idea for how to charge people: "enterprisey" usage, e.g. 2000+ files in one folder or anything that normal file managers choke on.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
tools
* https://dtrejo.com/colorslice/ - I made this b/c i wanted multi-color picking and good schemes from images and husl and multiple editable color formats
* http://speculo.co/ - preview colors on layouts
* http://tools.medialab.sciences-po.fr/iwanthue/ - colors for data scientists
* https://color.hailpixel.com/ - fun color picker
* http://tristen.ca/hcl-picker/#/hlc/6/1/20313E/EFEE68 - hcl picker
formats
* http://www.hsluv.org/ - human friendly hsl
a11y
* https://www.randoma11y.com/#/?_k=nm2tko - check color a11y
* https://snook.ca/technical/colour_contrast/colour.html#fg=33... - contrast checker