HNHacker News
TopNewBestAskShowJobs

davidjnelson

1,797 karma · joined August 19, 2011

david.jonathan.nelson@gmail.com
submissionscomments
davidjnelson··on Complexity Has to Live Somewhere
This setup does indeed test every commit in a pr branch. For the “on” property, it only has to be set to “pull_request” to do so. If you also add “commit”, it runs it twice.

It does exactly what you wanted it to. Feel free to email me if you need help setting it up, happy to help. Cheers!

davidjnelson··on Complexity Has to Live Somewhere
Sure np.

Directions vary depending on what you’re doing, but for a React app this will work.

So click on the actions tab in the repo, and click the nodejs template.

Change the run command to the npm script you want to run like npm run ci-check. It will do something along the lines of npm ci && npm run lint-check && npm run format-check && npm run test && npm run build.

Save that. Then move it from the repo root into a new subdirectory you’ll need to create called .github/workflows.

If you are an admin, click the settings tab and protect your merge branch so you can only merge if this succeeds.

That’s it!

davidjnelson··on Complexity Has to Live Somewhere
"test every commit before allowing merge"

I just set this up yesterday for a new codebase with GitHub actions. Very straightforward, took an hour or two. Only odd part was that the GitHub actions wizard saves the yaml in the root instead of .github/workflows where it needs to be.

davidjnelson··on Customers do not ask for software complexity
I would call that “good agile”, a case where it actually helps by breaking things down into smaller, fully complete, fully productionized pieces.
davidjnelson··on Customers do not ask for software complexity
Really good point. I think this is why it’s easier to develop useful software if you are someone who ends up being a user of the software since you have the same problems. You automatically have all the needed empathy.
davidjnelson··on Customers do not ask for software complexity
That’s why communicating a ton and delivering small chunks of fully working functionality helps so much.
davidjnelson··on Zoom Is Not the Problem – Our Meeting-Centric Workflow Is
Insightful. Was thinking about this recently. I find meetings are usually “make a decision”, “give updates”, or “show a demo”. For decision making, have been trying to optimize that workflow with teammates all over the world and not everyone having the time or not loving textual communication.

Seems like a master decision record in confluence, discussing finer points in a private slack channel, and demo and tie-breaking plus sync with busy or non text thinkers with ad hoc video meetings works well together. Another thing is quick prototypes of ux or architecture designs in codesandbox.

These all work well, but it would be great to have less overhead. Even on a small team though there are so many gaps it feels impossible to reconcile without all these.

Anyone have a team decision making workflow for spinning up new projects that is more efficient?

davidjnelson··on Zappy – Screen capture tool
Last time I used gimp to draw an arrow, if I remember correctly I had to find, download and install some plugin. Definitely empathize with you, it was unnecessarily complicated.
davidjnelson··on Zappy – Screen capture tool
What does this provide over what the native OSX tools give you?
davidjnelson··on Adding tests when you don't have time to
You can also skim chapters in this book. Best book I’ve read on the topic, highly recommended ( Working Effectively With Legacy Code ) https://www.amazon.com/Working-Effectively-Legacy-Michael-Fe...
davidjnelson··on Ask HN: What projects are you working on now?
Sounds super fun! Thanks, going to try it out!!!
davidjnelson··on Do whatever you can't stop thinking about
What I do is write them all down in an evernote note. I have 50+ ideas in there. At one point I went through and decided which was most interesting. I still add new items to the list, but at least it's out of my head and I can go back to the one I decided I'd focus on :-)
davidjnelson··on My Ordinary Life: Improvements Since the 1990s
Lots to be grateful for.
davidjnelson··on Toxic sofas are a secret scandal
Ashley Homestore has a bunch of great sofas without those chemicals. For mattresses, look for online retailers selling latex mattresses.
davidjnelson··on What people in tech had to say about JavaScript when it debuted in 1995 (2017)
Lol document.write in a table in Netscape 2. Still remember my first experience with a buggy js implementation :-)

