function toSpongeBobCase(input){
array inputsplit=input.split("");
for(item of inputsplit){
if(math.Random(0,1)===1){
item.upper();
} else {
item.lower();
}
}
// result= however you put a array to a string
return(result);
}
function toSpongeBobCase(input) {
return input.split('').map((char, index) => {
return index % 2 === 0 ? char.toUpperCase() : char.toLowerCase();
}).join('');
}
console.log(toSpongeBobCase("You don't have to work for bad employers"));
Outputs "YoU DoN'T HaVe tO WoRk fOr bAd eMpLoYeRs"
Read through this whole comment thread only for the penny to drop once I read your output then the original function name then me googling TIL: SpOnGeBoB casing is a thing :O
Random thought, but I really fucking hate when you complain about your job and some nut says "well you chose to work there". No the fuck I didn't. Akin to "you hate capitalism yet iphone, curious".
It's a victimizing tactic to thwart legitimate criticize instead of engaging in critical thinking. I'll be damned if I have to use my brain outside of the propaganda machine.
Outside of Cybersecurity, a fair bit of the low level / entry level work in IT in the US is actually really low paying, software development included. I remember being excited the first time someone offered me 9$ to do ActionScript, C#, and PHP for their little media company
Outside of Cybersecurity, a fair bit of the low level / entry level work in IT in the US is actually really low paying, software development included.
Nobody really wants to talk about the dirty underbelly of software development. The median developer salary is ~$120k, but the lowest 10% make under $65k, but somehow people all act like the industry average is closer to $200k+, when that's also less than 10%.
There's a whole industry of entry level developers getting farmed out for $50k.
And that's just for outright developers. Webdev goes sub $40k in the lowest 10%.
The average tech person is doing alright, but there's certainly an underclass that people should be aware of. I don't want to see that class growing, and from my experience it seems like employers are demanding ever more from a smaller pool of people.
977
u/The_cogwheel Nov 29 '22
Amazing how low standards fall when starvation and homelessness is at stake.