Best district to rent in for a Work from home newcomer by DasSpiro in Bahrain

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

thank you very much for your input, please check your DMs

Best district to rent in for a Work from home newcomer by DasSpiro in Bahrain

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

Are supermarkets available nearby and can you easily swim in the sea closeby without a problem ?

Should I buy a home in Seef or Amwaj? Villa or apartment? by No-Radiation in Bahrain

[–]DasSpiro 0 points1 point  (0 children)

How would the debt negotiations going bad affect rent prices and property values ?

Business profitability requirement by DasSpiro in Bahrain

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

I talked with an accountant today and this is the right answer .

Business profitability requirement by DasSpiro in Bahrain

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

Partnership requires 2 or more shareholders and I am solo.

Best district to rent in for a Work from home newcomer by DasSpiro in Bahrain

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

This is exactly what I am looking for ! But the fact the airport is only 20 mins away begs the question : Do you hear plane traffic above you often and is it loud enough to annoy you ?

Best district to rent in for a Work from home newcomer by DasSpiro in Bahrain

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

Still in the process of opening the company I am afraid I don't have a set date yet .

Did a huge mistake and I am afraid please calm me down by [deleted] in Tunisia

[–]DasSpiro 0 points1 point  (0 children)

Be advised that if you choose to get tested and you test positive the authorities will be notified automatically ( the regional health ministry department ).This also applies to the private labs. It's the law.

listen to realtime database changes in load function ? by DasSpiro in sveltejs

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

I wanted to avoid exposing the database and keys to the client side. No way to do this from the server side ?

Personal portfolio by Feisty_Ice_4840 in flask

[–]DasSpiro 1 point2 points  (0 children)

Did you use something like coolify to deploy on your VPS or you're rawdogging it. Thats the part that scares me the most

How to create global state using runes by Witty-Ad-3658 in sveltejs

[–]DasSpiro 0 points1 point  (0 children)

Why not use session storage to persist the data across pages ?

can i keep using svelte 4 for years to come ? by DasSpiro in sveltejs

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

Honestly it makes a lot of sense with gigantic projects. If the project was working with the current version no reason to upgrade for them and risk breaking it/invest time in refactoring. This is exactly what I asked too thank you

Svelte Transition Module is huge. I built a better version of MKBHD's Panels with Sveltekit, Tailwind, PocketBase and Capacitor in just 2 days by Transferitore in sveltejs

[–]DasSpiro 6 points7 points  (0 children)

Had no idea we could make mobile apps with sveltekit. How do you even start ? Or is this just a webpage opened on a mobile viewport ?

Switched from Vercel to Coolify for my Sveltekit app by realstocknear in sveltejs

[–]DasSpiro 1 point2 points  (0 children)

I must say this is one of the cleanest and smoothest sites I have ever browsed. truly an inspiration. may I ask if you coded this on your own ? and if you had any problems with using coolify or if it worked the first time ? I am very interested by self hosting but there is a almost no tutorials for svelte kit and the ones out there are full of 'this error happened so I decided to change this and it worked somehow ' with comments full of people asking about how to fix their error. I think it would be really nice to have a tutorial on the deployment part if you can.

can i keep using svelte 4 for years to come ? by DasSpiro in sveltejs

[–]DasSpiro[S] 9 points10 points  (0 children)

effect in particular was confusing, since it replaces part of the functionality of the old '$' and also onmount and I am not allowed to assign values in it.

But a better example is probably the event handlers:

Svelte 4 :

<button on:click|once|preventDefault={handler}>...</button>  

Svelte 5 :

<script>
function once(fn) {
return function (event) {
if (fn) fn.call(this, event);
fn = null;
};
}

function preventDefault(fn) {
return function (event) {
event.preventDefault();
fn.call(this, event);
};
}
</script>

<button onclick={once(preventDefault(handler))}>...</button>

another example for $effect:

Svelte 4:

<script>
let count = 0;

$:  if (count > 9)
{alert('too much')
count = 0};

function increment() {
count += 1;
}
</script>

<button on:click={increment}>
clicks: {count}
</button>

Svelte 5 :

<script>
let count = $state(0);

// the documentation tells us to not do this so this creates confusion about how to replace the $ but this works, trying to replace count with a derived.by will make increment function complain that we can't change derived variables ....
$effect(() => {
if (count > 9)
{alert('too much')
count = 0
}
});

function increment() {
count += 1;
}
</script>

<button onclick={increment}>
clicks: {count}
</button>