Nerd02

joined 2 years ago
MODERATOR OF
[–] Nerd02@lemmy.basedcount.com 16 points 2 years ago (5 children)

Yes, I agree, person whose comments I see under literally every post

[–] Nerd02@lemmy.basedcount.com 1 points 2 years ago (1 children)

Certified email would solve this, if it was possible to self host it.

Unfortunately running it requires government approval and the resulting emails are legally binding, so I assume hosts will have to go through all kinds of security controls and audits.

[–] Nerd02@lemmy.basedcount.com 3 points 2 years ago

That wasn't really what I was paying attention to the last time I looked at the logs but going off memory no, you can't.

The Lemmy logs are very privacy friendly which is good most of the times but a tragedy when someone posts illegal stuff to your instance and you have no way of tracking them down.

[–] Nerd02@lemmy.basedcount.com 59 points 2 years ago (5 children)

This post glows so hard I'm going to need a pair of sunglasses.

[–] Nerd02@lemmy.basedcount.com 2 points 2 years ago (1 children)

True to an extent, although that is a bit of a can of worms on its own. I don't know if there are any EU laws on the matter, but for what concerns Italian law they can't charge you just for accessing the beach.

Meaning, you have the right to pass through it (as it's public soil) as well as accessing the sea (cause again, it's public). If you use the beach for anything other than walking through it (including sitting, lying down and such) I think the licensee is allowed to charge you. I say it's a can of worms because in practice some places will forbid you access or make it functionally impossible with barriers and such. And usually people can't be bothered to call the cops and fill out papers, so they just go around them.

[–] Nerd02@lemmy.basedcount.com 17 points 2 years ago

Then I guess this is what you get for talking about something without knowing what it is lol.

As another user pointed out, TypeScript is a different language (.ts extension) that extends JavaScript, meaning JS code is valid TS code, but TS adds various language features for type checking. Your editor is then able to interpret your code according to these type structures and warn you if you are making any stupid type errors like this one:

The problem many people have with TS (such as the "big projects" mentioned by Fireship) is that sometimes you end up having code that works but still have to do some weird type gymnastics to please the TS compiler and have it remove any errors and warnings.

That being said, frameworks that "create really weird undecipherable minified JS" do have their place, as they allow you to seamlessy do things that would be either very inelegant and verbose or significantly more complex in vanilla JS, but I won't bore you with an excessively long wall of text.

PS: I love your Czech flag website. Had me jump on my chair when the music started blasting through my headphones.

[–] Nerd02@lemmy.basedcount.com 25 points 2 years ago* (last edited 2 years ago) (4 children)

How is that related to TS? Aside from the fact that your comment might have just started a civil war (no, vanilla JS is not "good enough", they created libraries for a reason) this isn't about using libraries / frameworks. It's about needing some system to handle type annotations to avoid falling in the bottomless pit of:

Uncaught TypeError: Cannot read property of undefined

[–] Nerd02@lemmy.basedcount.com 12 points 2 years ago

There's no real alternatives to JS "for websites" (meaning on the frontend, the part of your code that gets executed on your client's browser). That's what JS was invented for and what it does best.

I say "no real alternative" because technically we also have WebAssembly, which is a tool that allows you to run code written with any language on the web, but if you indeed are a beginner approaching to web development you should just forget about this for now and stick to JS as you learn.

Of course this doesn't mean that you can't use Python on your backend, your server.

[–] Nerd02@lemmy.basedcount.com 30 points 2 years ago (6 children)

I think there's a positive coming from this competition, though. Apparently this infighting has re-lit the want for type annotations to be embedded in vanilla JS (ECMAScript proposal). I feel like this would be the ideal scenario: things working right out of the box without needing a compile step or additional tooling.

You can get as close as it gets to this experience by using alternative runtimes such as Deno or Bun, which have native TS support (meaning you can just execute a .ts file without having to transpile it), but of course as soon as you have to write code for a browser you are back in the middle ages.

[–] Nerd02@lemmy.basedcount.com 24 points 2 years ago (3 children)

I get your point, but this is not about your rights as an EU citizen. I am an Italian citizen and I also have to pay, we are getting the same treatment.

[–] Nerd02@lemmy.basedcount.com 2 points 2 years ago

I got the same question from another user under my lemmy.ml crosspost, I guess this is a hot feature. Yes there is a way to do that.

When setting a removal rule for a post or a comment, mods can fill an optional message field. After having removed the content (according to the rule), the bot will reply to the user with whatever has been written in said field.

So say your comment got removed because you said a banned word, the AutoMod would reply to your removed comment with a message saying: "Your post has been removed because [...]", depending on what the mods have configured. To clear any doubt, they can also specify a removal reason for the modlog.

[–] Nerd02@lemmy.basedcount.com 4 points 2 years ago* (last edited 2 years ago) (1 children)

Yes! When setting a removal rule for a post or a comment, you can fill an optional message field. After having removed the content, the bot will reply to the user with whatever you have written there.

Relevant pages from the docs:

view more: ‹ prev next ›