![](/static/66c60d9f/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
“What one programmer can do in one month, two programmers can do in two months.”
“What one programmer can do in one month, two programmers can do in two months.”
If you woke up with stilts on one day wouldn’t you be confused? Seems self-evident that ants would be too. Like, “I don’t remember going to bed with stilts on, wtf man, what was I on last night?”
More specifically it was Jonas Salk, and what he said was “There is no patent. Could you patent the sun?” and then laughed at the thought.
Video of him saying it here:
Sneaky Simpsons reference here for those who didn’t notice.
Learn to use git bisect
. If you have unit tests, which of course you should, it can save you so much time finding weird breakages.
Why wouldn’t you just create a GUI interface in Visual Basic to track their IP addresses tho?
Very informative link, thx
The code in the image is C or C++ or similar. In those languages and languages derived from them, curly braces are optional but the parentheses are required. It should be the other way around to avoid logic errors like this:
if (some expression)
doSomething()
else if (some other expression)
printf(“some debugging code that’s only here temporarily”);
doSomethingElse();
Based on the indentation you’d think that doSomethingElse
was only meant to run if the else if
condition was true, but because of the lack of braces and the printf
it actually happens regardless of either of the if
conditions. This can sometimes lead to logic errors and it doesn’t hold up to a principle of durability under edit — that is, inserting some code into the if
statement changes the outcome entirely because it changes the code path entirely, so the code is in a sense fragile to edits. If the curly braces were required instead of optional, this wouldn’t happen.
I have all of my linters set up to flag a lack of curly braces in these languages as an error because of this. It’s a topic that sometimes causes some debate, ‘cause some people will vociferously defend their right to not have the braces there for one liners and more compact code, but I have found that in general having them be required consistently has led to fewer issues than having arguments about their absence, but to each their own. I know many big projects that have the opposite stance or have other guidelines, but I just make ‘em required on my own projects or projects that I’m in charge of and be done with it.
I also sometimes wish that the syntax in if
statements was inverted, where ()
was optional and {}
was required.
Perl I believe is where the programming adage of TMTOWTDI comes from — There’s More Than One Way To Do It. Python was an anathema to that ideal, where TOOWTDI — There’s Only One Way To Do It, or at least one ideal way
Not sure. He’s a KGB-educated Russian billionaire oligarch so take from that what you will.
It was literally Eugene Kaspersky, founder and CEO of Kaspersky.
I haven’t been 2hing much and haven’t tested much on those sorts of things yet. I did notice that I don’t think you can die on a perfect parry even if you have no health left, though, as I seemed to be in that position during a boss earlier today.
Started with a ranger who starts with an axe, went to a spear, then a halberd, most recently using a hammer. The spear was quite lungy which caused some issues around open air vertical areas with a lot of narrow paths, while the halberd was just too slow. Hammer is feeling good, and has a good set of running attacks.
Been playing these games since DeS on the PS3 when it first came in 2009.
Overall, I’m enjoying it. Multiplayer that doesn’t require consumables and rituals like placing signs or ringing bells is such a QOL improvement. After 14 years of putting down summon signs and ringing bells and gaining insight, I just want to get to it these days. A few thoughts:
Anyways, a few thoughts. Hope they continue to support the game with patches for a while to come and fix up a few odds and ends. I’m not all that far into it, but this feels like it has legs.
What about Mauritania?
Edited to say never mind, I’m an idiot and lemmied this late last night and wasn’t paying attention. (Is that the verb for posting on lemmy btw?)
The contacts inside are too big and sensitive and it results in phantom inputs. The DIY fix is to open up the controller and literally cover parts of the input contacts with tape.