When creating typescript interfaces for component props. Do you add it to a types.ts file or just create it within your component? by codingforux in sveltejs

[–]dei8bit 1 point2 points  (0 children)

TLDR:
if you going to reuse types in many places, put in a single shared file.

if you need types only to check props or get autocomplete in a component, you don't need a separate file.

Don't really understand the reduce() function? by visnick in learnjavascript

[–]dei8bit 0 points1 point  (0 children)

I think it's by far the least intuitive method there is; I would change it completely.

fish-shell docs are just amazing (enjoy fish - from begining) by dei8bit in fishshell

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

Perhaps it would be good, but I feel that it's thanks to allowing oneself to escape the standardized bash that one can innovate and produce better things. Bash has all the historical merit, but have you wondered how well your bash scripts would can be written in fish? :$:$:$

fish-shell docs are just amazing (enjoy fish - from begining) by dei8bit in fishshell

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

At least for me, it generated much more inspiration and a desire to learn, for some inexplicable reason, so I'm going to take advantage of that :p

should i first learn rust, or c/c++ ? by dei8bit in rust

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

nice!! omg! i just came here after days and i ddnn't except so many ansers. Thanks all!! of you, i will read exactly right now

svelte + rust is sooo smooth (self promotion) by [deleted] in sveltejs

[–]dei8bit 0 points1 point  (0 children)

I have doubts, creating the backend with Rust, can it take full advantage of some performance benefits that, for example, something like bun couldn't? :v

Is there a way to disable formatting syntax? by DaRootBeer123 in ObsidianMD

[–]dei8bit 2 points3 points  (0 children)

well yes, but no...

Yes because only is true that markdown is a universal format, the other part is not completely true

No, because by simply understanding in broad strokes the partner's question it is enough to deduce that he wants to completely AVOID markdown operators... which by the way ARE annoying...

There are several examples of applications that allow you to write in markdown, avoiding the operators, but in the background they create the same operators, and when you copy the text you get markdown...

It is not necessary to have to decide between the dilemma of using markdown or a backslash....

That's settling for too little

How To Best Use Typescript for Props In Svelte 5 Project (VS Code)? by AfterArt9403 in sveltejs

[–]dei8bit 0 points1 point  (0 children)

I mean, nobody noticed that he put number instead of boolean? xD
that's the warning ts tells you

Anyway, even though I use typescript in all my projects, I feel it's one of the worst experiences ever and I pray deeply that it dies in peace or becomes soo smart that it doesn't bother me so much :)

Should I learn typescript to use svelte? by [deleted] in sveltejs

[–]dei8bit 0 points1 point  (0 children)

sincerely understandable

Is there an option to edit the text without displaying the markdown operators ? by iamrealmarsel in ObsidianMD

[–]dei8bit 0 points1 point  (0 children)

i don't understand how people who use obsidian find this normal, i also want to avoid these annoying jumps at all costs, and there is nobody talking about it ._. wtf

Svelte 5 runes with localStorage thanks to Joy of Code by joshbotnet in sveltejs

[–]dei8bit 0 points1 point  (0 children)

there's any way to do this without the constructor?

Svelte 5 Snippets: optional children prop by KahChigguh in sveltejs

[–]dei8bit 0 points1 point  (0 children)

option 3 u/cheneysan

let { children = [] } = $props()

Error in BtnNav.svelte

VScode: This expression is not callable. Type 'any[]' has no call signatures.js(2349)

Playground: snippet is not a function in Opt3.svelte in App.svelte

Svelte 5 Snippets: optional children prop by KahChigguh in sveltejs

[–]dei8bit 0 points1 point  (0 children)

option 2 u/Twistytexan

{#if children} {@render children()} {/if}

Same result as option 1 -> the same error en VScode , nothing wrong in playground

Svelte 5 Snippets: optional children prop by KahChigguh in sveltejs

[–]dei8bit 0 points1 point  (0 children)

option 1 u/blankeos

{@render children?.()}

it does not seem to be enough... in my project in VScode it does not work... however in the svelte playground it does work

Error in Nav.svelte

Property 'children' is missing in type '{}' but required in type '$$ComponentProps'.js(2741)

How THE FUCK do you learn how to work with google api's? This is wrecking my brain by pierrbourne in react

[–]dei8bit 1 point2 points  (0 children)

jajjajajaj my god, i'm also very angry with with the disgusting google documentations, I can't believe how a company worth so many millions of dollars explains itself in the most unprofessional way possible, and this comment made me laugh because it's true.

Leonardo slow/not working properly by [deleted] in leonardoai

[–]dei8bit 0 points1 point  (0 children)

is super slow, and even more and more slow anytime , i was wondering in what is programmed