HNHacker News
TopNewBestAskShowJobs

tomhallett

882 karma · joined January 14, 2011

Ruby and Javascript Developer.

Software Engineer at Incredible Health.

github.com/tommyh

submissionscomments
tomhallett··on Rails on Docker
The thing I've been trying - instead of the docs saying "just run docker-compose up" (and a few other commands), put all of those commands in a bash script. That single bootstrap command should: docker compose down, docker compose build, docker login, [install gems/npm modules], rake db:reset (delete + create), docker compose up, rake generate_development_data.

This way each developer can/should tear down and rebuild their entire development environment on a semi-frequent basis. That way you know it works way more than 50% of the time. (Stretch goal: put this in CI.... :)

The other side benefit: if you reset/restore your development database frequently, you are incentived/forced to add any necessary dev/test data into the "rake generate_development_data", which benefits all team members. (I have thought about a "generate_development_data.local.rb" approach where each dev could extend the generation if they shouldn't commit those upstream, but haven't done that by anymeans....)

tomhallett··on You might not need an ORM
I agree that this blog post is part "orm" and part "lead gen for my saas app which helps you write sql queries". I think a blog title which reflects this, ORM and AiHelperBot, would be more helpful.

That being said - the faq's on https://aihelperbot.com/ don't answer the main questions I have:

1) I saw a banner somewhere, can't find it now, which said "your schema is only stored in the browser". While that is nice, is my schema transmitted over the wire to your cloud service's servers?

2) If your servers get it, do you send my schema off to OpenAI's ChatGPT? Or some other AI as a service?

3) Do I own the intellectual property of all sql queries written by your tool?

4) How do you verify the "validness" of a query? For example, do you take my schema, load it into a small postgres/etc database and have your code run the query your AI generates? Do you parse/lint the query? Or is the AI good enough that it always generates valid sql?

5) I'm also interested in the "correctness" of a query, from the perspective of "user with the name of john", will the resulting sql returns results with name = "John", "john", " John ", "Johnny", etc - but I am fine with that being left up to the user.

6) Is snowflake/duckdb/clickhouse on your roadmap? Rather than replacing ORM's, helping business users write analytics/BI queries seems like a home run use-case.

tomhallett··on Launch HN: Matano (YC W23) – Open-Source Security Lake Platform (SIEM) for AWS
I’m assuming the difference is: “big $$ license fees” for on-prem is $X a year, while “sweet saas revenue” is $A a year, $B per user, $C for compute, $D for storage, and $E for requests.

As a large company, what are the things you are more than happy to pay for with on-prem?

The reason I’m asking: this feels like the largest issue with cloud saas, which is one of the more popular implementations of open-core for B2B. Not saying Splunk is open-core, but it’s related to above/dbt cloud discussion.

Enterprise customers have the highest propensity to pay, but don’t need or want their cloud offering.

Mid-tier customers actually prefer a managed service by their cloud provider, aws/gcp/azure, because it strikes a balance between easy AND it works within their vpc/iam/devops. But this cuts off open-core companies main revenue, so they start making ELv2 licenses (elastic, airbyte, etc) which makes things harder on mid-tier.

Small customers are the ones who love saas the most, but have the least ability to pay, have the least need for powerful tools, and will probably grow out of being a small customer…

I’m curious if there are any companies which are: source code available, commercial license, allow you to fork/modify the source code, only offer on-prem (no cloud saas offering), want the mega-clouds to offer a managed service. BUT the commercial license requires any companies over 250 employees or $X revenue (docker desktop style) to pay a yearly license fee.

tomhallett··on Waymo driverless car brings San Francisco traffic to a halt during rush hour
I watched those used in real-time as a jerk left his car at the entrance to a casino. A valet ran to get those and they just moved his car out of the way. Restored my faith in humanity how smooth of an operation it all was.
tomhallett··on OpenAI used Kenyan workers on less than $2 per hour to make ChatGPT less toxic
"But these days the human cost is just another cost" - this is where I think you, "key_stroker", and the GP, "brookst", might agree on something, in my opinion.

If someone agrees with your premise that "these days the human cost is just another cost", then it seems logical that a newspaper editor/author will shape the headline about economic suffering, instead of mental suffering.

By adding more information to the headline about "$2 per hour", it might make the discussion more confusing by much of the comments discussing the economic part. BUT, a clickbait-y title might increase the reach of the article.

