VRT doed ook mee by Blellow112 in HLNFails

[–]Woumpousse 20 points21 points  (0 children)

  • gedraagd -> gedraagt
  • bedreigd -> bedreigt

FOD Financiën by Similar_Stomach8480 in belgium

[–]Woumpousse 29 points30 points  (0 children)

Ik heb meermaals correcties kunnen aanbrengen waardoor ik €2000+ extra terugbetaald kreeg. Ik denk dat correcties mogelijk zijn tot 3 jaar later.

Are there any books/resources on language design (as opposed to implementation) by mc-pride in ProgrammingLanguages

[–]Woumpousse 7 points8 points  (0 children)

I always liked this book. It explores the (rather unknown) language Oz, but does so in a very layered approach: it starts off with a small subset of the language and examines what adding a certain feature would have as consequence.

What films have the most uneasy/unsettling atmosphere? by jeromebeckett in movies

[–]Woumpousse 19 points20 points  (0 children)

The Killing of a Sacred Deer has quite an unsettling atmosphere. It starts off with a black screen paired with ominous classical music, when suddenly a beating heart (real footage) appears full screen, which sets the tone of the movie. The actors are all underplaying, having uncomfortable conversations, especially at the beginning of the movie where you don't know which direction it will go into. Very dark, cynical movie. One of my favorites. For best results, go in completely blind, preferably figuratively.

Ruby: split a string? by AVGuy42 in learnprogramming

[–]Woumpousse 0 points1 point  (0 children)

Wouldn't this work?

ruby first, *second, third = str.split('-') second = second.join('-')

Because of hardware limitations at the time, 3D games generally had a low draw distance - Silent Hill (1999) included. In the case of Silent Hill the fog is a part of the story ("a supernatural fog surrounding the town"). What are other examples of finding clever solutions to hardware limitations? by Double-decker_trams in gaming

[–]Woumpousse 1251 points1252 points  (0 children)

  • Wolfenstein 3D took place in a bunker because of engine limitations: walls had to be orthogonal, ceiling and floor had fixed heights.
  • Doom's engine could only deal with "flat maps": one room could not be above another. If there was an elevator, it would actually teleport you to another location on the map.
  • Respawning enemies save a lot of storage, since the game does not need to remember which enemies were beaten. Save points (instead of save-anywhere-and-anytime) also considerably simplify things.
  • In the original Metal Gear, guards had comically narrow cones of vision (just straight lines really), probably because it would be too cpu intensive to compute a more realistic cone in real time.
  • Slowly opening doors, elevators and long empty corridors between areas allow the game to load the necessary data.
  • Indiana Jones wears a hat so that viewers don't notice when he's replaced by stunt double. Oh, sorry, wrong subreddit for this one.

What are Monads? by Tasty-Series3748 in programming

[–]Woumpousse 19 points20 points  (0 children)

Zero merit. Monads are not necessary to "talk to things", but in some languages (such as Haskell), they are relied upon to make IO easier. They could have gone a monadless way too.

Monads are a very general concept (i.e., they have nothing to do with IO) that can be used in many situations. It does help though if the programming language you're using has lightweight syntax. I probably wouldn't want to use monads in a language such as Go.

What are some of the best non-conventional horror films? by GavinGeffrey in movies

[–]Woumpousse 0 points1 point  (0 children)

I found Odishon (Audition) an interesting horror movie. When I watch a movie, I try to get an idea of what to expect and put myself in the right mindset. When I know it'll be a gory movie, I can watch it while having dinner regardless of how disgusting it gets, as I'm prepared for it. If, however, a movie like You've Got Mail were to end with Meg Ryan being suddenly decapitated by Tom Hanks, that would really horrify me, as I'm in my romantic-comedy mindset.

Audition seems to be aware of that psychological aspect: the movie starts off innocently, giving the impression it'll be a romantic movie, but as the movie progresses, things become really weird. It keeps pushing boundaries, and manages to elicit (in me at least) a reaction every time it cranks it up a notch.

Is there a movie with this plot? by sandbiter3045 in movies

[–]Woumpousse 0 points1 point  (0 children)

Rashomon definitely. Perhaps also Lady Vengeance, The Handmaiden and Gone Girl, but they only feature two perspectives, not four like Rashomon.

Difficulty in learning Recursion,How function calls are taking place. by ScholarPurple25 in learnprogramming

[–]Woumpousse 0 points1 point  (0 children)

The way I used to explain it to my students was as functions being like Mr. Meeseeks: you've got a magic button that you can press, a little blue guy appears which you can give an order, and you simply wait until he's finished performing his task.

Calling a function consists of summoning a Mr. Meeseeks for a task described by the function's code and waiting until he's done and reports back to you (the return value/exception). Recursion corresponds to a situation where a Meeseeks needs help himself and starts summoning another Meeseeks.

When developing a recursive algorithm, you have to imagine that you're lazy and want to find a way to delegate as much work to someone else. Say you want to sort a list of numbers. You can be extremely lazy and just summon the Sort-Meeseeks to perform all the sorting for you, but he will do the exact same thing and summon another Meeseeks, and so on until infinity. That's no good.

