The only security threat would be the site itself. How do they know other users have the same password?
Options:
They have your password in plain text in their DB. CHEFF KISS
They aren’t using salts.
They are using the same salt for everyone.
All of them concerning.
People creating functions as objects inside of other functions. A few days ago saw a person create a function with two object functions inside, then passed one of the functions as an argument to the other function. Then returned the second function.
It’s hard to find such a mess in other languages. Yeha, functions as objects are cool. Closures are also cool… But why abuse that shit?
Ah ok, server side rendering with no JS. I mean, server-side rendering is good. But a front with no JS? Idk, the page would feel pretty outdated. I wonder if there modern front-ends with zero js.
I know this is a bad take, but my hate for PHP is why I’m in Lemmy.
Python without type hints is torture. I always need to have the fucking docs opened for anything, and if the docs are bad you’re screwed, get ready to read the source code. Like fucking hell man, just let me autocomplete this shit…
Well, it’s not like you have any option. Browsers only run 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.
Come on, Javascript is pretty nasty. Trying to read that shit always gives me brain tumors. Why do they need to wrap every fucking thing in a function inside a function inside a function that is passed as a parameter to a function inside another function?
Like, bro, you know people are meant to understand what you just wrote?
It just gives too much freedom and people forget they need to write code that is easy to read for people who aren’t totally familiar with the code base.
They even bring that shit into typescript. Like they are already using a language that is meant to fix that shit and they are like, nope, let me create 5 nested functions just because.
Use VSCode or PyCharm. It’s what most people use anyways.
Give both a try. VSCode is lightweight and a bit more “manual”. PyCharm is a full IDE with advanced features but sometimes it can be too much for a small script.
They created a business model around violating user privacy. Imagine if I asked “if slavery is no longer legal, how will the cotton fields be profitable?”
So, now being more realistic, just do ads without tracking people. Maybe ask people which types of ads they want to see instead of fucking spying on them to know every detail of their lives.
But if you code like a moron the code should still behave as expected. People who code like this deserve a special place in hell, next to languages that behave like that.
Ain’t nobody got time for that 🎶
Actual question. Isn’t installing stuff from third party repos like super dangerous? The package scripts run with root access, right?
So, I guess you could tell if the hash of the package matches the hash of the code after you build it… But, what about upgrades on that package after it is installed? They could change the setup scripts and screw a lot of people right?
Not saying these guys do it, just wondering about security stuff.
I guess this is beating a dead horse but you can have pointers to pointers for 2D arrays.
The first pointer tells you which coulm you’re on. The second pointer tells you which is the first object of each column. That way you can iterate the columns without loosing a reference to the current column you’re standing on.
Cool, cool, but don’t forget to also talk about its secondary effects. These pills shouldn’t be popped for every encounter. It should be used for events like a condom breaking.
Edit: sorry, I assumed that this was a post-day pill. This is just a normal contraceptive, how the fuck are these not legally sold over the counter already? Sorry, not American.
In C# it is different.
In C if I give you a pointer to a memory address, you can totally overwrite what is in that memory address, even write a new struct in there. So you’re getting a “real” writable memory address. You could even write a different type of structs and break the program. You could tweak specific bytes.
In languages like Java or C# you aren’t given a reference to the memory address but a reference to the object. You can only write to the object using it’s own interface (methods) but you can’t say “I’m going to totally overwrite this memory address with a new object”.
If you receive an object in a parameter, let’s say a “Person person” object and you do something like “person = new Person();” you didn’t really overwrite the memory address. The original person reference that was passed in the parameter is still intact. You can only modify it with something like “person.setName(…)”.
So, with real pointers you can do more stuff, but higher level languages don’t want you to do that because it breaks some of their principles for what “good programming” is. In this case they are protecting encapsulation. You shouldn’t be able to mess around with the memory contents of objects directly, only through their interfaces. Encapsulation is safer because objects should expose how to operate them safely via their interfaces.
Only pure liberals think leaving the free market by itself with minimal regulation is a good thing. Capital attracts capital and becomes basically a snowball.
But is the solution a market controlled by a centralized entity? You just pointed out politicians can also be corrupted. So… Giving more power to an entity that can be corrupted is the solution?
The problem is corruption. Any system you can propose can be fucked up by corruption. The justice system, politicians and government can be corrupted under any system because they are human.
If I’m wrong, just propose any system and I’ll tell you how it crumbles because of corruption.
In how many ways can you package a python?
Just tie a knot with it and throw it in a bucket.
Wouldn’t it be better if reverse proxies simply had a “default key” meant to encrypt the SNI after an unencrypted “hello” is received?
Including DNS in this seems weird.