gornius
@gornius@lemmy.world
- Comment on Everything about TOML format - Orchard Dweller 9 months ago:
What?
It’s simple and readable. You literally put somebody that has never coded in their life, show them the YAML file and they will probably get it.
In Toml there are too many ways to do the same thing, which I don’t like. Also unless you know it deeply, you have no idea how the underlying data structure is going to look.
- Comment on Apple refuses to relax its iron grip on iPhones in Europe 9 months ago:
It’s funny, I buy Apple Car specifically so that that I can’t decide where I want to go. At work we MDM and Apple’s approach isn’t for everyone, but forcing something like choosing their destination simply isn’t the right choice for all types of users.
I’m all for encouraging them to be on the right side of Right-to-Repair, labor laws, and environmental best practices. But I left the world of thinking where I want to go and choice for the Apple Car’s tight lockdowns. At first I still couldn’t help myself but to try to go around wherever I wanted my first Apple Car or two, then I stoped that also.
- Comment on Nvidia Blackwell RTX 5000 GPUs may debut earlier than expected 10 months ago:
At least the performance gap somewhat justified the price. The other cards, mainly 4060 got little to no performance upgrade, yet cost more.
- Comment on Best games that can be completed in under ten hours? 10 months ago:
Celeste!
- Comment on Should I move to Docker? 11 months ago:
Learn it first.
I almost exclusively use it with my own Dockerfiles, which gives me the same flexibility I would have by just using VM, with all the benefits of being containerized and reproducible. The exceptions are images of utility stuff, like databases, reverse proxy (I use caddy btw) etc.
Without docker, hosting everything was a mess. After a month I would forget about important things I did, and if I had to do that again, I would need to basically relearn what I found out then.
If you write a Dockerfile, every configuration you did is either reflected by the bash command or adding files from the project directory to the image. You can just look at the Dockerfile and see all the configurations made to base Debian image.
Additionally with docker-compose you can use multiple containers per project with proper networking and DNS resolution between containers by their service names. Quite useful if your project sets up a few different services that communicate with each other.
Thanks to that it’s trivial to host multiple projects using for example different PHP versions for each of them.
And I haven’t even mentioned yet the best thing about docker - if you’re a developer, you can be sure that the app will run exactly the same on your machine and on the server. You can have development versions of images that extend the production image by using Dockerfile stages. You can develop a dev version with full debug/tooling support and then use a clean prod image on the server.
- Comment on New gameplay 11 months ago:
Dude looks like Dexter DeShawn from Cyberpunk.
- Comment on this AI thing 11 months ago:
I have a spreadsheet with items with their price and quantity bought. I want to include a discount with multiple tiers, based on how much items have been bought, and have a small table where I can define quantity and a discount that applies to that quantity. Which Excel functions should I use?
Response: You can achieve this in Excel using the VLOOKUP or INDEX-MATCH functions along with the IF function.
Create a table with quantity and corresponding discounts.
Use VLOOKUP or INDEX-MATCH to find the discount based on the quantity in your main table.
Use IF to apply different discounts based on quantity tiers.
- Comment on I remember getting a PS3 just to avoid this back then 11 months ago:
Steamdeck is more console than x86 PC is a platform. I get what you mean, but PS4 and PS5 are too technically x86 PCs. Most modern games’ tightly coupled target are actually APIs they are using.
It can be one click in a compiler to compile the game to ARM PC, but it’s a different story when you port your game engine to console, where you have to implement the same features using different APIs. (E.g. Raytracing, storing game data, connecting to profile, implementing multiplayer etc.).
- Comment on Bill is a pro grammer 11 months ago:
General rule of thumb: Comments say why is it here, not what it does. Code itself should describe what it does.
- Comment on Why aren’t motherboards mostly USB-C by now? 11 months ago:
The difference between different generations of USB-A are speeds. If user notices differences in speeds, they are way more likely to know the difference between USB versions.
The differences between USB-C and USB-A are capabilities. USB-C is already confusing for many people. My boss (IT Project Manager) thought he could use USB-C to connect his monitor, while he couldn’t because his laptop doesn’t support DisplayPort over USB-C.
There is already a huge mess with USB-C capabilities. Some of them are just glorified USB-A ports, some of them have DisplayPort over USB-C, some of them are Thunderbolt (with different versions or course), some of them are QC (with different versions - once again).
I can just imagine the confusion from users, who expect all of the USB-C ports in the motherboard to work the same way, but then only one or two ports from 8 total have DisplayPort capabilities.
“If it doesn’t fit it means it’s not supposed to go here” is a great way to tell the user what capabilities the port has.
- Comment on Why aren’t motherboards mostly USB-C by now? 11 months ago:
I disagree.
More technical people would understand, but your average Joe would try to plug in their external monitor and RMA PC because it’s not working, same with slow charging phone speed etc.
I’m honestly all in for keeping USB-A for basic I/O devices. Although inventing an USB-A female connector that works both sides and is backwards compatible would be neat.
- Comment on [Mental Outlaw] Apple May Soon Allow Sideloading Apps on iOS 1 year ago:
The apps still need to request OS for specific permissions before they use things like GPS, mobile data, filesystem etc.
But the point you’re missing is unless you’re building everything yourself, there is always a party that you have to trust. Apple likes to paint itself as trustworthy when it comes to your data, but all the anti-consumer shenanigans they do when it comes to hardware clearly state that the only thing they care about is money.
Remember - it’s either convenience with a false sense of security or security. Never both.
- Comment on [deleted] 1 year ago:
If you’re a beginner:
I almost gave up programming once, I thought I was too stupid.
Then I learned Linux and figured out starting out in IDEs as a beginner is the worst thing you can do. It doesn’t teach you anything, it just lets you get the job done - the thing that you should avoid while learning.
If you can’t build your software with only CLI - you probably have no idea how technology you’re programming in works.
If you are intermediate:
Reinventing the wheel is a great way to learn how libraries you’re using actually work.
- Comment on Petition Calls on Microsoft to Extend Windows 10 Support | PCMag 1 year ago:
You just need to realize that Adobe doesn’t release their stuff on Linux, because it doesn’t allow them to, but Linux desktop market share is too small.
It’s a chicken and egg problem. Once Adobe would release their stuff, magically there would be a massive movement to improve HDR support, color accuracy etc.
And you need to realize Microsoft achieved such a giant market share thanks to illegal monopolistic practices in 90s, that still have huge impacts today.
- Comment on Russia and China-backed hackers are exploiting WinRAR zero-day bug 1 year ago:
I can’t find any reason why someone would still use rar in 2023. When I see anyone using it, it means to me they’re as technologically literate as my grandpa.
- Comment on ‘Cyberpunk 2077’ Used AI For A Dead Voice Actor’s Performance, With Permission 1 year ago:
He also voiced Vesemir from Witcher. He was also very popular voice actor in animated movies localizations. Genuinely he was one of the few voice actors I knew by name, and the news that he died really struck me.
- Comment on Youtube ads finally got me 1 year ago:
Ok, if I remember correctly, YouTube barely generates, but generates nonetheless revenue for Google. There are many ways to make more money without fucking over its users by cutting costs:
-
downgrade old videos with small watch count to 720p30
-
make people pay for hosting >1080p60 content
-
do not allow private/unlisted videos
-
straight up remove 10h looped videos - they take so much space, but are technically spam - both for bandwidth and storage
And my go-to solution: focus on sponsorships as main source of revenue. They are the only ads I can tolerate and are actually effective from my experience. YouTube can just take a cut from every sponsorship on YouTube video and everyone will be happy.
-
- Comment on Larion Studios forum stores your passwords in unhashed plaintext. 1 year ago:
“I’ve never had covid, so it doesn’t exist” vibes.
- Comment on After 6 hours 1 year ago:
I actually had to refactor configuration module some time ago. These really came in handy. But was it worth it? Well… it saved some time, the time that could be used to debug problems manually, but it made me a lot more confident that the functionality that worked before, worked after.
- Comment on Easy peasy 1 year ago:
95%? More like 99.999%, considering how many Wordpress sites are there.
- Comment on Google gets its way, bakes a user-tracking ad platform directly into Chrome 1 year ago:
Funny you mention Safari, because you know, Safari is the only browser allowed on iOS. Every other browser has to use Safari to render web pages if they want to be in App Store - once again the only allowed source of packages.
Safari on iOS is literally worse than IE and Chrome combined.
- Comment on ways to close vim 1 year ago:
ZZ will save file though, the others won’t. You meant ZQ.
- Comment on Golang be like 1 year ago:
It is better than in most languages with exceptions, except from languages like Java, that require you to declare that certain method throws certain error.
It’s more tedious in Go, but at the end of the day it’s the same thing.
When I use someone else’s code I want to be sure if that thing can throw an error so I can decide what to do with it.
- Comment on Who is this "Jenkins" and what now has broken him? 1 year ago:
What’s wrong with Docker?
- Comment on I can't code. 1 year ago:
Software engineering nowadays is really complex. There is no way you’re going to know what’s going on, nobody is.
It’s just the more experience you have, the easier it is to figure out what’s going on. If you want to learn coding, just start coding.
I will start from something no one mentioned - start with Linux. Windows has its own very “special” ways of compiling stuff, while Linux is very simple. If you start on Windows, you’ll probably use IDE which will set up everything for you (cause setting up thing in Windows is messed up), and it will still be a black magic for you how the code transforms into binary.
Many people recommend python, but I would start with C (not C++, C++ sucks). It will give you the understanding of basic concepts like memory management.
Then start using something like javascript, which will get you wide range of libraries, which you can use to build anything.
Then at the end learn how infrastructure works, how are services communicating with each other, how to put your server to the public, learn Docker, set up reverse proxy, run stuff in cloud.