Take note web developers!
If I can't copy a URL and share with anyone on my team for them to see the same content I looked at, your product won't catch on and I'll find an alternative solution.
Today marks the day I say goodbye to Typescript as I've known it 👋.
• No more .ts files
• No more source maps or lack thereof
• No more "convert my .ts to .js files and store them in some other directory"
JavaScript with JSDoc comments it is. Starting with my libraries.
I'm at a conference and listening to what young people talk about is fascinating.
They literally waste money and time trying to solve problems for which we've had solutions for years...
Auth, blob storage, web app deployments, CORS (yes... CORS...)
I don't want to hurt anyone's feelings, but holy cow is React a mess.
What does this code snippet even do 😰?!
There's an `if` statement to check a variable, which is set in some sort of promise-land, but `useEffect()` seems to be synchronous?!
Long day, I'm out :)
"Prisma sucks" (not the exact wording used)
First time I disagree with anything Rich Harris said ☺️.
Maybe it's just because his paycheck is sent by Vercel now and using raw SQL in a JavaScript file is what they do :).
In any case, Prisma is my go-to.
React developers: 🎉 a new state management library has been released.
Svelte developers: 🥱 we use built-in stores and haven't learned a new concept in ages.
How to start 2022 as a new web developer:
• ✍️Publish an article per week to share your journey
• 🧑🎓Learn HTML
• 🧑🎓Learn CSS
• 🧑🎓Learn Javascript
• 👷Develop a blog
• 🧑🎓Learn Svelte
• 🧑🎓Learn SvelteKit
• 👷Improve your blog
🧵👇
Such a pleasant developer onboarding experience
@withspectrum
! I've got a 15 minute video, auto-generated by
@Cypress_io
end-to-end tests, that teaches me everything I need to know about the project. Next:How can I store videos for feature happy paths and use it in documentation?
TIL: Don't run `./node_modules/.bin/<your-binary>` in your CLI. Instead, run `yarn <your-binary>`. Just like binaries are available directly in npm scripts,
@yarnpkg
knows how to run them in the CLI.
Vite is fast and I would never go back to anything else.
However, I'd go forward and give Farm a go!
Vite-compatible, but waayyy faster according to their website.
@ProjectKenneth
The question is unclear to me. If you meant in his free time, his answer is fine.
If you want to know how he fits studying into his workday, then yeah not an ideal answer.
I constantly learn stuff well beyond my day job, but I enjoy it. I don't expect that from everyone.
I hope you're all ready for 2022 🥳.
It's the year of:
• Gitpod
• Svelte & SvelteKit
• Tailwind CSS
• Prisma
• pnpm
• changesets (automated changelogs)
For persistence, I don't have a clear view yet. Maybe Supabase or Fauna, but I also see potential for DBs on Railway.
Oh boy... what a day for
@gitpod
😭.
Student plans cancelled, self-hosted cancelled, features locked behind a credit card, prices up at least 56% (for some even 210%).
A product built by over 200 contributors, free of charge.
VC-funded open source may not be what we want.
I'm pleased with that result 🚀.
On average, 1 person has viewed my new Full Stack Web Development course PER SECOND for the past ten hours 😅!
Course:
AMA in a few hours:
@matschik_
I presented at a local meetup this week, showed a HTML form and asked how to submit this to the backend.
The first answer was about binding fields to variables, then build a click handler, then submit, then process JSON response...
If you have a
@sveltejs
store you want to persist to local storage, use by
@joshnuss
.
The migration from a regular store to a persisted store couldn't be any simpler.
Nicely done, Josh 👏!
There it is!
@sveltejs
SvelteKit 1.0.0-next.292 introduced a config.kit.prerender.default option 🙏!
That's 420 files that no longer require `prerender = true`.
One less thing to worry about as more and more people contribute to the Gitpod website repo 🥰.
Talking about Vercel. It is absolutely shocking how often people referred to them as if they were the only provider available.
When I brought up Netlify, Cloudflare, Cloud Run, , etc I got that look of "Who are you? It's Vercel or nothing"
I've wanted to experiment with
@sveltejs
and
#xstate
for a while... May I present: tonight's dinner project.
Try it:
The UI layer & state machine look clean (see replies), but there's a learning curve for XState of course.
When you live in my neck of the woods 🇨🇦, you must take full advantage of any sunny hours 🌞!
Which means I'm now running an evening shift to create an upcoming full-stack web development course, developed entirely on
@gitpod
.
• No local code
• No local server
• No local DB
Thanks to someone (who's not on Twitter) in the Gitpod community, I learned that
@storybookjs
now supports the native format for Svelte stories.
This is beyond exciting for anyone who writes
@sveltejs
components!
Lots of
@solid_js
vs
@sveltejs
talk recently.
I certainly support anything that has developer and end user experience in mind.
BUT... I see no reason why JSX still exists. Why do I need to write JavaScript to create HTML? Just let me write HTML, with a bit of added logic syntax
@frantzfries
It has all the flaws the other cloud-only solutions have as well...
I realized cloud-only is the worst kind of lock-in you can imagine.
For every downtime, you're entire team is dead in the water.
Local-first, cloud-optional is the solution.
@KevinNaughtonJr
But they care how frequently you release new features and how long it takes to fix bugs.
Pick the wrong tech stack and you're screwed.
@MatijaSosic
The main reason I give it a try is because the code I ship as part of the library is the same code I write.
This makes debugging very efficient. It also lets any users of the library change the code in node_modules, test it, and open a PR if they find a bug
@traversymedia
1️⃣ Discuss the project idea with people
2️⃣ UI prototype
3️⃣ Collect user feedback
4️⃣ Architecture design
5️⃣ Pick a backend/API & database
6️⃣ Build the app
Later this year, will significantly speed up the development of a full-stack app.
If you have
@sveltejs
SvelteKit hooks that only apply in certain scenarios, here's a pattern I use.
For `/api` requests, I have a few related hooks. For any other request, these hooks are not needed.
Yet another example of why
@sveltejs
SvelteKit continues to be my web framework of choice.
They recognized a pattern of how developers use endpoints, simplified that pattern and built it into the framework.
Node.js 16 LTS started on October 26, 2021.
AWS Lambda, and hence
@vercel
, still don't support the current LTS version - 123 days later 😰.
All I wish to do is to publish docs for my project, built with
#vitebook
which requires Node >= 15.
Do you have image upload on your web app?
Do people have to click on the input element, then select an image from their computer?
Do you wish they could instead paste an image from their clipboard?
Here's a short demo of how to do that with
@sveltejs
.
@jdfwarrior
@celikovic
@SvelteSociety
Ah the usual fear... I heard that when jQuery was new, then again when React was new. Now with Svelte.
Let me know if I can talk to anyone on your team. We run 130+ pages with SvelteKit, code at .
Am I ok 🤯?!
I have a page at /datasets that displays a list of, you guessed it, datasets. Click on one and it opens a dialog with the selected dataset's details. It also changes the URL to /datasets/<id>.
I had no idea you can import a
@sveltejs
page in another page!
Who wants to 10x their team productivity?
Message me and we'll automate your developer environment together.
Bonus: If you use
@sveltejs
or want to learn it, we'll 20x your team productivity.
I stumbled across and it is by far the easiest solution to sync
@logseq
across multiple devices!
1. Install on phone
2. Install on laptop
3. Open app on either device, scan barcode of the other device
Repeat step 3 for additional devices.
I am going to host this to discuss my
@freeCodeCamp
course.
Tech stack, behind the scenes, and if I feel like it, some predictions for 2022 🙂.
Check the course at .
@sveltejs
with
@prisma
hosted on
@vercel
🎉
What he said, and what I've said for years.
If you build web apps and don't understand web fundamentals, don't use React.
Start with Svelte, it'll reach you how the web works. Then learn React, you'll give up soon enough and stick with Svelte :).
I'm tired of protecting React/Next by saying you should learn them over Svelte if you want a job.
Fuck that, Svelte/Kit will teach you everything you need to know about JavaScript frameworks and if you're proficient with it there is nothing stopping you from applying to any
I published "Don’t be the bad cop in pull request reviews — Let software do that job". How and why I introduced
@DangerSystems
to my teams. Feedback is welcome 🙏
@javagrifter
😰 Too close to home... I once worked with a partner on a cloud computing proof of concept where developers downloaded data from the cloud to their laptops, did all the processing and ML modelling locally before uploading the results back to the cloud.
How do you manage open source projects with 50+ open issues?
Isn't triaging turning into a full-time job at that time?
The Gitpod marketing website is at 90 open issues and I dread even thinking about it... 😰.
If new issues > closed issues per day, what does one do?
🧵
I use StackOverflow less and less over the years.
Posting something often resulted in a hostile experience.
With so much open source, I tend to check project issues first, then search a project's community, then search online and prefer recent blog posts over StackOverflow.
I had a quick look at the next version of
@sveltejs
. Hot reloading while preserving the UI state is fantastic!
Watch the video to see how I change the button text without resetting the counter.
With the release of "State of JS 2020" and
@sveltejs
taking the top position, it's great to see how suddenly everyone talks highly about it, even those die-hard React people. Welcome to the future of web development everyone 🎉!
Who would be interested in some build-in-public sessions when I work on the website?
@sveltejs
with SvelteKit, styled with
@tailwindcss
and all developed entirely in cloud-based dev environments with
@gitpod
.
A periodic reminder that your browser doesn't know what to do with the className attribute.
2022 is going to be (yet again) the year of
@sveltejs
!
Web development will (yet again) be simpler, fun and provide great end user experience.
Once my PR gets merged, the Gitpod website's
@sveltejs
source code will get a lot cleaner.
You won't be able to push unless "svelte-check found 0 errors, 0 warnings and 0 hints"
Why so strict? Because even small code smells turn into a stinky mess, see broken windows theory.
@HugosOffEarth
That's right, that's what I suggest.
If this impacts your computer resources, I suggest you upgrade your computer.
Minutes to wait for CI to tell me I didn't format my file correctly or have a lint error is a massive waste of time.
Want to work on the most sophisticated
@sveltejs
SvelteKit & Tailwind CSS web app I've worked on in forever?
DM me, we're looking to hire a frontend engineer at Goldsky.
Things like live dashboards and custom-built UX to create data processing streams.
🎉✨ 1⃣0⃣0⃣,0⃣0⃣0⃣ ✨🎉
Less than a week since it launched and my course on
@freeCodeCamp
reached 100k views!
To all of you who've watched it: THANK YOU 😊
If you want a stack that's solid for 2022 and beyond:
@sveltejs
on
@vercel
developed on
@gitpod
!
I prefer
• uvu instead of Jest
• pnpm instead of npm or yarn
• Svelte instead of React or Vue
• Monorepo instead of multiple repos
• Typescript instead of JavaScript
Play around, pick the tools you're comfortable with and start building.
I had a feeling I would like the new
@sveltejs
routes layout.
I've migrated my first project to it and can confirm: It's clean, well organized and I can immediately tell which file I need to open to get stuff done.
Incredible effort, congratulations to the maintainers!
Kudos to
@Zoho
for showing where my data resides.
I've had an account for years, but only now start to use it as my daily productivity suite. So far it's been smooth sailing.
I haven't written a single line of
@sveltejs
v5, yet I'll likely be among the first people who upgrade a project to v5 once it's officially released.
Why?
1. For the last 4 years, Svelte releases never disappointed
2. I know they value developer experience
3. Newer is better
You can't be a senior software engineer if you're 20 years old - that's just not how this works.
This may hurt some of you, but you'll understand when you get older 😉
Proof me wrong.
React is on its way out and will be treated as we treat jQuery today. It'll be widespread, always used but not what is recommended.
@sveltejs
,
@astrodotbuild
et al with 0kb JavaScript is the web of the future.
Also... Write less code!
@trumbitta
I think JavaScript (JSX) as the main language to develop web apps gives the wrong impression.
Web apps should work just fine without JavaScript.
JS is to enhance the user experience for people who have JS enabled.
Using
@sveltejs
components in Markdown files never gets old.
Top: A .md file
Bottom: Live preview of ☝️
Svelte & XState, a new article available on later today.
So, personal opinion here. This is a way bigger deal than GitHub Codespaces. Why? Because both Gitpod and GitLab are open source and give you choice. Run it in the cloud, host it yourself, whatever works for you.
Vendor lock-in with GitHub is real and is not what you want.
It's live! Check out the super-cool new native
@Gitpod
button in
@GitLab
🔥
We’ve partnered with
@GitLab
to give you fully-automatable cloud dev environments at the click of a button – from any Project 🚀
Read more 👇
A rather nice way to kick off summer! I received my
@GCPcloud
Associate Cloud Engineer certificate. If you don't use Google Cloud Platform yet, it's worth spending some time to explore their docs, you might be positively surprised with what you find 😉!
Write blog posts for yourself - others may find them useful too.
I'm adding
@prisma
to a
@sveltejs
SvelteKit app and remembered I wrote a blog post about it.
A few minutes later and I'm done, thanks to past me who thought about future me.
Here's a reminder that there's more to web development than learning React.
If you don't know JavaScript fundamentals, don't bother with React, Vue or Angular.
If you're new, learn JavaScript and how the web works. Then have a look at
@sveltejs
. I'm here to answer questions.