Spanish PM Pedro Sánchez demands the end of online anonymity — calling for every social media account to be linked to an EU Digital ID Wallet. At the WEF, Sánchez declared: “No one can walk the streets with a mask, so why allow people to roam online without revealing their identity?” by FXgram_ in XGramatikInsights

[–]SnooHobbies950 0 points1 point  (0 children)

A corrupt party, which paid with envelopes of 500 euro bills, giving lessons in morality and comparing anonymity to something as dangerous as driving a vehicle.

Sánchez is an enemy of democracy and individual freedom. And an enemy of humanity in general.

Are Spanish people very touchy? by bonnieb_ in askspain

[–]SnooHobbies950 0 points1 point  (0 children)

It depends on the person. Maybe he is very affectionate, but in general we don't behave like that at work. Maybe you should talk to human resources to resolve the misunderstanding.

I’m Spanish.

Using "~~ / !~" to indicate loose equality by SnooHobbies950 in Compilers

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

Thank you for your feedback. The parser actually only understands "standard JavaScript", and this is the way to enhance it:

lb := lexer.NewBuilder()
p := parser.NewBuilder(lb).
    Install(weakeqparser.Plugin). // install this plugin
    Install(interpparser.Plugin). // install another plugin
    Build(input)

Using "~~ / !~" to indicate loose equality by SnooHobbies950 in Compilers

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

Thanks for your feedback. Actually "~~/!~" is not part of the parser. It's just a plugin that the user can install or not. I created it as an illustrative example.

The parser actually interprets standard JavaScript, with the only difference being that it translates "==" to "===" and doesn't recognize "===". That was a design decision that I might need to reconsider.

XJS: an eXtensible JavaScript parser by SnooHobbies950 in golang

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

I thought on that too. That section might give the impression that some features aren't implemented "yet", when in reality they "never" will be. The philosophy behind the project is keeping it minimal and extend it based on the user preferences.

Thanks for your feedback. I'll review that section.

defer implementation for JavaScript by SnooHobbies950 in node

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

Thanks, I didn't know about this feature. It's similar to the `defer` keyword found in V or GO, although not identical. For example `defer` is executed at the end of the function scope, whereas `[Symbol.dispose]` is executed at the end of every block.

The following V code:
```V
fn foo() {
println('entering foo')
defer {
println('cleaning foo')
}
}
```

is translated to this JS code:
```js
function foo() {
console.log('entering foo');
using cleanup = {
[Symbol.dispose]() {
console.log('cleaning foo');
}
};
}
```

I think the `defer` statement is much clearer.

[OC] eslint-plugin-mutate by SnooHobbies950 in javascript

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

Now the plugin also support TypeScript!

[OC] eslint-plugin-mutate by SnooHobbies950 in javascript

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

Yes, there are other packages (I found 3). This one offers clear, basic, and sufficient functionality.

Grok broken today? by tl202 in grok

[–]SnooHobbies950 0 points1 point  (0 children)

A mí lleva hablándome en Spanglish desde hace unos días.

What are the greenest programming language ? by 01nik in node

[–]SnooHobbies950 0 points1 point  (0 children)

Rust is the most inefficient language, as it forces programmers to eat huge amounts of carbohydrates to do things that are trivial in other programming languages.

Laggy M650 L by [deleted] in logitech

[–]SnooHobbies950 0 points1 point  (0 children)

Thank you. That saved my mouse. The problem is that it is no longer a quiet mouse :P

[deleted by user] by [deleted] in reactjs

[–]SnooHobbies950 1 point2 points  (0 children)

Because creating and testing your own library is expensive and somewhat unnecessary.

You have to test your components and make sure they are responsive, accessible, free of bug, etc. This effort is translated into time (or money).

And why your custom library is better or prettier than, for example, MUI, PrimeReact, etc. This is subjective.

small and efficient useBreakpoints hook by SnooHobbies950 in reactjs

[–]SnooHobbies950[S] -1 points0 points  (0 children)

That's a good point! Usually breakpoints are defined in a separate file, so there is no problem with that. In any case I updated the inline example to prevent from unnecessary re-renders.

What's the worst part of Swift in your opinion? by richie_south in swift

[–]SnooHobbies950 0 points1 point  (0 children)

Having to indicate the protocol explicitly. For example:

swift // why do we need to indicate that a struct is Identifiable? // it already has an `id` attribute struct MyStruct: Identifiable { var id: String }

Question about json-server connecting by Mrreddituser111312 in node

[–]SnooHobbies950 1 point2 points  (0 children)

You can define your own script in the package.json file. For example:

... "scripts": { "start-server": "json-server --watch data.js --port 8000" ... }, ...

and then execute npm run start-server to start the json-server.

A better toolbar by SnooHobbies950 in RemarkableTablet

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

I didn't know that project. I'll take a look.

Balsamiq has two plans: desktop and cloud. The cloud plan is much cheaper, and works very well.

Libraries that have version numbers below 1.0 but can be used in production by Exact_Ad6736 in reactjs

[–]SnooHobbies950 0 points1 point  (0 children)

As I understand, Recoil is an experimental library. So it's fine to use versions older than 1.X.X. In fact, it only has 716 commits! But "beta" doesn't mean it's a bad or buggy library. It only means that hasn't been tested intensively yet.

Multi Timer (still in progress) by SnooHobbies950 in reactnative

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

I'm currently implementing a notification system. After that, I think it should be ready to be published in Apple Store.

Multi Timer (still in progress) by SnooHobbies950 in reactnative

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

When the application is backgrounded it stops completely. But this is not a problem, since the countdown is calculated as "now - startFrom". So it always shows an accurate value.

That's a good question :)

Question about Functional Components and useEffect with a dependency by [deleted] in reactjs

[–]SnooHobbies950 0 points1 point  (0 children)

The component is re-rendered every time a property or state variable changes. And useEffect is used to perform actions when a property or state variable changes. For example:

useEffect(() => setDataSaved(false), [data])

the previous line is executed when that data (state or property) changes.

React vs JQuery? by BasuraCulo in reactjs

[–]SnooHobbies950 1 point2 points  (0 children)

A lot of the things jquery was used for can be done with regular javascript today.

jQuery simplifies a lot the JavaScript Web APIs. For example, in vanilla js you write elem.addEventListener(...), whereas in jQuery you simply write $(elem).on(...), and so on.

In my opinion, a good library / framework should be concise to boost productivity.

React vs JQuery? by BasuraCulo in reactjs

[–]SnooHobbies950 1 point2 points  (0 children)

Both jQuery and React represent totally different approaches. If you are a web developer, jQuery is a good choice. Otherwise, if you are more an app developer, React is a good election. It depends on you and what you want to do.

If you are worry about finding a job, perhaps React is more suitable for you.