[-] UlrikHD@programming.dev 24 points 2 years ago

Lower skill ceiling. One option can be done by pretty much anyone at a high volume output, the other would require a lot training and are not available for your average basement dweller.

Good luck trying to regulate it though, Pandora's box is opened and you won't be able to stop the FOSS community from working on the tech.

[-] UlrikHD@programming.dev 21 points 2 years ago

Boost really should just update the UI to simply show how many upvotes and downvotes a post has. No reason to stick the inferior sum total of all upvotes and downvotes that reddit prefers.

[-] UlrikHD@programming.dev 24 points 2 years ago* (last edited 2 years ago)

Localised pricing is good though? Is it really fair ask someone in India to pay the same price as an American? If you can't geo block keys, you can't stop people taking advantage by using a VPN to buy games from whatever country got the lowest price. The result will just be publishers keeping the high price for every country, screwing poorer regions over.

Also, what they did wouldn't really qualify as price fixing.

[-] UlrikHD@programming.dev 23 points 2 years ago

I get the point the author is coming from. When I was teaching first year engineering students programming, the one on the left is how everyone would write, it's simply how human intuitively think about a process.

However, the one on the right feels more robust to me. For non trivial processes with multiple branches, it can ugly real quick if you haven't isolated functionalities into smaller functions. The issue is never when you are first writing the function, but when you're debugging or coming back to make changes.

What if you're told the new Italian chef wants to have 15 different toppings, not just 2. He also got 3 new steps that must be done to prepare the dough before you can bake the pizza, and the heat of the oven will now depend on the different dough used. My first instinct if my code was the one on the left, would be to refactor it to make room for the new functionality. With the one on the right, the framework is already set and you can easily add new functions for preparing the dough and make a few changes to addToppings() and bake()

If I feel too lazy to write "proper" code and just make one big function for a process, I often end up regretting it and refactoring it into smaller, more manageable functions once I get back to the project the next day. It's simply easier to wrap your head around

bakePizza() 
box()```
than reading the entire function and look for comments to mark each important step. The pizza got burned? Better take a look at `bakePizza()` then.
[-] UlrikHD@programming.dev 23 points 3 years ago

Got a few minutes into the context video before I head to close it. Do people actually enjoy YouTubers presenting stuff in this manner?

[-] UlrikHD@programming.dev 18 points 3 years ago

Python are fine with whatever number of spaces you want to use. You can use 8 spaces which forces you carefully consider each nest, you can use 1 if you're a monster, or you can use tabs if you're enlightened, python only demands consistency.

[-] UlrikHD@programming.dev 19 points 3 years ago

Nothing you said other than expenses is an argument against nuclear. If anything, the take from you argument is that we should construct even more nuclear, not less.

[-] UlrikHD@programming.dev 25 points 3 years ago* (last edited 3 years ago)

It'd honestly the funniest thing I've read on this instance. Puts programmer humour to shame. Love it when developers finds the jankiest/unconventional way to solve problems.

[-] UlrikHD@programming.dev 29 points 3 years ago

If you care about energy density, nuclear is the best solution, not coal. I guess Germans don't care though

[-] UlrikHD@programming.dev 18 points 3 years ago

The driver is fully responsible, but Tesla are also making the big bucks with misleading marketing of how good their driving assistance is. So it's more profitable to keep people unaware of its actual capabilites.

[-] UlrikHD@programming.dev 18 points 3 years ago

Aren't those run by the same people?

[-] UlrikHD@programming.dev 22 points 3 years ago

What issues are you encountering on android Firefox? I've used Firefox + ublock for years and I don't think I have ever encountered an issue that was fixed by using chrome instead.

view more: ‹ prev next ›

UlrikHD

0 post score
0 comment score
joined 3 years ago
MODERATOR OF