tomhallett··on Docker 2.0 went from $11M to $135M in 2 years
I'm curious if there are any podcasts/blogs/books which give "pricing ideas/strategies" based on a "risky" premise like this: keep it very simple and don't worry about theft, because enterprise customers won't steal, and the math works out.

Here's an excerpt of their pricing terms:

Do I need a paid subscription to use the images on Docker Hub for commercial use? Images on Docker Hub can be used for commercial use, as long as Docker Desktop is properly licensed. Paid subscriptions are needed for commercial use of Docker Desktop at organizations with more than $10 million annual revenue OR more than 250 employees.

tomhallett··on Alpine.js
Yeah, I was hoping the HN title would give some context on why it was being posted now (2023). My guess: "TIL about a really cool js framework which has been around for years"? Which in my opinion is totally fair, but others might disagree. :)
tomhallett··on Alpine.js
To make sure I'm understanding you correctly: you are saying that sites which use alpine will use progressive enhancement, where most of the static content is vanilla html, and then little alpine snippets are used to improve the page (nav bars, widgets, etc). Versus full SPA where all of the content is clientside rendered.

At first, I (incorrectly) thought you were saying that the alpine templates are stored "in the dom", so then google would parse them. For example:

<div> Copyright ©

  <span x-text="new Date().getFullYear()"></span>
</div>

But, once I figured out you were talking about progressive enhancement, I came back to reality that google will only see "Copyright (C) " and won't see "2023".

Note: I think it can be used for CRUD based GUIs, if paired with "Html over the wire" (rails hotwire, phoenix liveview, laravel livewire), but that's a different point.

tomhallett··on Twitter's API is down?
Has there been any interest in telling this story in any rich medium (podcast, long form article, 30 minute youtube video, documentary, netflix series). Not only does that sound super interesting, but now that most/all of Twitter Execs have moved on - I wonder if you'd be able to get Twitter's side of the story as well.
tomhallett··on I don't read web articles anymore, but I read books
* The Whole Brained Child - https://www.amazon.com/Whole-Brain-Child-Revolutionary-Strat...

* "How to Stop Losing Your Sh*t with Your Kids: A Practical Guide to Becoming a Calmer, Happier Parent" - https://www.amazon.com/How-Stop-Losing-Your-Kids/dp/15235054...

tomhallett··on Tech execs who raise their kids tech-free or limit their screen time (2020)
Thanks for the recommendation about kagi - I'll check it out. :)
tomhallett··on Tech execs who raise their kids tech-free or limit their screen time (2020)
Totally agree. I try to take them to the library often, but (for families who can afford it) the convenience is nice because they can research something on their own without a trip to the library - at which point they probably would have lost interest. My goal is to tighten feedback loops for learning and discovery, without using a computer.

Questions they've answered which probably wouldn't have risen to the level of "let's go to the library today/tomorrow":

* what are the signs of the Chinese zodiac? which one am i?

