Published: August 19, 2025
425
315
17.5k

Went with the tried-and-true "Write a function to determine if a number is odd or even" Needless to say, they won't be getting a call back...

Image in tweet by WarrenBuffering

Are bootcamps just teaching actual gibberish now? What is going on

@WarrenInTheBuff !num.toString().contains(“.”) && num.toString().endsWith([1,3,5,7,9]) ? “odd” : “even”

@WarrenInTheBuff If there's no bitwise & I'm not interested

@Nateemerson gatekeeping?!

@WarrenInTheBuff this is the actual answer - right?

Image in tweet by WarrenBuffering

@atelicinvest hired immediately

@WarrenInTheBuff Trying to be cute. if ((number & 1) === 0) return “even”; … And move on to the hard stuff

@wtravishubbard Im a modulus guy by trade

@WarrenInTheBuff Have to say the guy was creative.

@subhamtwt hey thanks

@WarrenInTheBuff Actually LOL’d at this 🤣🤣🤣 also warrenbuffering is just a great name

@WarrenInTheBuff Clearly should have been this. Two bit shifts and magic strings, just shocking

Image in tweet by WarrenBuffering

@JoshCaughtFire make it isOdd and return a boolean and I'm in

@WarrenInTheBuff I mean, I taught how modulus works in 9th grade comp sci class. C'mon guys.

@bacchusplateau if "number is greater than greater than one and less than less than 1 at the same time" you might be having a stroke

@WarrenInTheBuff That's so easy wtf?

Image in tweet by WarrenBuffering

@0xnaden hahahaha

@WarrenInTheBuff is >> a modulo operator in some obscure language? this isn't real right?

@SaintOfWeimar no this is js and it works

@WarrenInTheBuff 10 years ago I was building a frontend team, my favourite question was "what is an error first callback". No one could answer it except one person,who was told the answer by my colleagues as a joke when I stepped out the room

@chriscanal its a good practice sir

@WarrenInTheBuff completely reasonable solution, demonstrates knowledge of the language and data representation; I'd hire

@layeredcode @ThePrimeagen this guy says he will hire you

Share this thread

Read on Twitter

View original thread

Navigate thread

1/26