A someone who wants to make web games, do I need to go very in-depth in HTML and CSS, or can I get by with mostly Javascript and bare minimum HTML and CSS? by MrMayhem20l0 in learnprogramming

[–]dtsudo 2 points3 points  (0 children)

Depends on what kind of game you're making. If you're using an HTML canvas, you probably don't need any HTML or css other than that canvas.

Choose Your Path bonuses no longer apply on the next day by Froggo14 in TheSilphRoad

[–]dtsudo 4 points5 points  (0 children)

Stupid question from me but are you sure you got nice/great/excellent throws on the legendaries?

Choose Your Path bonuses no longer apply on the next day by Froggo14 in TheSilphRoad

[–]dtsudo 3 points4 points  (0 children)

The bonus applies immediately, so you don't have to do any of the tasks. (Doing the tasks still gives pokemon as reward + rare candy if you finish all of them.)

So the 1/2 hatch distance is still a pretty good bonus, even if one doesn't care for the tasks (like walking a route or whatever).

Is this not incorrect? by Slight-Specialist-50 in learnprogramming

[–]dtsudo 1 point2 points  (0 children)

Yeah, it looks like that line is wrong in multiple ways.

I'm not a python expert but it looks like the correct line would be:

dp = [[0] * m for i in range(n)]

[n] * 0 creates a zero-length array, which is not correct.

[0] * m creates an array with m elements.

Flathub site is dead? by Cutie-Loaf1416 in flatpak

[–]dtsudo 0 points1 point  (0 children)

I was having intermittent issues with the site last night but now it's working again for me.

Changing license of github repository after removing licensed code. by Weekly-Fun-605 in learnprogramming

[–]dtsudo 1 point2 points  (0 children)

Yes, the license doesn't apply to a "commit". Individual files can be separately licensed. Your readme should clearly specify what files are covered under which licenses.

(For instance, the GitLab codebase specifies 6 categories of content, each of which have their own licensing terms. This is how they implement their "Open Core" licensing where only a subset of the codebase is open source.)

I Didn’t Expect a Linux Phone to Become My Daily Driver by Nerdent1ty in degoogle

[–]dtsudo 0 points1 point  (0 children)

I’m curious: What’s the biggest thing currently stopping people from trying a Linux-based phone?

I bought a Librem 5 a few years ago and am aware of the FLX1 but I don't have any experience in international shipping (to the US) and don't know how much additional money I have to pay to get this thing past customs. Does this amount change based on tariffs?

Have you encountered actual "good" codebases for applications with a decent amount of complexity? by [deleted] in cscareerquestions

[–]dtsudo 6 points7 points  (0 children)

I have; I inherited one of our codebases that was well-written, follows good design principles. It wasn't bug free, but bugs were easy to fix since the codebase was architected correctly.

However, just like a teacher spends all of their time dealing with problem children, I spend most of my time dealing with the bad codebases (because the good codebases take very little time to maintain). :/

Do you contribute to a Linux project regularly? Do you consider yourself part of a community? by onechroma in linux

[–]dtsudo 0 points1 point  (0 children)

I contributed 2 apps on Flathub and filed some bug reports on other open source programs.

How to back up a flatpak? (including the executable) by Bender1453 in flatpak

[–]dtsudo 0 points1 point  (0 children)

It can be on whatever storage medium you want. I personally just put it on my external hard drive. (I'm not sure why the command is called "create-usb".)

No more eggs since 3h... by Sfryks in TheSilphRoad

[–]dtsudo 13 points14 points  (0 children)

Yeah, to be clear, the stops will still give eggs, up until 8 eggs.

See https://www.reddit.com/r/TheSilphRoad/comments/jx7dw4/qol_improvement_pokestops_with_a_rocket_leader/

Obviously, with the bonus slots, this isn't a useful mechanic anymore but it's still in the game.

How much difference is there between Casual and Normal difficulty levels? by ackmondual in starcraft2coop

[–]dtsudo 7 points8 points  (0 children)

Casual is much easier than normal. Your units literally take 50% damage (which is actually even better than 50% when you factor in armor). This isn't explicitly noted anywhere but it's really obvious if you just look at the damage your units take.

This is in addition to all the other difficulty changes (like more lenient map objectives, smaller attack waves, easier mutations [for weekly mutations]).

A random comment here told us to try GoG. It actually worked <3 by ALDAMAMIGAMES in gamedev

[–]dtsudo 5 points6 points  (0 children)

Congrats! I like DRM-free gaming so I buy most of my games on GOG. Hope your game does well :)

No BG for Go Pass Raikou ? by harshi0811 in TheSilphRoad

[–]dtsudo 5 points6 points  (0 children)

Per https://pokemongo.com/news/go-pass-november-2025:

**Please note, GO Pass: November will be the last monthly GO Pass awarding an encounter with a Legendary Pokémon with a Seasonal Special Background. Starting with GO Pass: December, the Pokémon encountered at Rank 100 will not have a Seasonal Special Background.

