4 ms·
Frontend developers, compile this in your JVM to get hired by Mashape
The serious one: http://blog.mashape.com/become-a-mashaper-were-looking-for-a-frontend
// FIXME: Fix statement at line 2, too many submissions we can't handle all that
if (me.girlfriends > 2)) System.out.println("Submit one to Mashape, Inc.");
List<Language> languages = me.getLanguages();
Iterator<Language> iterator = languages.iterator();
List<PlusType> plus = new ArrayList<PlusType>();
if (me.learnFast) plus.add(PlusType.CAN_LEARN_FAST);
boolean knowsLanguages = true;
while (iterator.hasNext()) {
Language language = iterator.next();
switch (language) {
case ProgrammingLanguage.JAVA:
knowsLanguages = knowsLanguages && (language.getLevel() == LanguageLevel.MONSTER);
break;
case ProgrammingLanguage.JAVASCRIPT:
knowsLanguages = knowsLanguages && (language.getLevel() == LanguageLevel.OBI_WAN_KENOBI);
break;
case ProgrammingLanguage.SCALA:
plus.add(PlusType.SCALA);
break;
case ProgrammingLanguage.GROOVY:
plus.add(PlusType.GROOVY);
break;
default:
plus.add(PlusType.CAN_SWITCH_TO_OTHER_LANGUAGES);
}
}
return (knowsLanguages && me.getPassions() == Passion.HTML5 + Passion.CSS3 + Passion.JQUERY
&& plus.size() > 1 && me.existLove(Love.CONTINUOUS_DEPLOYMENT)
&& me.existLove(Love.FAST)
&& me.existLove(Love.PASSION_BREAKING_RULES);
http://www.mashape.com
- sthlm 15y agoAre we just supposed to spend 20min coming up with random classes to make the function return 'true'? This seems to be more busy work than something that requires a lot of thinking. Maybe I'm missing something...
- fosk 15y agonope, before compiling, you can just read the code and guess what's trying to say. It's a joke, I'm not really asking people to compile random code.
- deleted 15y ago[deleted]
- cancelbubble 15y agoYeah, so you want a girlfriend, here is my sloppy second. Getting to the "frontend developer"...They need to also know Java (nay, OWN Java), JavaScript (like a million closures cried out in terror), Scala, Groovy, PLUS, they can learn fast and you want them language agnostic (going to Ruby? No problem!). Then of course there's the "passions" (HTML5, CSS3, jQuery, continuous deploys, high performance, and, of course "breaking the rules" because they're such a bad ass rebel. At least you didn't include ninja or rock star. As a front-end developer myself, this seems a very odd mix of a front-end and back-end developer. How goes your search for someone like this? How'd I do?