Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ttfkam
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
781.
▲
by
ttfkam
4y ago
I typically just map the source directories on the host. Good for --watch options. Works for me with Angular, Django, Svelte, and others.
782.
▲
by
ttfkam
4y ago
Depends on whether or not the following is set: export const prerender = true; If it is, it IS in fact compiled to HTML. :-) https://kit.svelte.dev/docs/page-options#prerender Compilers are awesome.
783.
▲
by
ttfkam
4y ago
Can you give one or two examples? I'm not trying to start an argument. I genuinely want to know where folks are running into speed bumps.
784.
▲
by
ttfkam
4y ago
> I don't want to relearn how to do for and if-statements. …so you'll learn the weird details of render(…), learn how to manage updating a whole extra DOM on top of the existing browser DOM, learn to deal with the abstraction l
785.
▲
by
ttfkam
4y ago
News flash: 90% solution not suitable for folks with 10% of problem domains. Full story at 11 o'clock.
786.
▲
by
ttfkam
4y ago
https://9to5google.com/2023/02/28/chrome-safari-battery-life...
787.
▲
by
ttfkam
4y ago
From the hub page regarding -slim: > These tags are an experiment in providing a slimmer base (removing some extra files that are normally not necessary within containers, such as man pages and documentation), and are definitely subject
788.
▲
by
ttfkam
4y ago
Right, because it has very poor component-level isolation for styling. React basically punted on CSS, and that's truly not a blessing in its favor.
789.
▲
by
ttfkam
4y ago
You mean you like your templates to be explicitly defined as a JS/TS render function. JSX is a templating language.
790.
▲
by
ttfkam
4y ago
I switched to debian-slim a while ago and never looked back. The base may be bigger than Alpine, but not significantly after packages and frameworks are loaded. node:lts-slim is 75MB node:lts-alpine is 50MB Yes, 50% larger, but also has gli
791.
▲
by
ttfkam
4y ago
Honestly, I love compose files for local development. Launch and init a database, a DB admin tool, middleware, and a UI server in a single shot. New team member: "How do I get the stack running?" Existing member: "Clone this
792.
▲
by
ttfkam
4y ago
So rather than fearing you're missing out, you went back to React to make sure you were missing out? ;-) Life is too short for constantly writing boilerplate and performance analysis on a virtual DOM. Don't fall victim to Stockhol
793.
▲
by
ttfkam
4y ago
Honestly, SvelteKit is pretty solid. They took their time trying to make consistent decisions rather than rushing 1.0 out the door and trying to backtrack later. All design decisions were out in the open on GitHub issues, and they spent a r
794.
▲
by
ttfkam
4y ago
React never was truly reactive. Even according to its devs. https://legacy.reactjs.org/docs/design-principles.html#sched...
795.
▲
by
ttfkam
4y ago
With all due respect, the majority of large React projects I've encountered devolved into non-uniform big balls of mud that only the original authors can (sometimes) understand. React's "non-opinionated" stance constantl
796.
▲
by
ttfkam
4y ago
Totally agree. I fully expect Svelte to start adding things like Nuxt 3's not requiring import statements for components. Hell, I could see in a couple years the script block allowing Rust with WebAssembly seamlessly generated but attr
797.
▲
by
ttfkam
4y ago
Or… y'know… just stop worrying about niggling details like this and just use Svelte. Svelte out of the box is much faster than React. You have to be well down the road of optimization before you hit parity, and optimized is almost neve
798.
▲
by
ttfkam
4y ago
useEffect is an abstraction leak. You're defending boilerplate that a compiler can identify and eliminate for you. Let computers do what they're good at so that we devs can concentrate on the actual problems being solved.
799.
▲
by
ttfkam
4y ago
+page.js: export const ssr = false; https://kit.svelte.dev/docs/page-options#ssr I don't get why so many people seem to think SvelteKit is SSR-only or that it's some kind of Rubik's Cube of configura
800.
▲
by
ttfkam
4y ago
It's what you consider central in a framework. For React, JS/TS is king. All markup and all CSS is subsumed in JS/TS. In Svelte, HTML/CSS is king, with the bare minimum of JS/TS necessary for any given task. With th
801.
▲
by
ttfkam
4y ago
There is nothing in React I'd regard as "terse". Perhaps slightly more terse than the mountain of boilerplate it required previously, but that's as far as I'd go. https://youtu.be/AdNJ3fydeao?t=702
802.
▲
by
ttfkam
4y ago
It's a sad state of things where React—even with hooks—is considered by some developers as "terse". It makes me wonder if we're all actually speaking the same language.
803.
▲
by
ttfkam
4y ago
Yes, but requires more than a day to describe a single day's events. As there are multiple parties at play and multiple perspectives on everything, even if folks wanted to watch news 24 hours a day, it's simply not tenable. So you
804.
▲
by
ttfkam
4y ago
That's a more charitable way of viewing it. Thank you.
805.
▲
by
ttfkam
4y ago
This is excellent. My only gripes have nothing to do with the execution of the training, only the terminology co-opted by MySQL. In MySQL, "schema" means the structure of the whole database. In other RDBMSes, "schema" me
806.
▲
by
ttfkam
4y ago
Are you really going to compare a technology like SVG that was supported by IE9 (and lower with a plugin) with one only just supported by the Blink engine May, 2022 in Chrome 101? For all intents and purposes with regard to web development,
807.
▲
by
ttfkam
4y ago
Ah, I misunderstood what you were trying to accomplish. Yes, it makes sense that you have to embed the SVG in your HTML doc. SVG isn't an image format; it's a document format just like HTML is. Embedding the SVG puts it in the sam
808.
▲
by
ttfkam
4y ago
Hold up. Are you blaming SVG because you don't know the <object> tag exists? I mean, yeah, you're right that CSS won't come through with an <img> tag. It will with <object> though. https://develop
809.
▲
by
ttfkam
4y ago
Font folks also really underestimated how much people like having access to graphics with more than one color.
810.
▲
by
ttfkam
4y ago
> but I really wish we could plan for these entirely foreseeable events ahead of time We did with Dodd-Frank after the 2008 housing crisis, signed into law by Obama. Would have stopped over leveraging found at SVB. Then it was rolled bac
More ›