HNHacker News
TopNewBestAskShowJobs

tvphan

84 karma · joined March 14, 2019

submissionscomments
tvphan··on AMD’s Lisa Su
A lot of people on Reddit call her Su Bae.
tvphan··on Practical Front-End Architecture
Sounds like Vite?
tvphan··on Will Xi Move on Taiwan?
I suspect the person who created this chart probably reckoned that anything less than “using Huawei” is a bad thing
tvphan··on Pollen – A library of CSS variables inspired by TailwindCSS
There’s a trend at the moment called design tokens which standardises all the design constraints for your website, e.g. spacing, colours, fonts, etc. Tailwind and I guess this allows for you to build super consistent websites based off of predefined tokens
tvphan··on Sky News Australia has been suspended from YouTube after a review of old videos
YouTube is an American company.
tvphan··on Remove left turns for less dangerous city traffic
If you ride a bike and have to make a turn, it’s a similar concept!
tvphan··on Remove left turns for less dangerous city traffic
Uh I live next to a roundabout (single lane) and it’s the safest thing ever. I’m guessing you’re American?
tvphan··on Mouse plague grows to biblical proportions across eastern Australia
Yeah nah, I live in Melbourne and there are rabbits EVERYWHERE
tvphan··on Why I don't like Tailwind CSS
Mate, there is a `space-y-1` helper class.
tvphan··on How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan
Did you go back to using JS?
tvphan··on Ask HN: Who wants to be hired? (March 2021)
I’m pretty sure governments require people to have degrees which is why companies ignore you.
tvphan··on Highest rates of teen bullying are between friends and friends-of-friends: study
Did you use 4 to represent for? I was so confused
tvphan··on Before buying a NYT subscription, here's what it'll take to cancel it
This probably has to do with Apple charging 30% for any in-app payments so Audible didn’t bother implementing any payments / subscriptions functionality on their app.
tvphan··on De Cecco reveals why there is a bucatini shortage in America
They probably just poured more iron into their recipe?
tvphan··on Twin – Tailwind with the flexibility of CSS-in-JS
Mate, you gotta chill. You seem very triggered by Tailwind! You don't have to use it if you don't want...

Some comments:

- It's very easy to integrate Sass with Tailwind. You can import the Tailwind classes just like you would Bootstrap: https://tailwindcss.com/docs/using-with-preprocessors#using-...

- You are also allowed to write semantic classes as well: https://tailwindcss.com/docs/extracting-components

I would argue the main point would be you can rapidly build interfaces... like really fast. I worked on a proposal for a client using Tailwind a month ago and we smashed out a whole website in a week. We ended up "extracting components" like buttons and cards and stuff that we found was being reused a lot (kinda like Sass).

As opposed to Styled-Components, the Tailwind classes are very valuable for designers who want to prototype live in the browser.

Also, you were complaining before about design consistency but I would argue that Tailwind allows for very high design consistency. I work with armies of outsourced developers of varying skillsets and I honestly don't trust a lot of them to write clean CSS at all. With Tailwind and Tailwind design tokens, the army of outsource developers are encouraged to work with the design tokens (as opposed to yolo'ing 3px !important everywhere).

tvphan··on Twin – Tailwind with the flexibility of CSS-in-JS
There’s a new wave of thought in design called “design tokens” where you have a set of predefined values that are considered valid as part of the design, e.g. a website can only have spacing of 4px, 8px, 16px, etc.

One component having mr-4 and another having mr-3 is chill if that was the designer’s intention. If not, then it should be picked up during design review and easily fixed (since you end up really only having to pick from like a few values).

tvphan··on An Honest Review of Gatsby
I've honestly found that the learning curve for Gatsby is too high. I've been using Next.js and I absolutely love it!
tvphan··on Hong Kong: UK makes citizenship offer to residents
I see the USA as more chaotic than authoritarian.
tvphan··on 10 years of Front end Development. I quit
I love React and would recommend it as the primary frontend library. However, I would suggest avoiding the Material UI component library entirely (as I believe it’s both difficult to customise and over-engineered) and just write SASS to start off.

If you really like how Angular 1 worked (writing templates instead of JS to represent DOM) then Vue is a great choice.

tvphan··on 10 years of Front end Development. I quit
I thought the same thing until you start to think in terms of “constraint-based components”, which are more easily done in CSS-in-JS. Styling is done by passing properties to a component, e.g. <Heading color=“primary” />, and only the developer building the primitive component needs to worry about styling. You end up being able to rapidly develop interfaces that match the designs.
tvphan··on 10 years of Front end Development. I quit
The Material UI library for React is such a piece of garbage and I actually believe it’s one of the main reasons why so many devs hate React. You can use React without and your happy will be so much happier!!
tvphan··on Angular 9.0
Most popular re-usable component libraries and websites are written in React.
tvphan··on Cars All but Banned on One of Manhattan’s Busiest Streets
I think that's just wishful thinking. I'm from Melbourne where cycling is pretty common (although not as hectic as in Holland). The cyclists here are still pretty rude.
tvphan··on Appwrite: A New Open-Source Back End Server for Mobile and Web Developers
Directus looks like a headless CMS (similar to Contentful). This is more AWS AppSync or Google Firebase.
tvphan··on Why the Amazon Is on Fire
Just a random nitpick about the article...

> An avid deforester, Bolsonaro has jokingly nicknamed himself “Captain Chainsaw.”

An alternative article from The Guardian says that he rejects that term?! https://www.theguardian.com/world/2019/aug/07/bolsonaro-amaz...

tvphan··on Open-sourcing the Lightning Web Components framework
How long has this been around? I had to recently build a React app for Salesforce and I had to set it up as something called a Lightning Container Component, which was pretty much a glorified iframe.
tvphan··on Angular v8.0
The Stack Overflow developer survey showed that React and Angular are neck to neck so there's obviously a lot of people who use it.

However, you can see just how popular React is by number of npm packages that depend on it: https://github.com/facebook/react

tvphan··on Fundamental design principles for non-designers
I recently read Refactoring UI by Adam Wathan, which goes more into detail about basic design principles in a manner that noobs can understand. There are also a whole bunch of examples and stuff. Highly recommended:

https://refactoringui.com/

https://twitter.com/adamwathan

tvphan··on Lion-Eating Poet in the Stone Den
Similar to how Singaporean English have dropped a bunch of ending consonants from English, Mandarin dropped a bunch of ending consonants from Middle Chinese. If you recited this in Cantonese (which is a bit more conservative dialect), the words would sound differently!
tvphan··on My Salary Progression in Tech
You've managed to live in different cities for work, e.g. Madison, London, DC! That means you've gained invaluable life experience. I'm pretty jealous of that TBH.
Page 1 of 2Next →