Open Side Menu Go to the Top

08-22-2016 , 09:42 PM
Quote:
Originally Posted by Noodle Wazlib
- language i hate
- pay higher than trump's "minimum wage is too high" but lower than hillary's original min wage bump
- short sort of contract to hire place, in theory
- almost excessively-long drive
Are we really talking about under $15/HR? Have you been actively looking for a job or is this something that came up without you applying everywhere?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
08-22-2016 , 09:47 PM
Quote:
Originally Posted by Larry Legend
It isn't of course black and white and there are good and bad, but if you are entering into the world of software development and are capable, you should command a solid earning wage in this economy. If for some reason a company cannot afford to give you that, it signals negativity on many levels.
I think one good argument against suzzer's point about his own experience is that back when he got started, it was much harder to learn real-world software development outside of jobs and even harder to demonstrate that you know what you're doing. Everything's become much easier, which means you don't need those stepping stones if you know what you're doing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-22-2016 , 10:04 PM
Quote:
Originally Posted by Grue
Got this "code challenge" today as part of the interview process, thoughts? seems a bit excessive..
i actually think that's a good and reasonable interview project
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-22-2016 , 10:10 PM
yeah its fine I'm just a perfectionist so here I go setting up eslint and all that dicking around in my gulpfile for an hour before doing anything. Forcing me to learn react-router now finally instead being lazy.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 04:16 AM
Seems this would be a pretty neat project for "do this to learn the basics of framework X" also?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 06:45 AM
Quote:
Originally Posted by gaming_mouse
if you give some details on what you're trying to do, i can probably give a functional solution that better than anything you'll get with mixins.

this might help too: http://raganwald.com/2015/06/17/functional-mixins.html
I'm still following the tutorial and haven't reached a point of adding stuff myself. But the whole mixin system it uses felt "off" to me, although I don't have much experience with js/functional programming.

The tutorial is creating an entity system for an ascii roguelike game. This is the base object for entity:

Code:
Game.Entity = function(properties) {
    properties = properties || {};
    // Call the glyph's construtor with our set of properties
    Game.Glyph.call(this, properties);
    // Instantiate any properties from the passed object
    this._name = properties['name'] || '';
    this._x = properties['x'] || 0;
    this._y = properties['y'] || 0;
    // Create an object which will keep track what mixins we have
    // attached to this entity based on the name property
    this._attachedMixins = {};
    // Setup the object's mixins
    var mixins = properties['mixins'] || [];
    for (var i = 0; i < mixins.length; i++) {
        // Copy over all properties from each mixin as long
        // as it's not the name or the init property. We
        // also make sure not to override a property that
        // already exists on the entity.
        for (var key in mixins[i]) {
            if (key != 'init' && key != 'name' && !this.hasOwnProperty(key)) {
                this[key] = mixins[i][key];
            }
        }
        // Add the name of this mixin to our attached mixins
        this._attachedMixins[mixins[i].name] = true;
        // Finally call the init function if there is one
        if (mixins[i].init) {
            mixins[i].init.call(this, properties);
        }
    }
}
...and the hasMixin method:

Code:
Game.Entity.prototype.hasMixin = function(obj) {
    // Allow passing the mixin itself or the name as a string
    if (typeof obj === 'object') {
        return this._attachedMixins[obj.name];
    } else {
        return this._attachedMixins[name];
    }
}
Here's a usage example:

Code:
// Create our Mixins namespace
Game.Mixins = {};

// Define our Moveable mixin
Game.Mixins.Moveable = {
    name: 'Moveable',
    tryMove: function(x, y, map) {
        var tile = map.getTile(x, y);
        // Check if we can walk on the tile
        // and if so simply walk onto it
        if (tile.isWalkable()) {
            // Update the entity's position
            this._x = x;
            this._y = y;
            return true;
        // Check if the tile is diggable, and
        // if so try to dig it
        } else if (tile.isDiggable()) {
            map.dig(x, y);
            return true;
        }
        return false;
    }
}

// Player template
Game.PlayerTemplate = {
    character: '@',
    foreground: 'white',
    background: 'black',
    mixins: [Game.Mixins.Moveable]
}
Coming from a java background it feels really strange and "hack-y" to me that we have to implement the code reuse framework ourselves instead of using built-in features of the language. That's why I was wondering if I could rewrite it using better practices.

