Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yeah that always bothered me.... maybe there's more of a CS kinda reason for that name? Or it's just plain dumb.
-
I have used splice before. Went to insert into an array. Couldn't remember the stupid name. Oh fuck! Its splice...
-
@SortOfTested I'll create a framework with a method addition() that returns the ADDress posITION
-
@shoogknight
That's honestly not even the most offensive thing about js arrays 🤣 -
@SortOfTested I work with JS in apps that combines JS (front) and C++ (back). The more I work with JS the more I "Push that shit to the backend to do it right!"
-
@Demolishun
The front end should only be concerned with presentation concerns and user interaction.
The backend should only be concerned with business logic and security.
Separate those concerns. -
@SortOfTested I have. The problem is there are some front end tasks that get complicated enough that it is much better to manipulate on the C++ side. So I guess I was not clear. The JS calls functions that are purely front end related in C++. Our data models are separate from this.
-
@Demolishun
Ah, cool. I've done similar with wasm and rust. I don't generally do disconnected applications anymore, so I don't have a lot of cases where the ideal location for that logic isn't an API. Were I producing that kind of application, I'd eschew JS altogether, it's kind of a shitshow.
Javascript's splice(). The definition of splice doesnt even relate to what the function does
rant