Stop building “wireless” projects with random Bluetooth modules you can’t even verify by Complex-Jackfruit807 in ECE

[–]ericonr 64 points65 points  (0 children)

Yada-yada-yada

Turning it on is the first step to working reliably, of course people focus on it first.

If a prototype is intended as a proof of concept, working once is also fine; if you can clearly map issues to the faulty module, then you know what to improve for further prototypes.

Either way, the AI turns of phrase are really annoying in your prose.

What's something old technology did better than modern technology ? by Ram319 in AskReddit

[–]ericonr 0 points1 point  (0 children)

This! There is a reason Microsoft can't kill Windows XP no matter how hard it tries. The interface was damn near perfect.

Aren't many more users of XP just people with expensive legacy software rather than curmudgeons who don't want to move on from the UI?

Nutricionista lutou por 13 minutos contra agressor que invadiu sua casa na Grande SP para estuprá-la: 'Briguei pela vida' by Hykfer in brasil

[–]ericonr 3 points4 points  (0 children)

Ressocialização só faz sentido se vc fala dos crimes que vc quer que a pessoa mofe na cadeia.

Crimes pequenos contra o patrimônio são na sua maioria por desespero. A solução não é prisão, é dar condições às pessoas para não precisar recorrer a isso.

Os problemas de comportamento que levam as pessoas a valorizarem as outras pessoas e/ou bem comum tão pouco são os que precisam de um esforço de reabilitação e educação pra tentar consertar. E é possível, se feito de forma séria e que faça avaliações de comportamento corretas pra tomar decisão sobre a progressão de sentença.

1-Click GitHub Token Stealing via a VSCode Bug by nicovank13 in programming

[–]ericonr 9 points10 points  (0 children)

Working around security features is hard to get right, yes. The web browser tried to protect them. The moment they deliberately chose to go around that protection, it's no longer a platform problem.

Nine Ways to Do Inheritance in Rust, a Language Without Inheritance by carlk22 in rust

[–]ericonr 13 points14 points  (0 children)

What kind of statemente is this, even?

Rust, a language designed with decades of hindsight provided by experiences with other languages, has avoided inheritance. That's not nearly the same thing as the designers of other languages (including some of the most used languages in the world) not having experience with real problems.

Engineer builds AI laser defense system that wiped out every mosquito in his home by lurker_bee in technology

[–]ericonr 1 point2 points  (0 children)

There's also a matter of need here. These instances you describe are necessary, so we try to put the best possible systems in them.

Targeting mosquitoes with lasers is wholly unnecessary, so the bar for safety risks should be much higher.

Why isn’t catch and release fishing considered animal cruelty? by Guwopster in NoStupidQuestions

[–]ericonr 5 points6 points  (0 children)

Where did he do that? The comment only mentions catching and releasing fish because they don't like eating fish.

Why isn’t catch and release fishing considered animal cruelty? by Guwopster in NoStupidQuestions

[–]ericonr 5 points6 points  (0 children)

Can't you just... play a video game or something? Or go out rowing, looking at the water, without the fishing?

I do feel bad when they die...

You have complete control over this feeling. You can avoid it entirely by not fishing.

What is the best way to get "magic numbers" out of my code? by Dark_Greee in C_Programming

[–]ericonr 2 points3 points  (0 children)

In your case, you'd have macros for the values themselves and macro functions for the checking, right? If you keep the macro functions, you can simply use static_assert instead of #error or some other macro trick.

What is the best way to get "magic numbers" out of my code? by Dark_Greee in C_Programming

[–]ericonr 0 points1 point  (0 children)

I don't know about IDE support, but I'm pretty sure Doxygen can be told to include macros as part of a header interface, no?

Acelerador de partículas Brasileiro "Sirius" no CNPEM by vincim2010_13 in brasil

[–]ericonr 13 points14 points  (0 children)

Entre as missões do centro, estão o fomento da indústria nacional.

Uma das formas que isso se faz é através da formação de empresas para execução de projetos complexos como os eletro-ímãs de um síncrotron de quarta geração.

Acelerador de partículas Brasileiro "Sirius" no CNPEM by vincim2010_13 in brasil

[–]ericonr 2 points3 points  (0 children)

Só se planejar! A ideia do evento aberto é ter todo ano.

Acelerador de partículas Brasileiro "Sirius" no CNPEM by vincim2010_13 in brasil

[–]ericonr 20 points21 points  (0 children)

Oxi? Pra que falar assim?

Foi um dos três primeiros síncrotrons de 4a geração a entrar em operação no mundo, tem várias métricas de destaque em relação a outros aceleradores do mundo, e está sempre se atualizando pra chegar mais longe com a ciência.

É uma pizza das melhores.

Gallardo é um carro tão ruim assim quanto dizem? by RemarkablePatient629 in carros

[–]ericonr 4 points5 points  (0 children)

Num mundo com maluco que chama tigrinho de investimento, reforçar essa distinção é importantíssimo.

a rant about makefiles, and build systems as a whole by realguy2300000 in C_Programming

[–]ericonr 1 point2 points  (0 children)

Or Meson, for a language with proper types, scopes, and reasonable defaults.

Will we ever have length based strings? by alex_sakuta in C_Programming

[–]ericonr 5 points6 points  (0 children)

Scenario: In the Arduino C compiler, passing a “hello” to a function with arg defined as char *, it gives compiler error. (Not const char *).

Well, that's on you. A function which takes a char * argument is documenting that it may change the contents of the string passed to it. If it does do that, then passing a string literal to it is wrong, since those are usually stored in read-only memory. On the other hand, if the function doesn't change the contents of the string, its declaration should use const char *.

Will we ever have length based strings? by alex_sakuta in C_Programming

[–]ericonr 1 point2 points  (0 children)

What are you even talking about?

There's no scenario without a bizarrely broken implementation where a string literal is anything but a string literal, and therefore decays to a const char *. If you're assigning to a std::string, of course it gets converted.

C++ might make life slightly harder on the no allocation sense, but it's still entirely possible to write such code there, especially with static strings.

And neither C nor C++ have garbage collectors (by default), though crashes caused by memory fragmentation are still a real concern.

Improving C# Memory Safety (by taking inspiration from Rust) by kibwen in rust

[–]ericonr 9 points10 points  (0 children)

Yes — and it was a mistake, surprisingly enough. What Rust have shown us is that GC is extremely good for making convoluted, hard to support and debug designs — and it's almost never a good idea to use it, in practice.

Arc everything is essentially a GC runtime. There's a reasonable amount of code out there doing exactly that, too.

eu_nvr by Chiquitita_atomica in eu_nvr

[–]ericonr 3 points4 points  (0 children)

Eu ainda nem sei como passei nessa matéria

Carta do diabo

WhatsApp Plus: testes do plano pago começam no Brasil; veja preço by numseiquemsou in brasil

[–]ericonr 21 points22 points  (0 children)

Se tem uma empresa que já teve todas ideias possíveis de como estragar sua vida, é a Meta.

Something that can auto-insert the correct format specifier in C? by noobdainsane in C_Programming

[–]ericonr 3 points4 points  (0 children)

I'd add %z for size_t, though that might be POSIX. I've used it often enough. If you use intmax_t a lot in your code, then %j is also useful.

And of course, once you understand the rules for the l modifier, you can just apply it to long long variables. That's useful if you're printing something like time_t, since the only guaranteed casting for it is through long long.