Readit News logoReadit News
mkarnicki commented on Tailwind UI   tailwindui.com/... · Posted by u/alt3red
bensochar · 6 years ago
Another reason Bootstrap > Tailwind is consistency & context. Adding the class `alert alert-danger` to a div tells my coworkers that it's an "alert" & it will look like an alert everywhere. If I want to change how alerts look, I change the CSS

With Tailwind you'd have `bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative`. Then I'd have to change my HTML everywhere to update the appearance of alerts & its not always obvious that I'm looking at an alert in code.

mkarnicki · 6 years ago
> Then I'd have to change my HTML everywhere

Nope. Once you see same (sub)set of classes repeated, you would instead define .alert and .alert-danger using Tailwind's @apply directive, and you now have a single place to change how your `alert alert-danger` looks :)

mkarnicki commented on Tailwind UI   tailwindui.com/... · Posted by u/alt3red
misiti3780 · 6 years ago
These UIs look great! Does anyone have any great resources, examples, where one could learn CSS/SCSS to create stuff like this. I know CSS/SCSS enough to edit existing codebases and tweek, but I would not be able to create these from scratch. I would love to improve my design skills.
mkarnicki · 6 years ago
While not CSS courses directly, these resources should help you address what you're looking for.

Tailwind related playlists on Adam Wathan's YouTube: https://www.youtube.com/channel/UCy1H38XrN7hi7wHSClfXPqQ/pla...

And this publication (by same authors as Tailwind UI, that is Adam and Steve) https://refactoringui.com/book/

Enjoy!

mkarnicki commented on Scaling to 100k Users   alexpareto.com/scalabilit... · Posted by u/sckwishy
collyw · 6 years ago
We put everything in Kubernetes to scale. Now large uploads and downloads fail more often than before.
mkarnicki · 6 years ago
Are you saying k8s is to blame for large file upload/download failures? Maybe your infra needs a tweak?
mkarnicki commented on My productivity app for the past 12 years has been a single .txt file   jeffhuang.com/productivit... · Posted by u/lazyjeff
cfitz · 6 years ago
I’d love to implement a similar command line program for logging various on-computer activities. Thank you for sharing!
mkarnicki · 6 years ago
I recommend you check out https://jrnl.sh/
mkarnicki commented on Tailwind: style your site without writing any CSS   jvns.ca/blog/2018/11/01/t... · Posted by u/dankohn1
jacamat · 7 years ago
you have that with tailwind too, lol. probably even worse the bigger your app is.
mkarnicki · 7 years ago
Can you elaborate? I can't agree with you. Tailwind is meant to provide a consistent design system, of which CSS size should never get out of hand (which is the case then using regular CSS). Whenever I use Tailwind, I end up adding maybe 20-30 lines of CSS and I never have to open a CSS (or other sass/less/whatever) ever again. Have you tried Tailwind or you're just assuming what you're saying?
mkarnicki commented on Tailwind: style your site without writing any CSS   jvns.ca/blog/2018/11/01/t... · Posted by u/dankohn1
koboll · 7 years ago
At that point, why not just write actual CSS?
mkarnicki · 7 years ago
Because you'll have 29 different margins, 67 different left paddings, etc all over the place. Tailwind allows you to create a consistent design system. CSS was supposed to be "write one class, use it everywhere instead of inlining". Usually it ends up with nobody reusing that class and everyone creating their on in the same codebase. There's an article I don't have a link handy, which explained how ridiculously many classes were used by GitHub/Lab, Airbnb, etc. Now even GitHub have their own utility based CSS system and others are following along, including Bootstrap with their CSS utility classes.
mkarnicki commented on Shutting Down Google+ for Consumers   blog.google/technology/sa... · Posted by u/Nemant
JauntTrooper · 7 years ago
I still miss Reader. :(

I basically stopped following most blogs when it shut down, and reverted to individual bookmarks.

mkarnicki · 7 years ago
Have a look at Feedly. I, too, loved Reader. Feedly filled the void for me :).
mkarnicki commented on Shutting Down Google+ for Consumers   blog.google/technology/sa... · Posted by u/Nemant
sangnoir · 7 years ago
> I'd like to think that's not true, but it wouldn't be the first time such a technique has been used, apparently successfully.

It's also why Twitter wants to 'curate' your timeline, instead of simply displaying tweets from people you follow in temporal order.

mkarnicki · 7 years ago
I believe this is why recently Twitter reverted the change and now allows you to browse in chronological order.
mkarnicki commented on Share your startup – October 2018    · Posted by u/cx42net
gitgud · 7 years ago
Wow I love the idea and how the landing page suggests options on what you might like.

I appreciate good system architecture and this looks like a great way to convey that information.

This is the current way I convey architecture diagrams https://old.benwinding.com/but-how/?

mkarnicki · 7 years ago
Glad you like it :)! Thanks for sharing the link. One of the reasons I created Stackdraft was the thought "why cloud architecture diagrams can't look good as well?". It's like we're constrained to crude tools, but the technology has gone so far already :)

u/mkarnicki

KarmaCake day11September 13, 2017View Original