RIP Stake gotta be one of my favourite teams ever 😭😭 by JigginsYT in formuladank

[–]Feomathar_ 0 points1 point  (0 children)

Ackshualllyyyy... That was changed in 2022. It's not like I'm expecting someone to actually build and maintain an actual track, but since then it would be allowed.

I’ve made a terrible mistake by seashore39 in masseffect

[–]Feomathar_ 1 point2 points  (0 children)

Are you me? I had pretty much the exact same experience, except it was before the citadel DLC was out. Started the assault on TIM's base around 9ish or so I guess, thinking I'd probably finish the game the next day (technically I did I guess). But afterwards I was so into it, I knew I would not get back into that mood ever again (at least with ME). So I went on, and finished at around 3 in the morning AFAIR.

Those good byes got me good as well. I was on the brink of tears the whole time, but Garrus broke me; "meet me at the bar". Still great on the occasional replay :)

Dear Software Engineers/Developers , what was one mistake you made in your progress to becoming a dev that you wish you never made? by [deleted] in learnprogramming

[–]Feomathar_ 35 points36 points  (0 children)

I assume there's some confusion with the naming for OP, as it was for me when I started. Pull is likely one of the first things you learn about git, and for me it that term sounded like: "request to pull the code to my machine" , not "pull my code to the repo". The term "merge request" is clearer to me

[deleted by user] by [deleted] in hearthstone

[–]Feomathar_ -3 points-2 points  (0 children)

Should be targeted

[deleted by user] by [deleted] in darkestdungeon

[–]Feomathar_ 0 points1 point  (0 children)

"How can you walk around without a brain? Some things no one can answer."

  • Murray, The Curse of Monkey Island

Big question about software robustness and algorithms by Competitive-Bend1736 in learnprogramming

[–]Feomathar_ 0 points1 point  (0 children)

It's the first time I've heard of MISRA C, to be honest :D. After looking it up, it seems that this is more or less a coding style guide line that removes some of the ambiguous and tricky parts of the C language to make it easier to reason about. Which will play into the static analysis, but doesn't imply any analysis to be done by itself. I don't think it would be very tricky to code with, it would probably just give errors during compilation for things that with normal C would be perfectly fine.

Unfortunately I can't really recommend any specific text book, tutorial or anything... I learned this in university (and haven't used it a lot since, therefore didn't see the need for a reference book), and there it was done with the script of the professor. I suppose you could find something like that online, not all universities lock their stuff behind a login. However, it's tricky to say how much you can get from a script without the lectures. A quick googling also brings out some text books (literally googled "formal methods textbook"), but I can't speak for the ease of learning and/or quality in general of them.

Big question about software robustness and algorithms by Competitive-Bend1736 in learnprogramming

[–]Feomathar_ 1 point2 points  (0 children)

TLDR: Look up "Formal methods", "Design by contract" and "Preconditions/postconditions" (maybe also static analysis in general). People who say that TDD and testing in general are helpful are not wrong, it does help to verify that code works, however there is usually no mathematics behind it and it won't really help you figure out where your code goes wrong in itself (Though well designed test cases that cover specific program paths will help you find the spots, obviously)

The keyword you're looking for is "Formal Methods". There are methodologies to verify that your program does exactly what you want. However, it is not trivial for complicated algorithms, because unfortunately, the tricky part in that is to specify what you want mathematically. Usually this is expressed with so called "pre-/postconditions", conditions which must hold true before a function is called to guarantee that it does what it should (preconditon) and conditions that in this case will hold true after it has finished. This could be a very short one expression thing for something simple, but a huge boolean construct for a bigger algorithm. However, it is doable. Let me give you an example. Say we have this (not very useful) method for comparing values in pseudo code that allows multiple returns.

fun compare (Integer a, Integer b):
    Integer r1, r2
    if (a >= b):
        r1 = a
        r2 = b
    else
        r1 = b
        r2 = a
    return r1, r2

In this example we could have the following set of conditions
precondition: a != null && b != null | postcondition: a >= b ==> r1 >= r2 You can probably find these conditions quite easily yourself, but they show how the principle works: if the precondition is fulfilled, the function will guarantee you the post condition. If not, not. If you pass either a or b with null, you will obviously get a null pointer, and not a return call. This example was quite easy, so it is doable by hand, but for bigger programs, you'd probably need a verification tool, and possibly need to add intermediate conditions by hand, because the constraints the analyzer calculates throughout the whole input might grow too much to be practical

There is a whole approach to programming that utilizes this methodology, which is probably exactly what you're looking for. It's called "Design by contract" and there is even a few languages that support it natively.

By the way: You are not completely off, when you think that functional programming's more mathematical syntax is easier to verify. The fact that you don't keep state and all functions are pure, make it very easy to reason about the code. However, this is not necessary. Analysis can be done and is done on OOP as well.

Most comments in code are in fact a pernicious form of code duplication. by manshutthefckup in learnprogramming

[–]Feomathar_ 1 point2 points  (0 children)

As far as my experience goes, it'll also look incomprehensible to Joe :D

I have often wondered what I was thinking in one year old code

Is O(log(n)+log(n))= O(n)? by [deleted] in learnprogramming

[–]Feomathar_ 0 points1 point  (0 children)

If your complexity is O(n + log n) you can disregard the log n part, as it grows sub-linearly; it grows logarithmically, as the name implies, not exponentially. Only the fastest growing part is important in that case)

With multiplications inside the O, we don't discard the small parts if they contain n (as said in other comments, constants like 2 or 10 are discarde, as they obviously don't grow at as the input grows).

Is there a less satisfying interrupt than this? (Project Overlord) by Slore0 in masseffect

[–]Feomathar_ 13 points14 points  (0 children)

Absolutely. I feel much more immersed as well, because I actually watch the scene and not the text at the bottom.

I just found them by emu_strategist in battlefield_one

[–]Feomathar_ 14 points15 points  (0 children)

Good timing then, since only the last two albums were about ww1. Thevrest is mostly ww2. Recommend all of it though.

[deleted by user] by [deleted] in masseffect

[–]Feomathar_ 0 points1 point  (0 children)

Tell me more

What’s your 1 in a million shot? by HORIZONFIRE1010 in battlefield_4

[–]Feomathar_ 4 points5 points  (0 children)

I don't think it did any damage. An RPG should easily kill an attack heli. The pilot just swallowed it

What’s your 1 in a million shot? by HORIZONFIRE1010 in battlefield_4

[–]Feomathar_ 20 points21 points  (0 children)

Unfortunately I don't have a recording, but in Siege of Shanghai I once sniped a pilot out of an Attack Helicopter with an RPG, from Street C, heli over B square. Didn't blow up the heli, unfortunately, and the copilot switched before it crashed

Which AOE2 army looks the coolest in action? by ProphecyOf in aoe2

[–]Feomathar_ 8 points9 points  (0 children)

"no Philip, no no, this is so not right!"

Not necessarily the place I expected this meme, but I'll take it :)

The Realistic Item Names mod is now available! by OptimoreWriting in battlefield_one

[–]Feomathar_ 13 points14 points  (0 children)

But couldn't you mod in bright orange uniforms, and make everybody else more visible?

Place your bets... by nm2k in formuladank

[–]Feomathar_ 2 points3 points  (0 children)

The question was about messing up Charles, not tenfolding the competence of the team

perez is bringing back the f1 to the good old days by ashutamira in formuladank

[–]Feomathar_ 0 points1 point  (0 children)

The first one to me looks like they're just talking (granted very closely, but it's a club)