* what is the different between a trademark and a copyright? why does it say "R" vs "TM"? (I gave an answer off the type of my head, but they clearly weren't happy with it.... haha)

tomhallett··on Tech execs who raise their kids tech-free or limit their screen time (2020)
While I do agree that information in books can/will be out of date, I find the critique in this case funny because he was watched the world cup final game. So he knew who the winner/runner up was and added them to the bottom of his paper.
tomhallett··on Ask HN: Lead developer but I just don't enjoy management
What percentage of your time is spent on the sales/marketing side of pitching your consultancy services? RFPs/proposals/pitches/inbound/outbound? Where have you found the sweet spot with respect to the length of an engagement?

The reason I ask - most of what you hear out there are stories of people being "freelancers" where the work is somewhat of a commodity (wordpress, webapps, etc) and they have to differentiate themselves by quality of work/communication. But it sounds like you are more on the specialized/niche side, with retainers and being a "consultant".

So far I've been tackling the "builder vs manager" problem with: joining small startups or starting my own. The good news is that the last 2 startups I've joined have hit rapid growth, but the (bad) news it that I keep getting pulled into management. I know that I can/should hold a stronger line and say "No, I want to be an IC", but it's hard when my boss pushes back that it'd be better for the company if I manage. None of this is complaining/whining per-se, but your solution is potentially a win-win where I can avoid the mis-aligned incentives (ie: holding the line on IC vs management).

tomhallett··on Shopify tells employees to just say no to meetings
Was that solution "cancel meetings" or "clear all physical room reservations from meetings, but leave the meetings alone"? Sounds like there's a slight difference there.
tomhallett··on Tech execs who raise their kids tech-free or limit their screen time (2020)
For Christmas, I bought my kids a physical set of encylopedias [1], usually $600, but black friday sale for $400. My son wanted to know "What are the top 30 soccer teams in the world cup all time?". Instead of googling it, which would have given him a listacle article with random facts and other clickbait, the encyclopedia had:

* Winners and runners up for the past 15 world cups * a break down of soccer per continent, comparing and contrasting them

He then went and totaled how many wins different countries have gotten....

For a family like mine which can afford $400 for a set of books, this has been an amazing purchase which is a far superior first step to "pull out an ipad and google it".

[1]: https://www.amazon.com/dp/0716601214

tomhallett··on I worked at LastPass as an engineer
Sorry, I'm not referring to "end user credentials" which can be salted and hashed. I'm referring to user data which has to be stored in the database.

For example, let's talk about the BI tool, mode.com. As a customer, I login to mode.com and click the "New Database Connection" button, where I get a screen to input the connection information for my postgres database: host, username, password, port, etc. If you are a developer at mode.com, what are the best practices to keeping `user_database_connections.password` secure? I can't hash the `password` column because I need to use the raw `password` when my code connects to the user's postgres database.

I'm assuming I should encrypt the information, so an attacker who does a databse dump can't read the `user_database_connections` table, but what else should I do? Keep that information in a seperate database? seperate microservice? etc, etc.

Other examples of tools which connect directly to the database(s) of the customer, so they store db creds of their customers in the saas database: - hightouch.com - fivetran.com - explo.com

tomhallett··on I worked at LastPass as an engineer
An increasing number of data saas companies store your database/warehouse credentials so they can connect directly, Ie: Postgres/snowflake host, port, user, password, etc.

That information is long lived (unlike tokens which expire) and you need to use the real value (unlike the hash of a password). Are there resources/books which cover the (many) best practices to keep that information safe?

Things like: separate database/microservice, separate vpc?, encrypt the database, filter those fields from logs, etc etc etc.

Is a service like aws lambda actually more secure then using a paas (heroku/fly/render) vs ECS (where there might be slower turn around times to actually bump/patch CVEs than the aws lambda team would take?).

tomhallett··on Ask HN: Why are some YC startups not posting salary ranges when law requires it?
100% agreed, but for the CEO's who are making the above mistake, if they have other bad news to deliver to the board (low revenues, etc), then they might be afraid to deliver yet another piece of bad news on the hiring side.
tomhallett··on You might not need a CRDT
Very cool - thanks!
tomhallett··on You might not need a CRDT
Stupid question - are there any good resources on User Experience patterns/recipes for implementing OT/CRDTs?

Context - a lot of the literature is about the backend algorithm. But that still leaves individual teams tripping over the frontend interaction design and usability.

Example of what I'm looking for - hex.tech has a video tutorial of their "Cell locking" feature, where the cell gets disabled and a "Mac Lockard has taken control of a cell you were editing" toast notification appears. [1]. This is fully baked and a recipe which if I put in a jira ticket could actually get implemented. :)

I would love to read a book which is a "Don't make me think" and has an example with "This table cell was added by Bob concurrently to Alice removing its row. How would you like to proceed: recover the row or ignore the change?". All the UI's in my head would look like "Clippy" from MS Word - or "Pipey" from Silicon Valley [2], haha.

1: https://hex.tech/blog/a-pragmatic-approach-to-live-collabora...

2: https://www.youtube.com/watch?v=E2YcOV5C2x4

tomhallett··on Automattic open to hiring ex-Twitter individuals or even entire teams
For celebrities, it feels like Instagram is the best prepared to capitalize on any migration from Twitter.

But for news/politicians, I’m curious how well Reddit could do. The main difference being the central object on Reddit is the subreddit versus the individual user. Curious how much UX tweaks it’d take for more people to follow billgates/AOC on Reddit.

tomhallett··on Tesla has used space characters in internal emails to identify leaks
Agreed - the goal isn't "the KB's prove you are guilty". It's metadata which serves as a means to reduce the number of computers you need to examine with a more complex/manual search (deleted files, temporary/corrupted files, word document history, interviewing the employee, comparing the material in the document with the role/responsibilities of the employee, etc).
tomhallett··on Ask HN: Why are today's consumers not discerning what is ad and what is not?
I think there are 2 different, yet related, ideas in your question:

1) People are attached to brands

2) People consume advertisements interchangeably with content.

