Aux

joined 1 year ago
[–] [email protected] 0 points 2 months ago (1 children)

Hotel breakfasts tend to be more expensive than eating out.

[–] [email protected] 2 points 2 months ago

Getting totally wasted in a forest on cheap beer mixed with antihistamines and vodka was the best thing as a teen!

[–] [email protected] 1 points 2 months ago

That's what you get when you allow big tobacco to kill traditional vaping. Where were you when they were pushing bills to destroy the industry and take over it?

[–] [email protected] 2 points 2 months ago

Well, the issue is that JSON is based on JS types, but other languages can interpret the values in different ways. For example, Rust can interpret a number as a 64 bit int, but JS will always interpret a number as a double. So you cannot rely on numbers to represent data correctly between systems you don't control or systems written in different languages.

[–] [email protected] 1 points 2 months ago

Yaml is cancer.

[–] [email protected] 1 points 2 months ago

What that means is that you cannot rely on numbers in JSON. Just use strings.

[–] [email protected] 2 points 2 months ago (2 children)

Well, apart from float numbers and booleans, all other types can only be represented by a string in JSON. Date with timezone? String. BigNumber/Decimal? String. Enum? String. Everything is a string in JSON, so why bother?

[–] [email protected] 1 points 2 months ago

I know how React Native works and it doesn't fix anything. For example, if the underlying toolkit punishes you for deep nesting - you're still fucked. Google recommends to have 10 or less levels of nesting, which is bonkers to any web developer. There is similar advice for iOS, Mac and Windows (not sure about GTK and Qt, haven't used them for over a decade). Each platform has its own solution, so you end up with custom code for each and at that point or doesn't matter if you're coding in C or JS.

[–] [email protected] 1 points 2 months ago

I vote for nanoid.

[–] [email protected] 1 points 2 months ago (2 children)

There are several issues with native development without a browser layer.

First of all, native UI toolkits are very different and making a robust cross platform app is pretty much impossible. So, the traditional approach is to use one toolkit, which will be native to one platform, and then let your other users deal with it. For example, GTK apps on Windows and Mac look and feel like shit.

Another approach is to use a custom cross platform toolkit, which doesn't use anything native at all. If enough work and thought is put in such application, it can be a very pleasant experience. But often it's shit for all users.

The second issue is that it can be quite hard to manage fluid window sizes and to build a proper responsive UI with native toolkits. Some are better at it, some are worse. Native toolkits also tend to punish developers for deep nesting of components making UI development even more painful.

HTML + CSS solves all that. It's responsive by design, everyone is used to web apps already, nesting is not a problem at all, etc.

[–] [email protected] 2 points 2 months ago

Everyone should be poor, great!

[–] [email protected] 2 points 2 months ago

I would also like to add some of the higher level features available in most assembly languages.

  1. Memory management. You can define variables, for example, a string one containing "Hello, world!" and the compiler will correctly allocate required memory and you don't need to know its address while writing the code, you just reference the variable.
  2. Code labels. If you want to do a conditional or unconditional jump, you need to know the address of the code you want to reach. But, obviously, every change you make to your code base will change the memory layout of your binary. Asembly provides code labels. You can think of them like function names.
  3. Assembly allows you to reference 3rd party libraries without knowing exact function entry addresses. You just use function names like you would with C or any other language.

Modern assembly languages have even more higher level features, like macros support. And some are even hardware agnostic, like intermediate representation assembly language used in LLVM.

 

Hi, I have a bunch of Raspberry Pies hosting all kinds of stuff and I want to have a monitoring solution for all of that. What would be your recommendations?

My goal is to be able to have an overview of CPU load, network load, CPU temp and to see what's going on inside docker containers as I have everything dockerized. I'd like the solution to be open source. I want the solution to be web browser accessible and have nice load graphs with history. I don't want to spend too much time setting it up.

All my Pies are running RaspberryOS, which is Debian based.

 

As served in Trattoria La Molinara in Verona, Italy. Incredible quality and taste!

 

28 days matured steak beef, Gouda cheese, sun dried tomatoes, letuce, mayo, ketchup, adzhika and a bun.

 
 

Welcome to Bready! This is a community for anything related to making homemade bread.

Bloomers, loafs, flatbreads, rye breads, wheat breads, sourdough breads, yeast breads - all fermented breads are welcome! Vienesse pastries like croissants are also welcome because technically they’re breads too.

All refugees from r/breadit and r/sourdough are welcome.

[email protected]

view more: next ›