calcopiritus

joined 2 years ago
[–] calcopiritus@lemmy.world 7 points 2 hours ago

The one on the right looks bigger though, it's just zoomed out.

[–] calcopiritus@lemmy.world 1 points 7 hours ago

That's called immediately mode gui (or imgui). It has nothing to do with think about elements or pixels. You do have elements, it's just that they're rendered directly (immediately) instead of stored.

You have a panel+border+text "primitive" drawing functions. Nothing is stopping you from creating a single function that calls all 3 of those. You probably should, since it's probably a common pattern. You could call it DrawBoxedText. There is no difference between a DrawBoxedText function and a BoxedText element with a draw() method.

[–] calcopiritus@lemmy.world 0 points 7 hours ago

The first problem is a you problem though. There's nothing stopping you from dividing your global god-class into smaller ones. For example, you can have one state struct per windows. So windows wouldn't have access to the state of other windows.

The second problem is also the reason I don't often use imgui. Imgui is great for introducing UI to applications that would re-render every frame, like a video game. But for every other application, it feels like a waste. If I wanted to waste resources I would write it in python or JavaScript.

[–] calcopiritus@lemmy.world 2 points 8 hours ago

I swear it's impossible to get to that menu via the start menu. Every time I find a way to make it the first result, they seem to change it after a few months. I'd say it's the hardest settings tab to get to.

[–] calcopiritus@lemmy.world 2 points 9 hours ago

So if you are that dude with the mining rights, you would sell them at the same price before and after discovering the gold right? Since the discovery of gold hasn't changed its value.

[–] calcopiritus@lemmy.world 5 points 16 hours ago

Their app being so bad is the only reason third party apps were even a thing. The official reddit was just unusable on mobile.

It is the only social media that had a significant user base using third party apps.

The same is true for the search. You had to use their party (google) search engines to search for something on reddit.

Not even the desktop website is good. I don't even remember the name of the extension, but that one extension that every power user had brought many simple features that reddit didn't add after years of existing.

Their multiple redesigns were universally hated. The reason they haven't shut down old reddit is because a non-insignificant amount of traffic uses that frontend, even though it is 2-3 redesigns old.

Basically anything that reddit did was shit. It only was popular because the core features worked and were free with very little ads. And it had a massive (and active) user base that posted content, so basically every google search contained a reddit link with a decent answer.

[–] calcopiritus@lemmy.world 2 points 16 hours ago

I don't know you. My comment doesn't apply to you, sorry.

Knowing what a symlink is doesn't make you a programmer. It's just that I don't know any non-programmer that knows what it is.

[–] calcopiritus@lemmy.world 2 points 17 hours ago (2 children)

Let's do one with raw material in the ground:

There is a mountain that is 99% made of solid gold, but none bothered to check. Some random dude has the mineral rights for that mountain.

Suddenly one day, that dude wanders in his mountain and makes a 1m deep hole and finds the gold. He has not yet extracted a single gram of gold.

So you say that mountain has no value?

Or has the analogy have to be lithium now?

[–] calcopiritus@lemmy.world 3 points 18 hours ago (1 children)

I believe it was a joke where real maths refer to maths dealing with real numbers.

[–] calcopiritus@lemmy.world 5 points 18 hours ago

Lithium is literally named after stone. No one ever claimed it is rare.

When an X deposit is found, it means that a place has been found where an unusual concentration of a material in an easy/cheap-to-extract form has been found.

There are thousands of tons of gold in the ocean water. But no one would call the ocean a gold deposit. Because it would require a ton of effort/money to extract a tiny amount of gold from the ocean.

[–] calcopiritus@lemmy.world 2 points 18 hours ago (4 children)

I can get to my house, and I can value it at 5 trillion €. That doesn't make it worth 5 trillion €.

If an actual person/company that values things for a living, does an analysis on the value of my house, and it is valued by X€, then it is probably valued at X€. If someone says "pff just because they say so? I'll buy your house for 5€". Then a lot of people will come and say "5€? That's a steal, if you're gonna give it for such a low price, I'll get it for 6€", and it will probably go on until it reaches an amount very close to X€. If it ends up way below X€, the ones that did the analysis would probably want to buy it themselves, because they actually think they can make a lot of profit on that.

I don't know why I have to explain this. This is very basic economics.

[–] calcopiritus@lemmy.world 13 points 19 hours ago (4 children)

Putting folders and symlinks in the same category is wild. Most people I know (basically every non-elderly non-toddler person) knows what a folder is. Yet only some of the programmers I know know what a symlink is. Not even a chance for non-programers.

At most they'll know what a shortcut is. Which is not the same as a symlink.

view more: next ›