YouTube shorts are awful. Most of them are just incomplete YouTube videos.
YouTube shorts are awful. Most of them are just incomplete YouTube videos.
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.
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.
Why would they need you to send a message to collect your IP? They can send any request to their servers. Plus, what can they do with the public IP? Just know your general location, that’s it. It’s not like it tells them exactly where you live.
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.
Ah yeha, sorry, didn’t read the Mobile Services Manager. But this is a common malware attack though.
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.
This is definetely malware. OP has probably been doing funky stuff with his phone.
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.
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.
In how many ways can you package a python?
Just tie a knot with it and throw it in a bucket.
The whole attitude just ruined it for me. He went full “get ready to hear this 2h long story about my times and how awful current generations are. And no, you’re not allowed to go to the bathroom while I talk” grandpa style.
I think sometimes people just want others to go straight to the point. I don’t want to hear the personal stories of this guy, just rambling about his past and his skills.
Maybe he could say the premise and a conclusion. Then explain why he reached that conclusion. But no, he chose to torture you with personal anecdotes to get to a point he could have summarized in a few words.
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.