Last edited by Wolfram; 08-23-2016 at 06:51 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 09:46 AM
Quote:
Originally Posted by candybar
Are we really talking about under $15/HR? Have you been actively looking for a job or is this something that came up without you applying everywhere?
Less than 70% of $15/hr, and yes I found the place while actively looking. Surprisingly not a lot of "entry-level" or "junior" positions out here, for a town so big that it has a tech hub.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 10:58 AM
can you look in other towns?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 11:18 AM
Quote:
Originally Posted by Victor
can you look in other towns?
Yeah like, no offense, but you'd have to pay me a metric ****load to make me work in Nocal these days. So many great tech hubs in america that are not complete **** shows with 2 hour commutes and miserable living conditions, not to mention the churning up and spitting out of tech talent.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 11:56 AM
Quote:
Originally Posted by Noodle Wazlib
Less than 70% of $15/hr, and yes I found the place while actively looking. Surprisingly not a lot of "entry-level" or "junior" positions out here, for a town so big that it has a tech hub.
Have you gotten any feedback on your resume, cover letter, etc from software developers who have jobs of the sort that you may want? Any interviews? The main question here is whether this is actually the best job you can get or you need to work on your job hunting skills.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 11:57 AM
**** apple **** marketing people **** ux ui people

Launch is tomorrow.

Early last week we agree to push to apple on Thursday.
Last Wednesday we're ready to push, CEO tells me no we planned to push on Thursday so we'll push on Thursday.
Thursday CEO leaves town, I push to apple, marketing and ux/ui insist we add one bug fix in. Pull submission, resubmit on Friday over my objections.
Monday apple rejects due to bug only their demo user was seeing. Work till 11pm last night, submit to apple
Tuesday find bug with thing we submitted last night, now need to push again.

**** piss **** **** **** **** bitch **** **** ****

And of course it's all my fault
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 12:33 PM
Quote:
Originally Posted by Victor
can you look in other towns?
Not too far away. We just moved here, can't relocate already. Still, lots of suburbs with tech firms around here.

Quote:
Originally Posted by candybar
Have you gotten any feedback on your resume, cover letter, etc from software developers who have jobs of the sort that you may want? Any interviews? The main question here is whether this is actually the best job you can get or you need to work on your job hunting skills.
Yeah, I've had some resume reviewers and HR/tech people take a look. Everyone wants to put their mark on your resume, of course.

I've had a few interviews, a couple in person.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 01:40 PM
Quote:
Originally Posted by blacklab
**** apple **** marketing people **** ux ui people

Launch is tomorrow.

Early last week we agree to push to apple on Thursday.
Last Wednesday we're ready to push, CEO tells me no we planned to push on Thursday so we'll push on Thursday.
Thursday CEO leaves town, I push to apple, marketing and ux/ui insist we add one bug fix in. Pull submission, resubmit on Friday over my objections.
Monday apple rejects due to bug only their demo user was seeing. Work till 11pm last night, submit to apple
Tuesday find bug with thing we submitted last night, now need to push again.

**** piss **** **** **** **** bitch **** **** ****

And of course it's all my fault
I always tell people the App store is a 1 week minimum submission. So if launch is 17th, submission has to happen on 10th. It helps keep those marketing people in line.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 05:15 PM
Quote:
Originally Posted by maxtower
I always tell people the App store is a 1 week minimum submission. So if launch is 17th, submission has to happen on 10th. It helps keep those marketing people in line.
they've changed their review process recently, so it's now typically 1-2 days:

http://appreviewtimes.com/

ofc for critical stuff can't hurt to give yourself a buffer
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 05:18 PM
wolfram,

that code looks pretty over-engineered to me... and i'd definitely stay away from custom frameworks like that, unless you have a compelling reason to use one. because everything being accomplished by that "mixin" framework can be done more clearly in vanilla js with less code.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 05:38 PM
Quote:
Originally Posted by gaming_mouse
wolfram,

that code looks pretty over-engineered to me... and i'd definitely stay away from custom frameworks like that, unless you have a compelling reason to use one. because everything being accomplished by that "mixin" framework can be done more clearly in vanilla js with less code.
thanks, I'm gonna finish the tutorial and then take a crack at refactoring this into something cleaner and more straight-forward.

Any quick tips which patterns to use?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 05:54 PM
Quote:
Originally Posted by candybar
I forget the discussion we had last time when suzzer was negotiating for the contract position - what did we think was a reasonable rate for a senior/super-senior contractor these days?
Anyone? Something came up through my network last night and I pretty much just quoted random numbers because I haven't really thought this through. Supposed to discuss this tonight.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 05:57 PM
I think $75-125 an hour is reasonable for a senior contractor
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 06:53 PM
Quote:
Originally Posted by gaming_mouse
they've changed their review process recently, so it's now typically 1-2 days:

http://appreviewtimes.com/

ofc for critical stuff can't hurt to give yourself a buffer
This is exactly what you don't want marketing to find out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-23-2016 , 09:40 PM
Quote:
Originally Posted by Wolfram
thanks, I'm gonna finish the tutorial and then take a crack at refactoring this into something cleaner and more straight-forward.

Any quick tips which patterns to use?
if you want to do mixins, you can use functions to transform plain js objects:

Code:
var john = {
  name: 'John',
  greet: function() { return `Hi, I'm ${this.name}` }
}

