0xD ,

Only PHP programmers post something like this as an image! 😘

VantaBrandon ,

I once knew a "developer" with 20 years of "experience" who could not write a foreach loop by hand

Some people are really good at bullshitting their way through life

Socsa ,

You can tell this is fake because the code interview actually tests basic knowledge instead of giving you 13 minutes to create a templated polymorphic class which accepts arbitrary flatbuffer arguments and implements factory pattern constructors written in Haskell, with the end goal of recursively sorting nanoparticles by bond strength. Intro level position, $8/hr, must supply your own MacBook.

phoenixz ,

Ooohhh, OP is shitting on PHP, how very original!

Maybe next time, though, OP should read what OP posts before OO writes a title, as the content has nothing to do with PHP, its all sorts of languages (none of which PHP) and mostly javascript.

The content is pretty on point in general though, I've had the unfortunate luck of having dozens of developer candidates like that.

uis ,
@uis@lemm.ee avatar

I don't see shitting on PHP by OP.

Also PHP is shit. Just so you won't be disappointed.

phoenixz ,

Then read the title.

And oohh yeah, PHP sucks because everyone else says so and a blog post of 20 years ago said so too? That literally was the last argument I heard against PHP.

It's becoming tiresome

uis ,
@uis@lemm.ee avatar

I think we read different titles. Mine doesn't shit on PHP.

phoenixz ,

Mine reads "code interviews for a php developer role", which with the image implies that all php developers are incompetent because they use PHP.

PolarisFx ,
@PolarisFx@lemmy.dbzer0.com avatar

Oh geez, I'm one of those people who can't code on paper. I was applying for something ages ago and I went in for a programming test and they handed me a paper test and my mind completely shut down. Put me in front a computer and I have no issues at all... It was embarrassing.

mipadaitu ,

I would just write down the steps I would take, just some psudocode. It doesn't have to work, it just has to make sense in the style of the language you're talking about.

import random library  
import any GUI/display libraries required for the outcome desired

build array of integers [1..52] (or 0..51 if you're being fancy)
for loop 1..1000
       select random number A 1..52 (or 0..51 if you used that above)
       select random number B 1..52 (or 0..51 if you used that above)
       swap elements in the array A and B
pop first two elements from array
decode at display time what the two numbers represent in terms of playing cards

If the test requires more than that, then they're crazy. The syntax doesn't matter, just that you can logic yourself through the problem.
You can use the IDE, google, or whatever to fill in the specifics. If you wanted me to do that in literally any programming language, once the psudocode is done, you just spend an hour or so looking up the details.

blind3rdeye ,

I don't believe these are genuine interview answers.

letsgo ,

The previous candidate to me at a job a few years ago left the room in tears after not being able to write Fizzbuzz. On a laptop with Visual Studio installed, on their own in a an empty room with nobody looking over their shoulders. The same company said they'd had so many candidate, including university graduates, who simply couldn't code, that they were almost giving up on it.

Naich ,
@Naich@lemmings.world avatar

Want to print out all odd numbers from 1 to 100? Easy:

for(_=[];_<+!![]+""+[]*[]+[]*[];_++)(_%+(!![]+!![])?console.log(_):[]);

Naich ,
@Naich@lemmings.world avatar

Actually, I prefer this one:
for(_=[];_<+!![]+""+[]*[]+[]*[];_++%+(!![]+!![])?[]:console.log(_));

Naich ,
@Naich@lemmings.world avatar

Or this one without the "undefined" when run in a browser console:

for(_=[];_<+!![]+""+[]*[]+[]*[]-!![]-!![];_++%+(!![]+!![])?[]:console.log(_));_+!![]

boredsquirrel ,

Wtf people, can somebody explain?

Naich ,
@Naich@lemmings.world avatar

_ is a variable name, [] becomes 0 when converted to an integer, !![] becomes 1. The + "" + means that the integers 1, 0, 0 get converted to a string - "100", which gets converted back to an integer because it's in the for loop. And there's various other horrible conversions going on to make it all work.

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

I used to work at a company that used XSLT. They know that it's an obscure language that probably none of the potential candidates have ever worked with. But it's easy enough to learn the basics in an hour or two.

So the entry test was to strip some tags from an XML file. You had a day or two (maybe more) to do it. My solution wasn't ideal, I didn't use several of the shortcuts available in the language. But at least it did what it was supposed to.

A few weeks after I had started working there my boss came up to me, visibly frustrated and asked me whether the test was too hard. Thinking back on my problems I replied that maybe having the desired output ready so that you could test your own solution against it might be nice. But my boss's problem was that none of the last 5 candidates could even send in a solution that would run.

You had so much time, and running an XSLT script is really easy and takes no time at all. And for some inane reason these people couldn't even manage to test their code and still decided to send it in.

And I thought I was an idiot when I didn't know if it was spelled grey or gray in CSS during the in-person interview.

oldfart ,

It is very good test for the ability to research, I think. The amount of people who painstakingly went through some video tutorial on PHP and are now developers is insane. I'm sure there's place in the market for them (writing Wordpress themes/plugins, for example), but it's hard to find a programmer with ability to think these days. Not because people are more stupid, but because every other person is a programmer now.

Tartas1995 ,

I hope these aren't real. I, and most people here, could probably write these codes top to bottom on paper without an eraser or strikethrough parts because we have it fully solved before the interviewer finished the sentence.

sntx ,

I mean, it's a hard problem to solve if you never worked with moduli before.

jkrtn ,

Shouldn't people familiar with integer arithmetic should be able to struggle to something like x == 2 * (x/2) to test if it is odd or even? Or just bitwise x & 1?

Daxtron2 ,

These are the "developers" that will be replaced by AI lol

Aatube ,
@Aatube@kbin.melroy.org avatar

great and hilarious post, but isn't this programming_horror instead of a linuxmemes

Dagamant ,

This actually gives me some confidence in my programming skill level.

Pandantic ,
@Pandantic@midwest.social avatar

I was thinking the same thing. I mean, I just did a coding test for a potential job, and I know I did at least as good as, and likely better than this.

edit: just to prove to myself, I went ahead and wrote the program without looking things up. I'm self-taught so I feel pretty proud. It took about 25 mins, and it works!

dual_sport_dork ,
@dual_sport_dork@lemmy.world avatar

I write a lot of PHP for part of my job.

The beauty of PHP is that for any given task, there are always multiple ways to do it, all of which are wrong.

Veraxus ,

Any sufficiently skilled developer has a bunch of things they hate about the language they use the most, and are happy to tell you about it.

This is a characteristic I unironically keep an eye out for when hiring.

themusicman ,

"Introductions and a bit of smalltalk" - I would shit myself if an interviewer started asking about smalltalk... /s

rtxn ,

The fuck kind of programming language is "smalltalk"?

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • linuxmemes@lemmy.world
  • haupteingang
  • Alle Magazine