HNHacker News
TopNewBestAskShowJobs

adamwathan

1,218 karma · joined December 6, 2014

submissionscomments
adamwathan··on Tailwind: A Utility-First CSS Framework
Author of Tailwind here! If you have the time, I wrote a big article about this a while ago and would be curious to know what you think:

https://adamwathan.me/css-utility-classes-and-separation-of-...

adamwathan··on Chrome 69 will keep Google Cookies when you tell it to delete all cookies
Displaying colors properly on wide gamut displays is one. Can't use Firefox because of it — I can't design in the browser if it renders everything wrong on my iMac.
adamwathan··on Stripe Press
I don't think Stripe identifies as a "payment processing company". That's the category their main product exists in but as I understand it, their mission as a business is to "increase the GDP of the internet", which is why they are invested in projects like Stripe Atlas to make it easy for people to form new businesses.

Under that banner, releasing content aimed to help businesses be more successful is totally aligned with their goals.

adamwathan··on The Nightmare Letter: A Subject Access Request Under GDPR
What frustrates me the most about the GDPR is that a single person building a mailing list for a $19 ebook launch is just as affected and burdened as any other company. A side-business that might make you $30,000/yr is now no longer worth pursuing because of the costs of working with a lawyer to make sure you are GDPR compliant and have all of the right policies in place.

It raises the barrier to entry for small one person businesses even more, forcing out anyone who can't justify the costs of compliance.

adamwathan··on Screen sharing in Slack, made interactive via Screenhero acquisition (YC W13)
Really disappointing news, rolling Screenhero into Slack doesn't solve the same problem at all.

I work for myself and have a large contact list of people who don't know each other who I often pair with or screenshare with. With Slack, there's really no way for me to create the same setup.

I'd need to create a new team called "Adam's Screenhero Contacts", invite all of my contacts (who don't know each other) to be part of this "team" together, and I'd have to foot the bill for the whole team since there's no way for each individual to pay for their own Slack account.

Is there a viable Screenhero alternative out there yet?

adamwathan··on Chrome to force .dev domains to HTTPS via preloaded HSTS
The annoying part about using .test, .localhost, .invalid, etc. is that Chrome still treats "my-project.localhost" as a search instead of doing a DNS lookup. Need to add a trailing slash or specify the protocol, which honestly is just annoying enough that I'd rather risk collisions and use a TLD Chrome recognizes like .dev.
adamwathan··on CSS Utility Classes and “Separation of Concerns”
The big issue with extends in my experience is that it changes your source order which can cause unexpected bugs.

I'd stick with regular Sass mixins, and if you want to mix in an existing utility, extract a mixin from that utility and mix it into both the component and the utility.

adamwathan··on Trump Tax Plan Said to Call for Lowering Corporate Rate to 15%
The corporate tax rate here in Canada is 15% for profit up to $500,000, and 25% after that.

We also have a lot of rules in place to prevent income from being double taxed, for example if my business pays taxes on $400,000 in profit and I take $150,000 in dividends, I get credit for the 15% in taxes that the business already paid and am only responsible for the other ~15% that I would have owed if I had made all of that $150,000 in regular personal income.

I was surprised to find that the US corporate tax system is so brutal compared to what we have here. Higher rates, double taxation, enforcing that you pay yourself a salary and not just dividends, etc.

adamwathan··on Semantic UI
I used to think this way until reading this article by Nicolas Gallagher:

http://nicolasgallagher.com/about-html-semantics-front-end-a...

These days I'm quite convinced trying to author your markup such that you can redesign a site by applying a different stylesheet has the dependencies backwards.

If you try to keep visual information out of your HTML, you end up authoring stylesheets designed to nimbly navigate your DOM structure to precisely target elements to style in a way that makes your CSS extremely coupled to the particular site you are building.

Your HTML documents are already coupled to your project, so rather than writing CSS that's coupled to that HTML, I've found it to work much better to author CSS from a mindset that the CSS knows nothing about the document it's trying to style.

This leads to writing what I call "library-style" CSS, where you are almost trying to build your own Bootstrap or similar; something that you could actually use on multiple projects if you wanted.

A class like "download-book" is not very useful if you have multiple buttons in a project that are meant to look the same way and not all of them trigger a book download.

adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
No I actually built my own platform for self-hosting the course. I don't think you can make much money through sites like Udemy, I would instead recommend a platform like Coach (https://www.withcoach.com/).
adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
+1000, thinking about digital products like books as assets akin to investing in stocks has been an important realization for me over the past few months.

Most of us who participate in communities like this have this insane super power of being able to create something out of nothing (but time and effort) that has value to people.

We can build little things that work their asses off for us forever, just requiring a nudge once in a while to keep them moving.