function addRunningAbility(person) {
  person.run = function() { return `${this.name} is running!` }
  return person;
}
addRunningAbility(john);
john.run();
that said, i prefer a style without mutation. which can be achieved by passing your data object to functions rather than adding methods to it:

Code:
function run(person) {
  return `${person.name} is running!`
}
or by creating a new object and returning that (and if identity is important, make it a property of the data object -- have an id property -- rather than relying on in-memory object identity):

Code:
function addRunningAbility(person) {
  return Object.assign({}, person, 
    {run: function() { return `${this.name} is running!` }
  });
}
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-24-2016 , 01:38 AM
My 2 cents on taking the underpaid job. Is there any risk to just taking it and seeing how it is? If it is **** just quit and don't put it on the resume? No need to mention the previous salary in an interview.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-24-2016 , 05:01 AM
Quote:
Originally Posted by Grue
Got this "code challenge" today as part of the interview process, thoughts? seems a bit excessive..
What kind of take-home tests are you normally given?

I'd weep in joy if I got one like that.

Quote:
Originally Posted by candybar
Jenkins (like most on-premise/self-hosted stuff these days) is for companies that have dedicated operations teams that can keep things running and secure. For everyone else there's TravisCI/CircleCI/Codeship/etc.
Eh... I'm just using Jenkins to deploy from git. Not really doing much on the server side. My machine->web "CI" is basically nuke and rebuild. All the fun scripts happen on the local machine.

I have 3 websites on a single server. I used to use Gnu Screen, but wanted something quicker and less flaky, and Jenkins does pretty good with this. Idk, maybe docker does this even better?

Quote:
Originally Posted by Noodle Wazlib
Less than 70% of $15/hr, and yes I found the place while actively looking. Surprisingly not a lot of "entry-level" or "junior" positions out here, for a town so big that it has a tech hub.
Existing in a tech hub doesn't guarantee work.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-24-2016 , 06:05 AM
Ultimate in vanity metrics: count lines of code in your program using bash.

Code:
#!/bin/bash

# examples: change to whatever file extensions you are using.
# or add file extensions...
declare -a arr=("js" "rb")
ttl=0

shopt -s globstar
IFS=' '

#change directory to wherever you are keeping your program
cd /my_program

for i in "${arr[@]}"
do
    n=( $(wc -l **/*."$i" | grep "total") )
    echo "$i" $n
    ttl=$(($ttl + $n))
done

echo ""
echo "total"
echo $ttl
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-24-2016 , 07:10 AM
Quote:
Originally Posted by blacklab
**** apple **** marketing people **** ux ui people

Launch is tomorrow.

Early last week we agree to push to apple on Thursday.
Last Wednesday we're ready to push, CEO tells me no we planned to push on Thursday so we'll push on Thursday.
Thursday CEO leaves town, I push to apple, marketing and ux/ui insist we add one bug fix in. Pull submission, resubmit on Friday over my objections.
Monday apple rejects due to bug only their demo user was seeing. Work till 11pm last night, submit to apple
Tuesday find bug with thing we submitted last night, now need to push again.

**** piss **** **** **** **** bitch **** **** ****

And of course it's all my fault
This is utter incompetence on every front.

Quote:
Originally Posted by maxtower
I always tell people the App store is a 1 week minimum submission. So if launch is 17th, submission has to happen on 10th. It helps keep those marketing people in line.
Not really. See below.

Quote:
Originally Posted by gaming_mouse
they've changed their review process recently, so it's now typically 1-2 days:

http://appreviewtimes.com/

ofc for critical stuff can't hurt to give yourself a buffer
Submit a built. Get it approved. Resubmit updates as necessary. It isn't hard. But most people are complete morons when it comes to dealing with platform providers and think they should bend over backward for their little rinky dink apps.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-24-2016 , 07:39 AM
Quote:
Originally Posted by gaming_mouse
if you want to do mixins, you can use functions to transform plain js objects:

Code:
var john = {
  name: 'John',
  greet: function() { return `Hi, I'm ${this.name}` }
}

function addRunningAbility(person) {
  person.run = function() { return `${this.name} is running!` }
  return person;
}
addRunningAbility(john);
john.run();
that said, i prefer a style without mutation. which can be achieved by passing your data object to functions rather than adding methods to it:

Code:
function run(person) {
  return `${person.name} is running!`
}
or by creating a new object and returning that (and if identity is important, make it a property of the data object -- have an id property -- rather than relying on in-memory object identity):

Code:
function addRunningAbility(person) {
  return Object.assign({}, person, 
    {run: function() { return `${this.name} is running!` }
  });
}
Awesome, thanks!

Doing some more googling I found this article, which I think uses the second pattern you mentioned:

http://vasir.net/blog/game-developme...-in-javascript
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m