News for hackers. Stuff that matters.

hashedout

Re:DaisyUI – Tailwind CSS Components on Friday July 30, 2021 @03:56AM (#28005582)
This argument makes perfect sense. The easy adoption that never gets updated in future sounds bland.
Re:DaisyUI – Tailwind CSS Components on Friday July 30, 2021 @02:42AM (#28005136)
What if you as a beginner can start using Tailwind immediately with this library and can learn tailwind's utility classes at your own pace when you need to customize anything?

I'm not sure about this path, but it might be good for a beginner.

Re:DaisyUI – Tailwind CSS Components on Friday July 30, 2021 @02:40AM (#28005122)
I see this not as a replacement, but as a novice choice. As noted in the documentation, you can use tailwind classes to customize existing components but if you do not want to you can use it like bootstrap. Even for building a quick prototype which can be made to look good in future is a use case for this.
Re:DaisyUI – Tailwind CSS Components on Friday July 30, 2021 @02:38AM (#28005113)
Yes, the way I use it is with Svelte. I've created a list of components in Svelte (buttons, links, dropdowns, tables, etc.) I think with how tailwind makes you html look (very full of classes), it is perfectly matched with a component based framework.

That way you get the full tailwind experience without the tedious rewriting of components.

Re:DaisyUI – Tailwind CSS Components on Friday July 30, 2021 @02:04AM (#28004932)
This is a very nice step in making Tailwind more Bootstrap like (read beginner friendly). One common complaint about Tailwind is that it makes the HTML look very full (full of classes).

A very good example on OP's website for a button:

Using tailwind:

  <a class="inline-block px-4 py-3 text-sm font-semibold text-center text-white uppercase transition duration-200 ease-in-out bg-indigo-500 rounded-md cursor-pointer hover:bg-indigo-600">Button</a>

Using daisy:

  <a class="btn btn-primary">Button</a>

Although I personally think that the corners at a bit too rounded by default, giving it a very amateur look but I think you can customize that.

But a very promising project indeed.

Re:Tauri: An Electron alternative written in Rust on Friday February 19, 2021 @12:02PM (#26195158)
Hmm, there doesn't seem to be any real applications made with it yet. Though, the roadmap looks good.
I didn't know that Next made things easier, will try reading up on this.

Ask HN: Easiest JavaScript front end framework for a back end dev?

Hello HN!I'm a working as a NodeJS dev for past 2 years. I find working on frontend very tedious, this is the reason why I purchase themes as they already have custom components. For a personal project I've built the whole frontend using EJS to render HTML, the vanilla JS to do everything else.I tried learning React but it was a steep learning curve for me. Now I want to convert the whole...

( Read More... | 9 comments | 3 points | on HN )
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @12:18PM (#24306704)
This monsoon my backlight started to die. Kept it in a dry environment, it fixed itself. ffs apple.
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:50AM (#24305554)
> Can't debug issues in Safari without borrowing a Mac

Run hackintosh on thinkpads. There are a lot of already completed configs available for both the clover and opencore setups.

Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:47AM (#24305516)
I hope the gitclear project succeeds. It promises so much and it is backed by many people as well.
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:44AM (#24305476)
That is because the integration is not there in the linux ecosystem. Apple has this very tight integration because it controls both the hardware and the software.

But there are some companies which have started doing the same thing:

- System76

- Tuxedo

These companies test their devices well on a distro and well, it reflects in their pricing too!

Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:07AM (#24304987)
Up your budget about 100$ and you get get a 4th gen intel X1 carbon used. Very good laptop.
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:06AM (#24304972)
The ones with 10th gen Intel processors with the "new" keyboard are very good
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @10:02AM (#24304927)
What is up with windows laptops battery? Even though a brand new laptop could last for 14 hours it degrades so much after an year.
Re:One Year with ThinkPad and Linux (From MacBook Pro) on Friday August 28, 2020 @09:56AM (#24304861)
Macbooks have nailed down the basics when it comes down to the user experience:

1. Best touchpad period.

2. Good overall keyboards (Ignore the 2016-2020 butterfly keyboards)

3. Best sounding speakers.

4. Every display has 400+ nits of brightness with good color accuracy.

5. Very good battery life per watt-hour of the battery and lasts better with time as well.

The package is what make the macbooks great. I don't have to go through a list of laptops and go through pros and cons of laptops and there are a LOT of cons.

You may think that bad sounding speakers or 250 nits screen is not a very big deal but just try using a macbook for a while and you'll see how these these make a drastic change in the user experience.

People go on about how macbooks are over-hyped and expensive (they are!) but I think that what they offer is a level above anything else on the market.

I am using a MBA 2015 for my dev purposes and sometimes the 8Gigs of RAM feels like it could use an upgrade. (I want to upgrade but it is so much expensive moving on to the new ones). I've tried so many laptops and none of those impress me. This is the only reason that Macbooks, even though they cost a bomb, last for well over 10 years.

Edit: It "seems" windows laptops are catching up, but please list one laptop that would be usable after, say 8 years. For eg. a MBP 2012 will still work very good in 2020 compared to any of the laptops from even 2015. Are there any windows laptops in 2020 that you can say the same for?

Re:Why the iPhone can’t compete in India on Wednesday July 25, 2018 @10:12AM (#17609351)
The units that Apple moves in India is still significant but the population being so large, the "market share" is very low due to pricey hardware. Apple is not a lesser known brand in India, in Metro and even small cities, people do use Apple products but the middle class and lower economy people can't afford such an expensive phone. This is the reason why Xiaomi, Moto, Lenovo have taken over big names such as Samsung in terms of market share. Most people who buy iPhones in India do not care about the ecosystem that Apple offers, it's just a status symbol to them. In fact most of the population doesn't care about the ecosystem that a device offers, they just want a bang for their buck.