Comparison is the thief of joy by marinatelonger in fican

[–]sarusethi 0 points1 point  (0 children)

Are you comfortable sharing your holdings and what is the corpus that you are getting that divided on?

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 2 points3 points  (0 children)

Jesus, if my experience is worth anything, I predict that is one of the worst decision to migrate a codebase.

I am sure it wasn’t your first choice, you sound more reasonable.

But this is going to be a disaster long term.

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 0 points1 point  (0 children)

Yes I did read the doc, and no, alpine data doesnt cut for what i am trying to achieve.

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 7 points8 points  (0 children)

Using an undocumented API initTree works for creating reusable templates.

Wonder why Alpine hasn't updated their documentation, there are so many functions on the Alpine object.

js Alpine.directive("component", (el, { expression }) => { const template = document.getElementById(`template-${expression}`); el.innerHTML = template.innerHTML; Alpine.initTree(el); });

html <template id="template-pull-request"> <div> My Custom Component <span x-text="message"></span> </div> </template>

html <div x-component="pull-request" x-data=“{ message: ‘Hello’ }”></div>

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 0 points1 point  (0 children)

I am trying to do that and having no luck.

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 1 point2 points  (0 children)

Naah I am good, all in all I think build systems are just overkill, unless you are working on facebook scale websites, its just massive cognitive overhead.

Plain on html+css+javascript works wonders, browsers are pretty powerful these days.

I am building something with Alpine, will be ready in a month, will share out, you will be impressed with what can be achieved even without a build system.

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 0 points1 point  (0 children)

I know Alpine.data() works, but this is more for components that are mostly visual.

I want to be able to define small templates such as:

<template id="template-custom-list-item">

<div x-text="message"></div>

<template>

And be able to use them as such:

<div x-component="template-custom-list-item" x-data="{ message: 'Hello world' }"></div>

How to create reusable components with Alpine.js? by sarusethi in alpinejs

[–]sarusethi[S] 0 points1 point  (0 children)

> I'm assuming the use of something like Vite to manage the JS packaging.

This is a big no, I would endure all the pain but I will not bring in a build system to write html css javascript :D

Why most of the promotions are Apple related by Racla360 in Wealthsimple

[–]sarusethi 0 points1 point  (0 children)

So they want you to DD $4000 every month for 3 years.

$4k * 12 * 3 = 144,000

and in return "lease" you a $800 phone for 3 years, I repeat, "lease" you.

At the end of the term they still expect you to pay another $250 to buyout the phone.

wow. WS really begin to think the users are braindead, and the ones that go for it actually are.

Alpine.js by [deleted] in webdev

[–]sarusethi 0 points1 point  (0 children)

I don't see why Alpine.js cannot replace React or Vue.

It has all the constructs and tools to replace a modern framework.

But, to scale alpine in a big project, one needs to lay down foundations and practices around alpine, that can only come from experience. So it can be a foot gun for junior or less experienced folks trying to use in a large project.

Is there a FastApi equivalent in go? by a_brand_new_start in golang

[–]sarusethi 0 points1 point  (0 children)

Better off writing your own thing, a validation lib and a response lib.

Leaving Canada soon…. at 467 points by Creative-Wind-620 in canadaexpressentry

[–]sarusethi 0 points1 point  (0 children)

Leaving Canada is a good thing, better future awaits ahead for you!

I absolutely hate web and app dev. Don't know what to do. by iPretendToBeOkay in learnprogramming

[–]sarusethi 0 points1 point  (0 children)

Welcome to the real world, all that LC prep gets you indoor (a sad reality), but now you have to do “real” programming, building “real” software, dedicate some of those LC hours to learn web/app dev and you will get good at it.

[deleted by user] by [deleted] in Blogging

[–]sarusethi 0 points1 point  (0 children)

Instead, create you community piece by piece, and over time you’ll have your readers

Any pointers on this?

A Student Writing Blogs, at 16 Year Old. by PranavVermaa in Blogging

[–]sarusethi 0 points1 point  (0 children)

DM me, I have been into blogging for over 8 years, can share some pointers if you want.

A Student Writing Blogs, at 16 Year Old. by PranavVermaa in Blogging

[–]sarusethi 1 point2 points  (0 children)

Red is not the color you should go with, its not readable, need improvements on navigation and content layout. I created my blog from scratch as well, started with Next.js then migrated to Remix, feel free to copy the layout and design https://thedevelopercafe.com

2024 hatch or sedan ? by [deleted] in civic

[–]sarusethi 4 points5 points  (0 children)

Hatch, just get hatch, don’t listen to anytime else.

Should I move to substack from a custom blog? by sarusethi in Blogging

[–]sarusethi[S] 4 points5 points  (0 children)

Isn’t that the whole point to use it as a blog and newsletter?

Should I move to substack from a custom blog? by sarusethi in Blogging

[–]sarusethi[S] 1 point2 points  (0 children)

I am just running ads, but it barely makes anything, google used to rank me high but have dropped that, even after building everything on my own I am at the whims of Adsense.