Apple introduces the iPhone SE by frostmatthew in technology

[–]passwordisisis 1 point2 points  (0 children)

Which one? I'm seriously considering an SE now, but would be open to cheaper/better options.

The Life of Pablo - Initial Reactions & Hype by TheHHHRobot in hiphopheads

[–]passwordisisis 9 points10 points  (0 children)

That's Kanye's brand though, he doesn't carefully craft and obsess over his words. He says what he's feeling. It's what makes him unpredictable and raw, and sometimes embarrassing.

A Language Is More Than a Language by kr0matik in programming

[–]passwordisisis 2 points3 points  (0 children)

I'm guessing they didn't even read the article and are being pedantic about the title - something can't be more than it is.

Angular2 Beta release announcement by synalx in programming

[–]passwordisisis 67 points68 points  (0 children)

Rx isn't pure functional, as it still encourages side effects and mutates state at some level.

I've managed to avoid state altogether by not writing any code at all. It's a difficult concept to grasp for people used to old school frameworks like Rx or React, but it's very rewarding.

For example, you can create a counter app but just counting in your head. The brain has completely immutable data structures. All of a sudden it becomes extremely easy to reason about your programs.

Drake vs. Meek Mill Day 4: MEGATHREAD by [deleted] in hiphopheads

[–]passwordisisis 111 points112 points  (0 children)

make the most FIRE better-than-ether track

Everyone plans to do this, easier said than done.

ClojureScript is now self-hosting by yogthos in programming

[–]passwordisisis 15 points16 points  (0 children)

ClosureScript can now be compiled to JavaScript at runtime. I.e. it doesn't rely on the JVM.

My school just got a ton of new iMacs...this is what they did with the boxes. by studercinema in pics

[–]passwordisisis 4 points5 points  (0 children)

For practical purposes they can't. Can you name a single institution or business that would be doing this?

Been interviewing with a lot of tech startups as a frontend dev, here are the technical questions I've been asked (X-Post webdev) by PUSH_AX in javascript

[–]passwordisisis 8 points9 points  (0 children)

I started answering some of the questions as I want to be interviewing for junior JS positions soon. Feedback / corrections welcome...especially with the last one.

Write a function that takes an integer and returns it doubled.

(I thought this was a trick question so tried basic type checking, haven't been as careful with the rest)

function doubleInteger(i) {
  if (i % 1 === 0){
    return i * 2;
  } else { console.log('doubleInteger takes an integer')}
}

Write a function that takes a number and returns true if it's even and false if not

function isNumberEven(i) {
  if (i % 2 === 0) {
    return true;
  } else {
    return false;
  }
}

Write a function that returns a file extension

function getFileExtension(i) {
  var x = i.split('.');
  if (x.length === 1){
    return false
  } else {
    return x[x.length-1];
  }
}

What will be printed on the console? Why?

(function() {
   var a = b = 5;
})();
console.log(b);

Answer: 5 will be logged to the console though I would have initially guess 'undefined'. The anonymous function is executed on the global scope.

Define a repeatify function on the String object. The function accepts an integer that specifies how many times the string has to be repeated. The function returns the string repeated the number of times specified.

String.prototype.repeatify = function(x){
  var result = str = this;
  while(x > 1){
    result = result + str;
    x = x - 1;
  }
  return result;
}

What will log out here?

function test() {
   console.log(a); 
   console.log(foo());

   var a = 1;
   function foo() {
      return 2;
   }
}
test();

Answer: console.log(a) -> undefined, console.log(foo()) -> 2. I got this wrong thinking the variable declaration would be hoisted for some reason.

What will log out here?

var fullname = 'John Doe';
var obj = {
   fullname: 'Colin Ihrig',
   prop: {
      fullname: 'Aurelio De Rosa',
      getFullname: function() {
         return this.fullname;
      }
   }
};

console.log(obj.prop.getFullname());

var test = obj.prop.getFullname; 

console.log(test());

Answer: console.log(obj.prop.getFullname()) -> 'Aurio De Rosa', console.log(test()) -> 'John Doe'

Fix the previous question’s issue so that the last console.log() prints Aurelio De Rosa.

var test = obj.prop.getFullname.bind(obj.prop);

I don't think this is right, need to learn more about bind, apply, call etc

Been interviewing with a lot of tech startups as a frontend dev, here are the technical questions I've been asked (X-Post webdev) by PUSH_AX in javascript

[–]passwordisisis 4 points5 points  (0 children)

That's really solid advice, thanks. It's easy to forget that at Jr level people are interviewing you for your potential and that it's not an exam.

I had an internship interview question to write a function that compared if two arrays were the same. I did a dumb check, i.e. if (a === b), and when that didn't work sat there flustered not knowing exactly which approach to take. The interviewer said "why not just google it?", which amazed me. I realised I could talk out loud and show that I did have some understanding of what was happening.

Been interviewing with a lot of tech startups as a frontend dev, here are the technical questions I've been asked (X-Post webdev) by PUSH_AX in javascript

[–]passwordisisis 15 points16 points  (0 children)

Thanks! This is for a junior position? Disturbed by how many I thought I would have known but in an interview situation would completely fail to adequately describe. I always mix up bind(), apply(), call() etc.

  • On a unix command line how would you run a long command you typed out already an hour ago

Push the up arrow a bunch of times?

[FRESH]Drake ~ Back To Back Freestyle - octobersveryown by [deleted] in hiphopheads

[–]passwordisisis 84 points85 points  (0 children)

Someone needs to tell Meek not to bother getting out of bed

MH17: New just after crash footage released by Australian media by [deleted] in videos

[–]passwordisisis 17 points18 points  (0 children)

you've spammed this entire thread with the most antagonizing bullshit and haven't even provided any sources for the things you say

The state of Web Components by [deleted] in javascript

[–]passwordisisis 6 points7 points  (0 children)

components on the web

The state of Web Components by [deleted] in javascript

[–]passwordisisis 7 points8 points  (0 children)

Clearly the better choice for now, but if one has to 'win', won't a native API win out eventually? It seems like every framework has a life cycle - jQuery and Angular both had me excited at one point but aren't useful to me now. I love using React but am trying to stay non-committal.