For both of these, I believe they are consequences from "too many choices". This article [1] from the American Psychological Association covers it well, "In fact, some researchers find that too much choice can actually lead people to take less positive risks in making selections and to use simplifying strategies in lieu of more considered choices."

I view "brands" as a pretty reliable way to take a mental shortcut to minimize risk. Instead of making a choice "I want to buy a product in X category, let me compare and contrast each individual item to see which one is the best", you can say "I want to buy a product in X category, let me see if there's a brand I trust which sells it". Note: You can replace "buy a product" with "choose a movie" for your Marvel example and the result is pretty much the same.

With respect to the blurring of content and advertisement, there are entire teams of people working hard to make that distinction not only blurry, but also irrelevant from the consumers perspective. I really enjoyed Johann Hari's book "Stolen Focus" [2], where he explains the point of a medium (books vs TV vs twitter vs instagram) is actually more important in how the content is shaped and how your brain process it, than the actual content being pushed over that medium. Warning: it's extremely possible I am absolutely butchering this point, so if you completely disagree with it, take that more as "tom is bad at explaining it" instead of "Hari is peddling garbage ideas". :)

1: https://www.apa.org/monitor/jun04/toomany

2: https://stolenfocusbook.com/

tomhallett··on CRISPR cancer trial success paves the way for personalized treatments
If you re-read my comment and the comment I was replying to, you will see that I wasn't making any claims about America being or not being the greatest country in the world. I was pointing out how "American Exceptiolism" will sometimes cause me to think things which "are great" as being american when they aren't american at all.

* you: Swedes can import expensive treatments from US corporations

* Parent: Alot of those are from non-US (Switzerland, Germany, Philips)

* my comment: When I think of "Philips", I think it's an american company

* my comment: When I was watching 2 top athletes, my default assumption was that they were american, even though it's extremely obvious that they aren't. Which exposes how ridiculous the framing is.

Unless a company actively promotes that it’s a foreign company in their branding, “German engineering”/“Swedish design” or similar with their name/branding, I will assume it’s an American company.

I think one of the reasons "American Exceptionalism" is dangerous, is that it holds us back from improving on things which aren't actually the best. If an American politican says "This is the greatest country in the world", that is an emotional argument to keep things exactly the same.

tomhallett··on CRISPR cancer trial success paves the way for personalized treatments
I chuckled when I read this, because when I think about the "brand" for Philips/Siemens, my default assumption is "American company". When you mentioned it, I recalled "Oh yeah, I've heard that Siemens is german before", but being raised with the "American Exceptionalism" mental framework means this thought isn't the default. (Versus brands like Volkswagen/Ikea/Toyota).

Embarrassing example: I was watching Federer play Nadal and thought "Wow, American athletes are great. I'm proud that we have the best. Wait... neither of these guys are american. Let me google where they're from. What am I so proud of exactly??"

The number of times we hear "this is the greatest country in the world" on a daily basis is really quite sad.

tomhallett··on Twitter’s mass layoffs have begun
I think the question is - did the twitter employee delete their own tweet, regardless of their reasoning, or was the tweet deleted in the backend by a different twitter employee?
tomhallett··on Ask HN: Corp gives “contractor” benefits, want “employee” obligations, what now?
When I was a contractor at a big company and the project was behind, they asked people to start working weekends. Employees were salaried and didn't get paid for the extra time. As a contractor, I tried to submit a report with "3 extra hours for saturday" and it was rejected - they said "We only pay by the day. Please re-submit with 8 hours, even if you only worked 3 hours".

Your setup is backwards and it's up to you to fix it. There are many things in your contract which are negotiable, but that all depends on your negotiating power.

tomhallett··on Moving from React to htmx
As I was reading https://htmx.org/, I kept thinking "Oh crap, yet another framework ripping off intercooler/alpine. Why?". Then I when I got to the bottom, I read that it's a rebrand/rename of intercooler, which gives me a lot more confidence/trust about the project. I would recommend putting the "htmx 1.0 = intercooler 2.0" at the top of the htmx website, similar to the intercooler website.

Note: while the htmx homepage is short, I spent about 30 seconds reading/thinking about each "motivation" bullet point, and my monkey brain is very content jumping to conclusions about the project at a much faster pace, :).

tomhallett··on Moving from React to htmx
Wow, this is very cool! I think this applies not only to gui frameworks (react vs htmx), but also to design systems (bootstrap, tailwind ui, etc).
← PreviousPage 4 of 10Next →