HNHacker News
TopNewBestAskShowJobs

there4

163 karma · joined January 30, 2013

submissionscomments
there4··on What is “literate programming”? (2024)
The BackboneJS library and the documentation generated by Docco has always been an interesting example. Compare the annotated source with the source at GitHub:

https://backbonejs.org/docs/backbone.html https://github.com/jashkenas/backbone/blob/master/backbone.j... https://ashkenas.com/docco/

there4··on Why don't people return their shopping carts?
> Feels like a lazy justification

I try to give people kindness and grace, even for small things. Maybe we can sometimes reframe a "lost cart" as something other than an act of laziness or aggression against society. Maybe it’s a sign someone was just having a hard moment.

When I take a stray cart back, sure, it could’ve been left by someone careless. But it also could’ve been left by someone overwhelmed. Maybe a parent, an exhausted worker, someone barely holding it together because of some struggle we'll never know.

Returning that cart might be a tiny act of kindness toward someone who needed it that day.

there4··on Why don't people return their shopping carts?
All I'm asking is that we give caregivers a little empathy and some grace. To your question - There's not much risk. Lock the car, return the cart.

But what I'm offering is that if I saw a parent leaving a cart, I wouldn't judge and assume that it's because of a glaring moral failing.

there4··on Why don't people return their shopping carts?
I don't see mention of parenting.

Imagine you’re in a hurry. Your child is tired and hungry, and you are too. You’ve just loaded the groceries into the trunk and finally gotten your child strapped into the car seat. You think for just a moment that you're done. But then you realize: you still need to return the shopping cart. You should have loaded the groceries, locked the car, gone back to the cart return and then carried your child back to the car to load them into their car seat.

Now you’re faced with a dilemma with three bad options — do you take your child back out of the car, leave them unattended for a moment, or abandon the cart and go home?

there4··on Marble Fountain
Another parameter - as a track designer you can manipulate the width of the track to change the ball speed. It raises and lowers the ball on the track, changing both the rolling diameter and the center of gravity. This can be used to make subtle changes to the ball speed before a turn.
there4··on Ask HN: What are the best GitHub READMEs you've seen?
The table layout and example formatting of "The Universal Route Module API Specification" is quite good: https://github.com/fastify/fastify-dx/blob/main/URMA.md
there4··on Ask HN: Mobile phone addiction help?
Wired suggested using grayscale mode to help make the phone less engaging. On iOS, I believe you can find it under Accessibility > Display & Text Size > Color Filters.

https://www.wired.com/story/grayscale-ios-android-smartphone...

there4··on Jeep Bluetooth Radio Hack for a TJ Jeep
This is a great hack! For those of us that don't have time but want a similar result, 1FactoryRadio sells a lot of OEM radios with bluetooth upgrades.

http://www.1factoryradio.com/1984-2002-ras-chrysler-jeep-dod...

there4··on Ask HN: What programming language has you really excited lately, and why?
PHP: With the new 7 release, it gets a surprising speed boost, a collection of elegant new syntax, and maintains backwards compatibility with an incredible ecosystem of packages. Modern projects like Laravel and Slim continue to push best practices, and the community is one of the largest. It's an incredibly versatile language with a robust feature set.
there4··on Ask HN: How do you deal with 2000 line functions?
This is a great presentation about refactoring that may be useful: "RailsConf 2014 - All the Little Things by Sandi Metz" https://www.youtube.com/watch?v=8bZh5LMaSmE
there4··on Inside the lab: Why Apple still sweats the details on iMac
Can anyone explain why they don't put more RAM in modern Mac computers? I think I can remember debating 8 versus 16 almost ten years ago. Why are they still stuck on 8?
there4··on What are your experiences using a Macbook for back end work?
The Macbook is a solid bit of hardware with great durability. For development with Vagrant, you should make sure that the machine has the maximum RAM installed, and if it's an older one, you can do a SSD upgrade.

In addition, I cannot say enough good about the dotfiles project from https://github.com/mathiasbynens/dotfiles for making OSX a nice developer environment. Be sure to completely read through the .osx file before applying it though, and comment out the bits you don't like. If you maintain the .brew file and use it to install new apps (including apps via cask), you'll have a system that is very easy to replicate. iTerm2 with tmux is great for use with Vagrant environments too.

there4··on Show HN: Slack Meets GitHub Issues
On first glance, the marketing site is clean, tidy, and professional. Nice work there! I'll try out the app today. In the meantime a couple of things I looked for: A screenshot or demo and a help site for support.

The red introductory price text feels a little out of place. It's left justified when the rest feels centered, and I feel like it could be a better callout with improved formatting. It may be a British spelling, but I saw misspelled 'occassional' in the Beta section.

Best wishes with the project it looks promising!

there4··on Ask HN: How to replicate dev and production?
There are some great sites for building configurations: https://puphpet.com/ http://phansible.com/ http://rove.io/

I've had great success recently with builds based on a setup from Puphpet. It's fairly easy to add additional PuppetForge modules and build out your installation with custom scripts.

there4··on Ask HN: How to store/record one time use scripts?
I tend to include them in git in a maintenance folder. After they've been used once, I put an exit command at the top that references the issue number so that they can't be accidentally run.
there4··on GitHub is your resume so keep your resume in GitHub
Nice to see this getting some publicity. The markdown-resume-js project that this uses is based on my own markdown resume project at https://github.com/there4/markdown-resume.

It's a project that generates both html and pdf versions of a resume written in markdown. It's distributed as a phar file so you can keep a copy in your bin folder and just keep your resume.md in it's own repo.

This was originally a way to experiment with css descendant selectors and learning more about the capabilities of wkhtmltopdf. It's limited compared to LaTex, but it's reasonable for a simple resume.