Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,339 members, 7,815,675 topics. Date: Thursday, 02 May 2024 at 04:23 PM

My Journey Into Svelte Development - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / My Journey Into Svelte Development (2969 Views)

If Svelte Is That Great How Come React Is Dominating / My Journey Into React Native / Svelte Summit Sweden Hosted By A Nigerian (Live ) (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: My Journey Into Svelte Development by ajsans: 8:45pm On Aug 31, 2022
qtguru:


I replied,

Replied you sir.
Re: My Journey Into Svelte Development by qtguru(m): 7:46pm On Oct 04, 2022
So today at the office, we are working on an AppManager Portal, the old UI is really ugly, and every new project , I like to start with a new UI, because that often encourages proper care when it's fancy.

if you check our company site

www.olisystems.com

it's so clean, so I want to create a new Shell in Svelte for our previous app, it will have a structured CSS with CSS variables, so we can easily whitelist for clients, then create custom Svelte component.

I will share what I am trying to design for the Admin, I will share Before and after
Re: My Journey Into Svelte Development by Nobody: 8:07pm On Oct 04, 2022
@qtguru CSS bug on safari. Looks okay on Chrome though

Re: My Journey Into Svelte Development by qtguru(m): 8:18pm On Oct 04, 2022
DrLevi:
@qtguru CSS bug on safari. Looks okay on Chrome though

all you mac people angry grin

I will raise It up.
Re: My Journey Into Svelte Development by Nobody: 8:22pm On Oct 04, 2022
qtguru:


all you mac people angry grin

I will raise It up.
Lol... leave us o

Don't you own a Mac? I would expect anyone who works with cross-platform applications(React Native) to own one as your user base is most like more iOS users than android
Re: My Journey Into Svelte Development by niel63(m): 8:24pm On Oct 04, 2022
qtguru:


Yes I don't mind, my email is on my website, I don't want to be blocked, send a mail, I don't mind, I have some stuffs. You have basic javascript and React knowledge?

Lol... I don't want to be blocked. grin grin grin
Re: My Journey Into Svelte Development by qtguru(m): 8:35pm On Oct 04, 2022
DrLevi:

Lol... leave us o

Don't you own a Mac? I would expect anyone who works with cross-platform applications(React Native) to own one as your user base is most like more iOS users than android

I've had 2 Macs and given both out, I've always struggled with Macos and the touchpad, never say never, if I ever do IOS I will get one
Re: My Journey Into Svelte Development by qtguru(m): 9:12pm On Oct 04, 2022
niel63:


Lol... I don't want to be blocked. grin grin grin

nairaland spambot hits me a lot
Re: My Journey Into Svelte Development by niel63(m): 11:21pm On Oct 04, 2022
qtguru:


nairaland spambot hits me a lot

No be only you bro. And it's so so annoying. Sometimes I think that stuff is targeted.
Re: My Journey Into Svelte Development by qtguru(m): 4:03pm On Oct 06, 2022
So I did some design in Figma for the Portal,

Before vs After ??

1 Like

Re: My Journey Into Svelte Development by qtguru(m): 6:52pm On Oct 20, 2022
The irony of life, I will be studying DSA and Discrete Math but at work it's HTML and JS/Svelte, anyway I built an editable component for the new UI, all in Tailwind and PostCSS.

Watch this video to see how the Svelte Compiler works, trust me 2 years writing Svelte, it's not JS Knowledge


https://www.youtube.com/watch?v=eGHGJyxJAMk

Re: My Journey Into Svelte Development by qtguru(m): 11:28am On Oct 21, 2022
Svelte is really simple to write, I can't believe I am building a SPA this simple, just with createDispatcher, props and the update, you can easily build a reactive application.

All the UI Components are bound to props and the stores, so based on the data will determine what UI to render, we keep the mappings of the UI as a JSON.

{
type: 'name of Widget',
props: {}, the props are passed to the Widgets as constructor params which contains X,Y , W, H . so we only just loop on the JSON and dynamically instantiate the component during runtime, if the property changes, it re-runs the code to reflect the update. That's how you build a Drag and Drop Widget Component, this task allowed me to get deeper into Mouse and the HTNML5 Drag and Drop API.

Because we have an operation involving dragging one of the components into the main screen. if you check MDN it covers DropZone and DataTransfer

Re: My Journey Into Svelte Development by qtguru(m): 11:40am On Oct 21, 2022
I worked on this custom component, I saw the idea on Dribbble and copied it, initially it was a floating fixed form, but a team-mate suggested making each list into that edit form.

won't be a great idea if Svelte Compiler was done in C++ , after all there are JavaScript AST in C++ out there.

Re: My Journey Into Svelte Development by qtguru(m): 5:12pm On Oct 27, 2022
I made it into a custom component so we can reuse it, the code duplication in this project is insane, no Code coverage.

A List of items, that can be created in memory and then sent as batches to the API and can be managed.

Makes sense, the component-driven approach saves code duplication.

I hope JetPack Compose feels this way grin



I used named slots to swap between editable and saved mode and dispatcher for Custom Events.

Such simple design, nothing like complicated State management, Svelte uses a simple Pub/Sub store.

Re: My Journey Into Svelte Development by qtguru(m): 6:57pm On Jan 04, 2023
I have a major tasking coming soon, migrate 2 Svelte projects to TypeScript One project has close to 50k Lines of Code, and the other is not much, I plan to explore the idea of an AST Tool that parse JavaScript and see how we can write to TypeScript but in Svelte.

Each Prject has like 400+ files and a large code, I've written code on this base for like 2 years, and it was alot to understand.

I will update more here

1 Like

Re: My Journey Into Svelte Development by truthCoder: 12:12am On Jan 06, 2023
qtguru:
I have a major tasking coming soon, migrate 2 Svelte projects to TypeScript One project has close to 50k Lines of Code, and the other is not much, I plan to explore the idea of an AST Tool that parse JavaScript and see how we can write to TypeScript but in Svelte.

Each Prject has like 400+ files and a large code, I've written code on this base for like 2 years, and it was alot to understand.

I will update more here


Have you considered sveltekit with its new directory routing system?

Makes it easier to scale and manage.

With server and client hooks, and a lib/server that is never exposed to the client side and the new page/page.ts/page.server.ts/layout.ts files, everything is in its place and a place for everything
Re: My Journey Into Svelte Development by QuoteJustOnce: 4:19am On Jan 06, 2023
After spending close to 2yrs w/ Svelte, i still hate it.
Re: My Journey Into Svelte Development by peterincredible: 1:25pm On Jan 06, 2023
qtguru:
I have a major tasking coming soon, migrate 2 Svelte projects to TypeScript One project has close to 50k Lines of Code, and the other is not much, I plan to explore the idea of an AST Tool that parse JavaScript and see how we can write to TypeScript but in Svelte.

Each Prject has like 400+ files and a large code, I've written code on this base for like 2 years, and it was alot to understand.

I will update more here

Sorry if I digress a bit I know u are a martial artist and I will like to enroll before June ending please which one are you into?
2. How is the training schedule?
3. How did you locate a dojo near you?
4. How did you fit the training schedule with your job
Re: My Journey Into Svelte Development by qtguru(m): 1:34pm On Jan 06, 2023
peterincredible:

Sorry if I digress a bit I know u are a martial artist and I will like to enroll before June ending please which one are you into?
2. How is the training schedule?
3. How did you locate a dojo near you?
4. How did you fit the training schedule with your job

Lol I no be martial artist o, dem go beat me, but try SilverAlliance BJJ the fee is kinda pricey, I'm sticking with boxing first. The price was too much, but I have a friend who is a confirmed Martial Artist, I can link you guys up
Re: My Journey Into Svelte Development by truthCoder: 1:35pm On Jan 06, 2023
QuoteJustOnce:
After spending close to 2yrs w/ Svelte, i still hate it.

Come to the church of sveltekit.

Our approach to the gospel is a bit different.

Looking forward to seeing you on our evangelism team very soon
Re: My Journey Into Svelte Development by QuoteJustOnce: 3:24pm On Jan 06, 2023
truthCoder:


Come to the church of sveltekit.

Our approach to the gospel is a bit different.

Looking forward to seeing you on our evangelism team very soon

For today, I am a proud atheist
Re: My Journey Into Svelte Development by bularuz(m): 2:09am On Jan 07, 2023
qtguru:
This is the Application built in Svelte one thing you need to know about Svelte

1. routes on the browser are mapped to folder like Nuxt.JS
2. Script , Style and template is all that is required for a Svelte Component
3. Stores are observable
4. Svelte runs with Sapper which is SSR in nature
5. Svelte is reactive, it is built with reacitivty in mind
6. Svelte has no VirtualDOM
7. Svelte is not complex as React, by far the easiest framework to get into

Here is a screenshot of what Svelte Code looks like

Is this svelte or svelte kit?
Re: My Journey Into Svelte Development by qtguru(m): 7:16am On Jun 22, 2023
I decided to resurrect this thread, and anyone can contribute especially if you are into Chrome extension. It is the Svelte Development extension for Chrome.

Re: My Journey Into Svelte Development by qtguru(m): 10:13am On Jun 22, 2023
I think I might be close to fixing this bug, I will drag CJ on this

Re: My Journey Into Svelte Development by TheTraveler: 5:57pm On Jun 22, 2023
qtguru:
I think I might be close to fixing this bug, I will drag CJ on this
Hailings boss cheesy

(1) (2) (Reply)

Questions A Beginner Python Programmer Have / Gradle Problem In Android Studio / Learn How To Build A Realtime Chat Application With Django, Rabbitmq And Vue.js

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 32
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.