TV | 2014 | Status: Finished | Episodes: 13 | Genres: Comedy, Fantasy Stats: 596 requests across 38 subreddits - 0.053% of all requests
When new transfer student Isuzu asks Seiya Kanie out on a date at gunpoint, he knows something odd is going on. Especially since she wants to go to Amagi Brilliant Park, where the rides are either dangerous or mind-numbingly dull and the only costumed performers who aren’t rude or apathetic are the ones who didn’t show up for work.
So when Isuzu asks Seiya to take over as the park’s new manager, he knows she’s crazy (Well, crazy-er, given the gunpoint thing.). But when Seiya learns that Amagi Brilliant Park is a REAL Magic Kingdom, that the costumed performers aren’t wearing costumes, that they live off the energy created by attendees, and that unless they can attract 250,000 attendees in three months, they’ll lose their jobs and homes… he goes a little crazy himself.
But, even with the aid of scantily clad fairies, giant mice and sniper-trained sheep, can anyone rescue a park that’s sunk so low that its own bus doesn’t stop there anymore? The race is on to get the turnstiles turning and save Amagi Brilliant Park!
I don't get the obsession over "pythonic syntax" I just don't understand how: [x+1 for x in arr if x > 3]
Is more readable than the pattern used by almost every other language like: "arr.filter(x => x > 3).map(x => x+1)" or "arr.Where(x => x > 3 ).Select(x => x+1)" or something similar.
I don't know that it's necessarily "more readable" for people who do this for a living, but the code is much more of a natural extension of simpler/earlier language features -- even if you only knew basic loops and conditionals and had never seen/heard of a list comprehension before seeing that statement, you'd intuitively understand exactly what the end result is.
Compare that to arr.filter(x => x>3).map(x => x+1), where you'd need to be familiar with both lambda functions and how map works, or arr.Where(x => x > 3 ).Select(x => x+1), which ALSO requires you to know a non-intuitive definition of "Select" (i.e. the SQL SELECT rather than the common English "select", which is closer to "filter"), and, looking at things from the perspective of someone learning the language, it's quite easy to see why the Python syntax is preferred for people that value that.
And since you can have basically that exact syntax in Python as well, with map(lambda x: x+1, filter(lambda x: x>3, arr)), it's nice to have the option, no?
I agree that pythonic syntax is clearer to somebody without much experience in other languages. With this experience comes understanding of these fundemental concepts like method chaining and lamda functions, which, atleast for me allows me to reason as to why this works without having it be this "magical language feature".
Not saying that list comprehension is bad as you stated there is the option with map and filter which can act as a substitute. Although being mathematically logical by utilising function composition, I do not like having to read the expression backwards (inside out).
That is why I think the chaining or even better, forward piping solution in functional languages, is easier to reason about.
Atleast list comprehension beats the Java stream api by a long shot.
Oh, I'm 100% in agreement that piping a la Erlang/Elixir is the best.
I'm also 100% in agreement that the Java stream API is straight trash.
As far as the function composition being read inside out... I mean, you get used to it with most of the "mainstream" programming languages, so while it's definitely an annoyance, it's also an inherited (heh) annoyance moreso than a deliberate decision to have it be that way. Blame Algol for that, I guess.
You can usually use a proper compose function in languages with first-class lambdas (or easily write such a function) to create proper composite lambdas that aren't as unpleasant to read.
Basically, probably intentionally, Clojure as a library is licensed in a way that is incompatible with the GPL which legally muddles the water in an unpleasant way for software distribution.
Additionally, many including myself feel that Clojure should've just been a Common Lisp library (as effectively all of its features could be implemented that way) and that if one wants Java interop there's ABCL for that.
Its literally the same issue/resolution process with Python, just replace the word Brackets with Indentation. Only with the difference that the formatter can't infer a broken indentation error from a missing end bracket.
It reads backwards, just like the American date representation. It is trying to be logical by following english grammatical structure which is not the order that the statements are executed in.
[<map> for <value> in <enumerable> if <filter>]
Looking at the process as a pipeline, "enumerable -> filter -> map" just makes a lot more sense.
C is not a good language in a number of ways, many of which are due to performance and resources constraints in the context of its original creation. Its design is not conducive to writing secure or high-reliability software, and any such software written in it is done in spite of its design flaws (and because network effect has made it so that for some platforms proprietary C compilers are the only vendor-provided compilers available at all - so even now you need something that you can at least cross-compile to C to write for them).
Python is an interpreted scripting language, which is generally too slow to reasonably write a useful kernel with (you really want native binaries), it also lacks a certain level of low level access that can be useful in writing an OS. But most importantly, Python lacks a stable standard you can rely on to write your OS, so you're basically relying on some arbitrary canonical implementation that provides you with no long-term guarantees (and it has done many breaking changes in minor version changes, I've had to deal with them at work). Python was [very new](https://en.wikipedia.org/wiki/Python_(programming_language)#History) and unstable when Linux was first created. C++ likewise lacked a standard back then.
edit: The importance of that network effect (and thereby portability) is also part of why projects like seL4 bother with writing their microkernel in C despite the fact they really wanted to do it in ML (iirc).
It's syntax isn't much different from so many other languages though? Most notably just making datatypes optional and replacing curly brackets with indents
Okay but you're just talking about built-in functions that aren't necessarily python specific, if you really needed a sum and range function to be abstracted from your code why not just write your own math library and import that? (I don't wanna Google a ton about libraries in other languages but it probably already exists)
Sure I know what list comprehension is, for reference i primarily use python myself, but you're just using a built-in function which could have been expressed in a more readable format as you've literally shown yourself
I've had a lot of classmates get very confused by a long comprehension where I've had to rewrite it as a normal for loop to explain it
The nly real advantages I can see from using comprehension is it's speed as I'm pretty sure it is compiled as a single line and that it is easier to pass to numpy
I just gave you an example of what you could do in C if you really needed them abstracted from your own code but it would only really matter if you write bigger programs, you know, you wouldn't write a whole sum function to use it once
17
u/[deleted] May 29 '22
Julia: Not to me.
22
u/BochMC May 30 '22
I love python but I am too spoiled by languages that compiles. I mean, for the same amount of code I write twice the tests in python compare to c#
7
u/mycakatop May 30 '22
Well, language and runtime speed are not strictly tied.
5
u/NauticalInsanity May 30 '22
This meme is missing the crash resulting from a dependency conflict on
xmltodict2
u/beyluta May 30 '22
Sauce?
2
u/[deleted] May 30 '22
Tell me now what anime is that. I saw so much meme about it. Now I need to know.
3
u/bettercalldelta May 30 '22
We found the C++ dev who thinks he's funny!
0
u/AnnyPartidaOF Jun 09 '22
Php es mejor? 😊
-5
u/TakeASeatChancellor May 30 '22
This is a repost, I'm pretty sure
172
u/[deleted] May 29 '22
[removed] — view removed comment