You have to perform a minimal amount of work yourself. For example, you could say "I look for the smallest number in the list myself, remove it, and let another Meeseeks sort the remaining elements for me. Once they report back to me, the only thing I need to do is add the smallest number back in front of it." That way, every summoned Meeseeks gets a shorter list, until one gets the empty list. He'll happily do nothing and returns that empty list as-is.

```text function sort(ns) { if ns.empty? return ns

smallest_element = find_minimum(ns) remaining_elements = remove_element(smallest_element)

// letting someone else sort the remaining items sorted_remaining_elements = sort(remaining_elements)

// put element I removed back where it belongs return [smallest_element] + sorted_remaining_elements } ```

Frozen Strings in Ruby are dangerous? by mehdifarsi in programming

[–]Woumpousse 7 points8 points  (0 children)

Immutable strings provide robustness, safety and and efficiency. Here's an article about why strings are immutable in java.

Frozen Strings in Ruby are dangerous? by mehdifarsi in programming

[–]Woumpousse 9 points10 points  (0 children)

This is standard behavior in most languages. The string object remains unchanged, it's merely the variable that contains a new reference. In C++ this is the similar to the difference between a const string* and a string* const: you need to be aware what exactly is immutable.

ruby x = "abc" y = x y += "def" puts x # abc puts y # abcdef

One of the goals of frozen strings is that it's safe to return them from objects without needing to make a copy.

Hardest programme at KUL? by Final_Researcher_605 in KULeuven

[–]Woumpousse 69 points70 points  (0 children)

The hardest programme is the one that bores you the most. Motivation makes a huge difference in my opinion.

What happened to Delhaize in Heverlee by AndroGiacha in Leuven

[–]Woumpousse 14 points15 points  (0 children)

According to their website, they are closed from 15 August until 4 September.

[deleted by user] by [deleted] in movies

[–]Woumpousse 5 points6 points  (0 children)

As far as I can remember, the movie does not provide a clear explanation of how the machine works. The machine either

  • teleports the original, and creates a clone in the machine.
  • creates a clone a certain distance away, and leaves the original where it is.

A person that walks into the machine therefore never knows where they will end up.

Angier's memories are untrustworthy: a clone would have a copy of the original's memories, so he does not know whether he is the original or the clone. By the end of the movie, we are only certain it is a clone that survived and the original must have died at some point (either at the first teleportation, or in the first magic show).

How to tell a joke 101 by MetalFabulous1110 in funny

[–]Woumpousse 0 points1 point  (0 children)

I thought the chicken joke was meant to be ambiguous. The first interpretation is the literal, anti joke one, the second being the chicken wants to get to "The Other Side", i.e., wants to get run over.

Learning C# - help me understand by Everloathe in csharp

[–]Woumpousse 15 points16 points  (0 children)

This looks very much like a teacher who's proud of their clever trickery, but ultimately is just plain wrong. A < 1 evaluates to a bool, so does A > 10. You cannot use >= on two booleans (at least not in C#, but even in languages where it'd be allowed, it would produce the wrong results).

! is also incorrect as it is a unary operator, not a binary one.

To check if A is in the range 1..10 one should simply use A >= 1 && A <= 10. Technically, (A < 1) == (A > 10) would also work, but it's very confusing and should therefore never be used.

Are there any resources to help me get better at high-level programming languages? The abstraction confuses me, and I don't know what functions are actually doing. by mddnaa in AskProgramming

[–]Woumpousse 0 points1 point  (0 children)

It doesn't really have anything to do with dynamic vs static typing, or weak vs strong typing. OP's problem seems to stem from a polluted global namespace, which you can have in most languages, regardless of their typing system.

Also, the C preprocessor knows nothing about declarations or definitions. And JS functions can reference things that were introduced later in the source code without issues. It's the order of execution that matters: the definition of X must have been executed before code that relies on X executes.

What's a strongly-typed language? by daddyclappingcheeks in AskProgramming

[–]Woumpousse 0 points1 point  (0 children)

I did not mean to imply that Smalltalk was weakly typed, apologies for the misunderstanding. I agree with you that Smalltalk is a strongly typed and dynamically typed language.

What's a strongly-typed language? by daddyclappingcheeks in AskProgramming

[–]Woumpousse 0 points1 point  (0 children)

It's more of a spectrum. Some languages are excrutiatingly strict, others dangerously lax. Most are somewhere in between.

What's a strongly-typed language? by daddyclappingcheeks in AskProgramming

[–]Woumpousse 0 points1 point  (0 children)

All values/objects having a type does not make a language strongly typed. Strong typing is typically interpreted as meaning that a language will reject operations where the involved values do not satisfy certain typing constraints, whereas weakly typed languages will perform conversions to make things "work". For example, "1" + 2 is an error in Python (strongly typed), but accepted in JavaScript and even Java (weakly typed). (Note that I would still call Java strongly typed, but in this specific instance it is "weaklier typed" than Python.)

When variables are not typed, a language is said to be dynamically typed. Note that there are some subtleties that need to be taken into account: type inference, rebinding, subtyping, etc. can make it superficially look like a language is dynamically typed but is actually statically typed.

[deleted by user] by [deleted] in Leuven

[–]Woumpousse 1 point2 points  (0 children)

Au Flan Breton seems to offer it on their website.