Ads don’t make sense. I pay a fiver for the Netflix subscription with ads. I get ads for expensive cars. Do they really think I can afford an expensive car, but not a tenner?
Reminds me how people who have been paying much more in rent each month for years, often decades, are constantly refused mortgages for being “high risk” 🤦
It makes sense when you look at reality rather than lies. They want to own you. Everything is set up to make it so they own you and you cannot rebel because you own no means of survival.
That’s because if the rates suddenly go up, you won’t be able to afford the mortgage and you’ll go bankrupt. If your rent goes too high, you can just find a cheaper place.
I am compelled to point out here that one does not have to go with a variable rate mortgage. I would say one should never go with a variable rate mortgage for exactly the reason you state.
Additionally, rent is insane. One might not find cheaper rent, without getting help from the state. And if you make more than $60,000 a year, good luck with that.
The point of these lectures is mostly not to teach how to work with Turing machines, it is to understand the theoretical limits of computers. The Turing machine is just a simple to describe and well-studied tool used to explore that.
For example, are there things there that cannot be computed on a computer, no matter for how long it computes? What about if the computer is able to make guesses along the way, can it compute more? Because of this comic, no — it would only be a lot faster.
Arguably, many programmers can do their job even without knowing any of that. But it certainly helps with seeing the big picture.
Arguably, a much more important thing for the students to learn is the limits of humans. The limits of the computer will never be a problem for 99% of these students or they’ll just learn on the job the types of problems they’re good at solving and the ones that aren’t.
The limits of computers would be the same as the limits for humans. We have no reason to think the human brain has a stronger computation power than a Turing machine.
So, in a way, learning about the limits of computers is the exact same as learning the limits of humans.
But also, learning what the limits of computers are is absolutely relevant. You get asked to create an algorithm for a problem and its useful to be able to figure out whether it actually is solvable, or how fast it theoretically can be. Avoids wasting everyone’s time trying to build an infinite loop detector.
Two govt spooks are hunting a dangerous fugitive who is also a humanities graduate. He escapes into a sprawling maze of tunnels. “It’s hopeless,” one of the spooks says. But the other simply says, “Watch.” then proclaims loudly, “studying linear algebra is important because of its use in stochastic processes and image manipulation.” Before he finishes the sentence, the fugitive emerges back out the tunnel and shouts, “but what’s even more important --” and is immediately knocked unconscious and taken for questioning
I didn’t go to university, because I wanted to learn useful stuff, but because I’m curiousity driven. There is so much cool stuff and it’s very cool to learn it. That’s the point of university that it prepares you for a scientific career where the ultimate goal is knowledge not profit maximisation (super idealistically).
Talking about Turing Machines it’s such a fun concept. People use this to build computers out of everything - like really - it became a Sport by this point. When the last Zelda was Released the first question for many was, if they can build a computer inside it.
Does it serve a practical purpose? At the end of the day 99% of the time the answer will be no, we have computing machines built from transistors that are the fastest we know of, lets just use these.
But 1% of the time people recognize something useful… hey we now found out in principle one can build computers from quantum particles… we found an algorithm that could beat classical computers in a certain task… we found a way to actually do this in reality, but it’s more proof of concept (15 = 5×3)… and so on
May i ask why everyone hates JavaScript so much? It’s not ironic it’s a real question, i can’t really get it, is it just because it doesn’t have types? Or there’s more?
it has a lot of cruft and gotchas and lacks a good standard library (which is why npm is a thing). That means there’s a lot of bad javascript code out there and a lot of people who have had bad experiences with it. But, if you take care to not shoot yourself with the included footguns and you know your way around npm, it’s a perfectly fine language for its purposes in front- and backend development IMO
I think you’re misunderstanding what “everything” means (it was “everything needed for a hello world”) and trying to divert the discussion to whatever Web has devolved into, which is an abomination that’s definitely unsuited for learning the ropes of software development.
All ECMAScript is standardized because that refers to the standard.
I think you’re discounting the different environments that JS runs in. Something like C runs in a much more uniform environment (the OS) while JS must be able to run in different runtimes. It’s like how windows has APIs that C can access, but obviously you can’t access them when running C from other OSes (forgive me if that’s inaccurate, I don’t use C often).
I believe the amount of hate and mockery Javascript receives is heavily skewed, simply because almost every programmer who is active today has at least some experience with the language, and with more users there are also more people capable of complaining about it.
I work with languages that are much worse than Javascript, yet they don’t receive nearly as much hate because hardly anyone uses them.
As you may know SAP is a German company and the name originally was an acronym for SanduhrAnzeigeProgramm, which translates to “hourglass displaying program” - a nod to when busy software would change the mouse cursor into an hour glass - since it was initially conceived as a hardware stress test software - expanding to employee stress tests was just the logical next step.
Things got weird when scammers found a new hustle charging hundreds of dollars per hour pretending it was an ERP solution or similarly outrageous ideas that non-technical people in all kinds of business fell for.
Imo, both methods should set the same value for x. That’s madness. 🤪 Just look at awk for example. There’s a dedicated substr() and it doesn’t care about spaces. But then awk is quite loose in everything… and niche… But I love it.
Because it’s inescapable. Web development is by far the most common type of programming work and even if you’re a backend developer you tend to have to touch javascript at some point, so everyone knows the pain of javascript’s foot guns and javascript has a lot.
The fact that it’s mandatory to do your work invokes bitterness in people. For backend, you can kind of switch around until you find a language you like. For frontend, it’s javascript or nothing at all.
Javascript as a language is very out of sync with other commonly used languages. Its footguns are very easy to run into. As a result you have a lot of rituals around just not shooting yourself in the foot. The rituals, libraries, and frameworks around avoiding Javascript’s foot guns have been very shifting and changing. Of course, because the javascript ecosystem changes far faster than other languages, there are a lot of rakes for developers to step on to add to the naturally existing foot guns.
Javascript as a language probably shouldn’t be the sole language of the internet for a variety of reasons. It’s a very hateable language because of how easy it is for newbies to make new terrible code and how common it is. Until something like WASM takes off, the downpour of hate for javascript will continue.
Javascript as a language is very out of sync with other commonly used languages.
How so? Moving back and forth between Typescript and C# / Java is pretty natural imho, as long as you understand the compiled vs interpreted differences.
It’s wild that Python is getting a shoutout over javascript despite being an even bigger loosely typed mess.
I think it’s partially because Python has a reputation as being a serious language for serious people because it’s popular amongst data scientists and academics, whereas Javascript is still seen as being popular amongst script kiddies and people building crappy websites for $100 / pop.
That being said, most of the time i hear javascript jokes at work they’re pretty tongue in cheek /ironic / the dev isn’t really hating on it. I have heard a dev or two make those javascript jokes with a more serious critical tone, and everyone tends to ignore them and not engage because they’re pretty clearly just haters who have a general tendency to dislike popular things.
If by «loosely typed» you mean weakly typed, then that’s not true. Python is a dynamically and strongly typed language. Attempting to do an operation with incompatible types will result in a TypeError.
<span style="color:#323232;">>>> "3" + 9
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;"> File "", line 1, in
</span><span style="color:#323232;">TypeError: can only concatenate str (not "int") to str
</span>
You may be thinking of the following, but this only works because the __mul__ and __add__ methods of these objects have been written to accept the other types.
<span style="color:#323232;">>>> "A" * 4 + "H"
</span><span style="color:#323232;">'AAAAH'
</span>
But it is in no way worse than javascript in that regard, though?
I don’t think static typing in Python is really so essential. I see it above all as a scripting language, so its applications don’t benefit as much from static typing as other languages do.
Maybe a better hypothetical python would have used some kind of type inference system, like in haskell, which allows for static typing while still allowing to write code unencumbered from types and stuff, but I really think, for Python’s target domain, its type system is actually adequate or good. Maybe its documentation could benefit from type hints, though.
But it is in no way worse than javascript in that regard, though?
No, but OPs original post was implying that it was better than JavaScript, when in my mind they’re pretty similar in that regard, with the major exception that there is no python equivalent of Typescript which is rapidly passing JavaScript in professional settings.
I don’t think static typing in Python is really so essential. I see it above all as a scripting language, so its applications don’t benefit as much from static typing as other languages do.
For a scripting language it’s fine, but problems arise when you start building giant applications with it (which does happen).
I’m a backend engineer. My biggest issue with JavaScript is environments that use it in the backend.
JavaScript is designed to run in a way that continue to try to do things even when it’s running in to errors. But it does that because I’m a front end that’s what you want. In the front end, working but ugly is better than not working at all. In the backend that can be catastrophic, though.
It has a lot of gotchas and an unstable ecosystem.
A lot of basic stuff is confusing of weird. How do you loop over an object? There’s like five ways. How do you declare a function? There are two very different ways that behave differently, and the new one has like five variations in its syntax that can throw you.
Here’s an example of something that continues to bother me:
What do you think bar looks like? If you thought it had a key of “hello” and a value of “world”, that’s sensible but wrong. It has a key of “foo”. Object keys don’t need to be quoted in JavaScript. If you want the key to be a variable you have to write it like { [foo] : “world” }. Which looks like a list.
There’s a lot of this kind of stuff in the language. Small things that once you know you can work around, but are still weird, annoying, and prone to causing errors.
The standard library historically hasn’t been very good. This has lead to many libraries being maintained by the community. But the community is fickle, and the quality of libraries is not guaranteed.
The standard library was bad at some basic operations, so underscore was created. But then someone made lodash, and most people (but not everyone!) moved to it. But then the standard library caught up some more, so maybe you don’t need either? When you start working on a new-to-you project you don’t know what you’re going to get.
Dates were a mess so momentjs got big, but now that’s deprecated. Move to datefns, which has a completely different interface.
Node releases a new major version every six months. Every six months! Python has been on major version 3 for years and has no plans for a version 4, for comparison. The constant version releases is a potential source for headaches.
In my experience many libraries are kind of fast and loose with major releases, too. It can be a pain to keep up, especially if you have peer deps.
The debugger is kind of bad. Sometimes it will pause but you typically can’t like treat it like a repl. Python’s, for comparison, blows it out of the water.
Many things are async in JavaScript. Sometimes you don’t expect a particular call to be async or you forget, and you have a bad time. The async/await keywords were a godsend. The giant stack of “then…then…then…” was not fun. Combine with the weak debugger and you have an extra bad time. I bet there are a lot of console.log(“code is here”) debug calls out in the wild because of this.
For your actual front end view layer, react is the current hotness. But older projects are still out there with angular, backbone, probably some with just jQuery. React isn’t terrible but how long is it going to be king? What breaking changes are they going to put out in the next version? The ecosystem is unstable.
Also redux kind of sucks. Not a fan of global variables. I think the community has moved on from redux though? Again, the ecosystem is unstable.
In my experience there are many developers who only know JavaScript, and they want to use it for everything. It is the dungeons and dragons of languages. Much like how it is frustrating when your friends want to run a cyberpunk murder mystery in Dungeons and Dragons, it can be frustrating when your team wants to write everything, even your backend, in JavaScript.
We had browser tests at one job. They’re a very synchronous thing. Open the browser, load the page, enter name and password, wait for login. We had all of this written in python working fine, but people wanted to switch to a JavaScript toolset. Sorry, I mean they wanted to switch to JavaScript but there were three different browser testing tools the different teams wanted to use. Because the javascript ecosystem is like that. After a more candid talk with one of the guys I knew personally, he admitted it wasn’t because JavaScript was the best tool but rather he didn’t want to use python.
I can’t authoritatively say this is typical, but in my experience I’ve had a lot of resistance from JavaScript devs using other languages. Again, I think it’s like DND. DND is a unnecessarily complicated game full of exceptions and gotchas. If that’s what you learn first, you probably think everything is like that, and why would you want to go through that again? But of the popular languages/games, javascript/DND are exceptional for their weirdness.
In fact, thinking about it for more than a minute, my current team lead is a JavaScript main and he’s great. Super willing to learn other languages and has never been pushy. So it’s definitely not everyone.
The stack traces tend to be kind of bad. In production shit is probably minified so you might get “error on line 1, column 4737373”. In other contexts you may get a few hundred lines of node_modules to sift through before finding your actual code.
At least jest and (react) testing library aren’t bad. Mocha + chai were annoying. Enzyme is not great. Again, things change rapidly. You might join a company and find they’re still using mocha and enzyme, and switching never gets prioritized. If JavaScript made things better without breaking changes or swapping to an entirely new toolset it wouldn’t be a serious problem, but the standard mode seems to be “fuck it let’s make an entirely new tool”.
The lack of type hints isn’t great. You can use typescript but that’s a whole new set of stuff you have to set up. Python also doesn’t have types but they managed to add them as an option without making us switch to like TypeThon. But that’s not the JavaScript way. If you’re not making a breaking change are you really doing JavaScript?
I could go on, but my cat is getting up to some bullshit and I need to see what he’s screaming about. Probably not JavaScript.
tldr:
standard library kind of bad
ecosystem unstable and of variable quality
unpleasant personal experiences with JavaScript developers wanting to use it for everything
Gotta say thar for someone who is currently following a JavaScript course this is pretty descouraging ahaha
I gotta say i also fell in that category of people trying to use JavaScript for stuff that is not exactly JavaScript suited. For example i’m writing a little script that changes markdown links in some files using the fs node, this is probably better suited to do in bash or other languages but the first thought was: i know a bit of JavaScript and that took a lot of time, what would be the point of learning a new syntax with all the stuff i will have to learn only on js!
If it makes you feel better, many of the things you learn in JavaScript will be helpful in other languages. You already know what functions are, for example, so you don’t need to relearn that. Even though JavaScript has some weirdness about functions.
It has a rocky start, and a lot of cruft from that era sticked around.
There are also a lot of horrible legacy projects from the pre-ES5 era which are a pain to work with. Often older projects were coded either before people knew how to do javascript right, or before the devs who wrote it knew how to write javascript right.
My problem with it is that it gives people too much freedom. They can write the code in very, VERY ugly ways… And they do. It’s a language that let’s you write a mess pretty easily.
That’s really my only complaint. The ugliness happens mainly in:
callback hell. For some reason some people still do callback hell in 2023.
functions as objects. This is pretty neat actually, one of the best things in Javascript, but some people just abuse the hell out of it.
Ah. Yeah, that sounds about right. Here I was hoping they would actually do something profound or meaningful with such a wide variety of demographic slices in one place, but that’s not how you become a big YouTube star, I guess.
Thank you for putting the meme in text too. I wish it was more commonplace, not just for screenreaders but also for people like me whose internet loads pictures slowly. Saves me a click and is just as funny.
Also, yeah, fuck their hypocrisy. They’d gladly push both buttons and see no issue.
Boeing has since been expanding who they kill to include passengers on their commercial airplanes along with whistleblowers. Can’t say they’re not trying.
15 games for $70 are enough to save $1000, which is definitely enough for a good gaming PC. After buying a PS5 and the cheapest PS Plus subscription, paid yearly (cause that’s the cheapest option per month) for a little more than 8 years, you’re also at $1000. With the most expensive PS Plus option it would only take a little more than 4 years.
imo, this is the line where it starts bleeding over from anti-zionism to anti-jewish. Does Netanyahu need to go? Yes, absolutely. Does most of the current government need to go? Yeah, them too. But saying that the entire country has to go?? Where do all those Israeli civilians go? Do they get the same treatment as the Palestinians because they “deserve it”? Obviously not, because that treatment is exactly what so many people are protesting against. It’s the Israeli government that needs to go.
Strange take. Presumably if Israel was replaced with a non-ethnostate, Jewish citizens of that state would get the same rights and treatment as every other citizen.
If the USA tried to again be a White/European ethnostate and allow anyone with Caucasian heritage to immigrate and barred everyone else from immigrating, then no one today would accept that.
And if they went full on apartheid and started putting natives and minorities in locked down ever-shrinking reservations, people would really lose their shit.
When white nationalists try to advocate for such policies, they are rightfully criticized for being racist.
I can never understand why Israel gets special treatment in that regard.
The USA is a settler state, tf are you talking about mate? Or does it require someone from a ex-colony to explain you the what’s and how’s?
Ecocide? Very much visible, many lakes and forests have been destroyed and polluted, lands have been turned into concrete jungle of highways.
Linguicide? Obviously, no one speaks and practices the language and culture of the native Americans in their own land. Can you? No, English is not their language.
Apartheid? Areas where the native Americans live are very underdeveloped. Their right to vote is suppressed. Access to healthcare is abysmal. Isn’t that apartheid?
Poverty? Yes, the Native American is the most impoverished groups in the USA.
Political representation? Almost nonexistent compared to other groups. Name a few popular native American politician, I’ll wait.
Right to self-determination? Most of their lands are under the control of imperialist white men and their crony capitalist buddies.
The USA is the most unhinged form of evolutionary neo-colonialist project, a produced of primitive capitalism gone rogue and rabid, mimicking the “success” of the East India companies by colonizer European states. Death to imperialism, death to America.
This is a Hasbara take on things. The white people from South Africa didn’t disappeared after the apartheid state got dissolved. There were Jewish people in Palestine before Israel was established. Palestinian people have never had an issue treating Jewish people as equals. The only apartheid state in the region has always been Israel.
This is a revisionist view that requires ignoring a lot of historical facts. Almost a million Jews were expelled from MENA countries in the 20th century, many of whom survived only by escaping to Israel. The Palestinian Authoriry has never accepted any status for Jews. Christians, Muslims, Druze, yes, but no Jews.
Meanwhile, there are about 2 million Arab citizens (mostly Muslim) of Israel who are entitled to equal rights, including government subsidized Churches and Mosques.
Meanwhile, there are about 2 million Arab citizens (mostly Muslim) of Israel who are entitled to equal rights, including government subsidized Churches and Mosques.
Plus Arabic being an official language, same status as Hebrew.
People calling it an ethnostate have never been there or arguing in bad faith. It’s obvious.
Not that any of this has to do with the current atrocities in any way. But some people can’t help themselves but to paint the country in a bad way. Which is kind of some because that’s super easy right now. Guess some people just want to go the extra mile.
This is horseshit. Regardless of whatever it might say on paper, the indigenous peoples obviously don’t have equal rights with the Western settlers, and the indigenous Arabic language obviously doesn’t have equal standing with the newly-resurrected Hebrew. In practice not even the indigenous Jews have equal rights with the Western settlers, nor do the Ethiopian settlers.
Being entitled to equal rights doesn’t mean they actually get them. It also doesn’t account for the fact that many Palestinians are denied citizenship or remain in occupied territories controlled by Israel and explicitly not guaranteed equal rights
The comprehensive report, Israel’s Apartheid against Palestinians: Cruel System of Domination and Crime against Humanity, sets out how massive seizures of Palestinian land and property, unlawful killings, forcible transfer, drastic movement restrictions, and the denial of nationality and citizenship to Palestinians are all components of a system which amounts to apartheid under international law. This system is maintained by violations which Amnesty International found to constitute apartheid as a crime against humanity, as defined in the Rome Statute and Apartheid Convention.
The white people didn’t disappear alltogether, but a lot of them did emigrate. Jewish people are kind of unique in the way that they face hostility everywhere outside Israel, so that’s not really an option for them.
This is not true. Many of them have emigrated back to their country of origin since October 7th, 2023. Many of them have more than one citizenship and were not even born in Israel, and many of them are new converts. The IOF has been enlisting new converts like there is no tomorrow from all over the world since October 7th. The ones who have no place to go are the Palestinians who are also currently being genocide.
lemmy.ml
Top