My favorite early js story is writing a “life cycle of stars” app in 4 hours in 1997 and getting a full high school semester worth of credit for it :-)

davidjnelson··on Another 85 Ideas for Computing
> Work by mobile phone

This one has the potential to help people in impoverished countries make a living wage. Would be really great if a company made this happen.

davidjnelson··on The comfortable life is killing us
It’s a nice piece on breaking out of the conditioning of society and gratefully embracing our time on earth by living fully and taking risks.

Some nice quotes from wise people:

> But as Alan Watts once reminded us, “This is the real secret of life — to be completely engaged with what you are doing in the here and now. And instead of calling it work, realize it is play.”

> In the words of Henry Miller, “the aim of life is to live, and to live means to be aware, joyously, drunkenly, serenely, divinely aware.”

> “If you’re going to try, go all the way. There is no other feeling like that. You will be alone with the gods, and the nights will flame with fire. DO IT. DO IT. DO IT. All the way You will ride life straight to perfect laughter. It’s the only good fight there is.” - Charles Bukowski

davidjnelson··on Ask HN: What are some example of low tech improving your life?
Going for a hike in nature. Both the exercise and the nature are great for your health.
davidjnelson··on Show HN: Hacker News Trends
Frontend framework comparisons:

React: http://eliot-jones.com:5690/Home/Trend?id=React&allwords=tru...

Angular: http://eliot-jones.com:5690/Home/Trend?id=Angular&allwords=t...

Vue: http://eliot-jones.com:5690/Home/Trend?id=Vue&allwords=true

davidjnelson··on Show HN: Hacker News Trends
This is really cool. Seems the backend is a bit slowed down with the traffic. Would be cool if the graph had more horizontal space on a small phone without rotating it and re running the query.
davidjnelson··on Show HN: Hacker News Trends
Also was trying to compare multiple terms.
davidjnelson··on Anders Hejlsberg on Modern Compiler Construction (2016) [video]
Something I’ve observed with languages he designs are that they end up with a ui form builder. I wonder if that will happen with typescript. It’s harder, because they’d either need to pick a framework, or design it for at least react, vue, angular.
davidjnelson··on The Joy of Coding: Observable
This is great. Reminds me of Bret Victor’s work.
davidjnelson··on How would you double $100 in a month?
I was thinking arbitrage too. But from the perspective of buying ads where you find a way to make more money from the traffic than the ads cost.
davidjnelson··on Most Americans Are Lonely, and Our Workplace Culture May Not Be Helping
> Social media use was tied to loneliness as well, with 73% of very heavy social media users considered lonely, as compared with 52% of light users.

That’s ~20% more loneliness from heavy social media users!

davidjnelson··on Ask HN: Which programming languages to learn in 2020 for an experienced dev?
Go is a solid choice since it sounds like you prefer backend work. Great language, crazy fast, tons of jobs.
davidjnelson··on Startup Ideas 2020
I wonder if there’s a failsafe way you can prove it’s off when they want to turn it off.
davidjnelson··on Startup Ideas 2020
> Given free transcription and the drive of remote work to video conferencing, we’re about to witness a Cambrian explosion of cataloged meeting information. What was previously oral knowledge will be automatically documented by machines. We’ll see many opportunities come out of this.

Automatic searchable transcripts for video chats. Now that sounds useful!

davidjnelson··on Working for someone vs. doing your own thing
Was just looking at this out of curiosity the other day and in California the equivalent plan to what you’d get from employment to cover a family is $1,500/month from anthem. This is the platinum ppo from the exchange. $15 doctor visits, $9,000 yearly max, no deductible, $30 tier 3 drugs.

The price is similar to what you get from an employer, except the employer pays most or all of the premium.

davidjnelson··on I'm not feeling the async pressure
Doesn’t solve the issue with calling an api that doesn’t return a promise, but the tslint rule “no-floating-promises” flags missing awaits which is quite useful. Also useful is flagging awaits that don’t return a promise, which can be done with the tslint rule “await-promise”.
← PreviousPage 2 of 26Next →