I've released two digital products in the last year, a book and a video course. The book will be a year old in May and still makes me $2500-5000/month, and the course (which came out in November) is still making ~$30,000/month, although I expect that to slow down soon.

Even still, with a little bit of maintenance marketing effort, I can expect those products to keep making a few thousand dollars each month for the next couple years while being able to dedicate the vast majority of my time to creating new products (assets) for my portfolio.

It feels a lot like the mentality that's pushed in "Rich Dad, Poor Dad" of owning things that generate cash flow, but instead of having to find money to purchase real estate, folks like us can invent these assets out of thin air. Really blows my mind.

adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
I actually sort of pieced together everything I could from Nathan through his (now discontinued) podcast, blog posts, and interviews.

I purchased Authority (just the book) afterwards, in case there were any other useful pieces of info in there and to say thanks for all of the free content that helped me so much, and just buying the book up front would've saved me a lot of hunting around, all the good stuff is in there :)

That being said, the podcasts and interviews are still well worth a listen, if only to really reinforce some of the more important ideas and build confidence in the approach by hearing about other folks' success stories.

adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Yeah honestly I was surprised at the success as well, because you're right, it's sort of a niche topic that's hard to tie to some measurable pay off.

I can't say for sure what the split was between personal sales and business sales, but based on the customers I've spoken to, I would guess the vast majority were personal sales. If you include folks who purchased it themselves and then asked for reimbursement through their company, I think that would cover every customer save a handful.

adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
Thanks. I did everything myself; started working on the book during evenings/weekends in February, released in May.

I was interviewed about the launch on the Product People podcast a while back if you enjoy these sorts of stories:

http://www.productpeople.tv/81

adamwathan··on How I Made $70k Self-Publishing a Book about Ruby on Rails
The most important thing you can do to increase your odds of success when releasing a technical book is to have multiple pricing tiers, adding additional content so you give people the option to pay you more than $30 or whatever you are charging for just the book.

I released a book in May 2016 teaching PHP programmers how to refactor code with lots of loops and conditionals into collection pipelines.

So far it's made about $180,000 CAD.

~$30,000 of that came from the "just the book" tier, at $29-$39 (depending on if the customer bought at the discounted launch price)

~$75,000 came from a "book + screencasts" tier, at $59-$79

~$75,000 came from a book/screencasts/example application tier, at $135-$179

If I had only given people the option of the cheapest tier, I would've made less than half of what I made by adding additional tiers.

The absolute bulk of the value is all in the cheapest tier, in fact the screencasts are the same examples from the book + just two bonus examples, and the example application is a project I already had that happened to use a lot of the principles in the book.

You can take a look at the landing page here if you're interested: https://adamwathan.me/refactoring-to-collections/

I think this sort of success is pretty achievable, I just followed the strategy outlined by Nathan Barry in his "Authority" book: http://nathanbarry.com/authority/

Nobody is going to make a lot of money selling a $40 book through a traditional publisher. If you really want to produce content like this and be able to earn a living from it, you need to be a bit more strategic about it, which includes things like tiered pricing.

I don't think it's deceptive to call it a "book" just because the author put in the extra effort to give people the option to pay a premium price for some bonus material; that's the right way to self-publish a book if you actually want to earn a decent income from it.

adamwathan··on Hero Patterns – A collection of SVG background patterns for your web projects
Hey! I'm a friend of Steve (who created Hero Patterns) and built the interactive VueJS stuff for the site.

We did try a scale/zoom thing initially, but found it wasn't super bullet proof because the patterns are designed at specific pixel sizes and sometimes seams would become visible when tiling the patterns if you scaled by an amount that caused little micro rounding issues with the rendered SVG.

Might take another stab at it, agreed it would be great to have.

adamwathan··on Images of New MacBook Pro with Magic Toolbar Leaked in MacOS Sierra 10.12.1
Can do it using Karabiner (https://pqrs.org/osx/karabiner/).

Sadly doesn't support Sierra properly yet.

adamwathan··on Walmart Canada stops accepting Visa cards
Canadian here, had my debit card compromised and $1200 stolen, bank reversed the charges the same day I called them.
adamwathan··on Alan Kay on Messaging (1998)
I think about conceptually like this...

When one object is "calling a function" inside of another object, it's reaching into that object, grabbing the method it wants to invoke, and invoking it. It puts the responsibility of invoking that method on the caller.

When one object "sends a message" to another object, the receiving object is responsible for determining what function gets invoked.

The most obvious place this difference manifests itself is the existence of things like "method_missing". That can't happen when you're "calling a function", but if you're just sending a message and the receiving object doesn't have a method that matches the message name, it can still make a decision about how to respond.

← PreviousPage 3 of 3