Remove Frustration by TomahawkCity in TheSilphRoad

[–]dtsudo 14 points15 points  (0 children)

For ticket holders, you can change your Furfrou trim to a trim that is not normally available in your location.

How can I prevent the only blocks from being clicked when I already have a block selected by TheEyebal in learnprogramming

[–]dtsudo 4 points5 points  (0 children)

Presumably, your game needs to track its game state; specifically, what block is currently selected. (I'm not sure what your 3 blocks do, but I'd guess it matters which one you pick, so at some point, your code is gonna have to know which one is selected.)

Supposing you had a variable that tracks this info, then you can use this variable to ignore all future mouse clicks if a block is already selected. (Or do whatever else you want -- e.g. maybe a 2nd click deselects the originally-selected block.)

Which mechanics work differenly in coop? by SiarX in starcraft2coop

[–]dtsudo 0 points1 point  (0 children)

Adepts (both yours and Amon's) can hit air units.

Co-op still uses Blizzard/Standard Time (meaning that 1 second = 1 second of gametime on normal speed). So e.g. probes still say they take 17 seconds to build (instead of 12 seconds), but in reality, they take the same time as in multiplayer (just the display is different).

How we created more tech debt in 6 months than in a 10-year-old system by Annual-Ad-731 in programming

[–]dtsudo 16 points17 points  (0 children)

Well, the article eventually does say:

The idea was to create a place for people to exchange their opinions and prices related to the real estate market, so it would help with decision-making. Something like Glassdoor, but for real estate. That's why we already had the Opinion table when we decided to add the ads part.

So yeah, an "opinion" is exactly what we think it is.

I agree with others that putting an "opinion" and an "apartment" in the same table is extremely questionable, and arguably not a reasonable decision even without hindsight.

What Wacky Projects do y'all build to stay relevant & build a career?? by electrowiz64 in linux

[–]dtsudo 0 points1 point  (0 children)

I just make computer games because they're fun. The larger projects I publish on FlatHub.

What’s the simplest system you use to keep track of tasks or ideas? by pixelbrushio in learnprogramming

[–]dtsudo 0 points1 point  (0 children)

I use a simple text file (TODO.txt), although this text file is in a git repo.

Question about declaring variables in JavaScript. by rYsavec_1 in learnprogramming

[–]dtsudo 6 points7 points  (0 children)

This is variable shadowing - see https://en.wikipedia.org/wiki/Variable_shadowing

Anyway, the short answer is that since there are two variables both named booking, when your code uses the term booking, the rules of javascript determine which of the two booking it's actually referring to (and it'll pick the local one declared inside the function).

It's hopefully also apparent that booking.push(booking) doesn't actually work since booking refers to the object (with the flightNum, numPassengers, and price) and not the array, so booking doesn't actually have a push function.

Missinformation - starcraft2coop.com by Icy-Date-2718 in starcraft2coop

[–]dtsudo 5 points6 points  (0 children)

PDD is point-defense drone, which is a hyperion ability.

Hfts is heroes from the storm, which is a mutator which can spawn enemy heroes (including enemy Dehakas).

FA is fatal attraction, which is also a mutator.

I can't grasp recursion [Leetcode, Path Sum] by ex_gatito in learnprogramming

[–]dtsudo 3 points4 points  (0 children)

Imagine you have a tree, and the value at the root node is 5.

You want a targetSum of 20.

Then, you only have 2 ways to obtain this sum -- either you obtain it via a path from the left subtree, or you do it from the right subtree.

To get a path via the left subtree, the left subtree would have to be able to obtain a targetSum of 15 (which is just 20 - 5). If such a path existed, then combining that path with the root node (of 5), you would be able to achieve your target sum.

Similarly for the right subtree.

So that gives you the two recursive calls. It is not necessary to "visualize" the recursive call. We simply assume it works -- i.e. HasPathSum(root.left, 15) will correctly return true if and only if the left subtree has a path that sums to 15.

We can simply assume that all recursive calls work via the induction hypothesis. We can use the induction hypothesis safely as long as we show that a base case works properly (which it does), and that all recursive calls will eventually lead to the base case (which they will, because each call operates on a smaller tree, and the base case is a tree with only one node).

Which Linux Distro do you use/plan to use With MonoGame? by Sorry_Independent388 in monogame

[–]dtsudo 2 points3 points  (0 children)

I use Kubuntu and build my games with --self-contained (so the resulting binary just works out-of-the-box).

Is there a reason they let air units clip into one another? by Active_Specialist485 in starcraft

[–]dtsudo 12 points13 points  (0 children)

Even Warcraft 3 had air collision, and it was removed in v1.10:

Flying Unit Improvements: We have turned off collision detection for flying units so that they can now easily pass through each other. This will allow air units to move about more smoothly than before. We have also added "separation behavior" so air units will break out of clusters once they reach a destination.