Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Ronald Raiden posted:

all of those are pretty cool things also so is algorithms

who did you used to be

Adbot
ADBOT LOVES YOU

Axel Rhodes Scholar
May 12, 2001

Courage Reactor

i was so bored at my old job i wrote most of an arm emulator in coffeescript during the downtime when they thought i was loving around on HN or facebook or w/e

graph
Nov 22, 2006

aaag peanuts

rotor posted:

who did you used to be

A Big Fart

coaxmetal
Oct 21, 2010

I flamed me own dad

graph posted:

A Big Fart

before that I was coaxmetal

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

rotor posted:

alternately just move to sf and get paid the same at some startup for just dickin around

yeah but a house in chicago isn't 1.5mio, unless you live on the lake/loop

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

dazjw posted:

i was so bored at my old job i wrote most of an arm emulator in coffeescript during the downtime when they thought i was loving around on HN or facebook or w/e

literally cannot bring myself to open a text editor if I'm not being paid for it

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

trex eaterofcadrs posted:

yeah but a house in chicago isn't 1.5mio, unless you live on the lake/loop

neither is a house in sf unless you live in a really fancy part

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

rotor posted:

neither is a house in sf unless you live in a really fancy part

slight hyperbole but aren't even normal houses "in the city" like 750+?

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

trex eaterofcadrs posted:

slight hyperbole but aren't even normal houses "in the city" like 750+?

my place is around 600, 650. 3bdrms, decent yard.

Shaggar
Apr 26, 2006

Sulk posted:

upsides: money
downsides: java, bulls, bears, blackhawks, white sox, cubs

maybe i'll learn java. i dunno

java is an upside

The Management
Jan 2, 2010

sup, bitch?
Please stop encouraging terrible programmers from moving to the bay area. There are enough of them already.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

volkadav posted:

I'm glad that you like writing performant server-side code, good on you, but realize that node is only (sort of, in some situations) fast because it embodies a particular design pattern, not because it happens to be javascript.

lol @ anyone who thinks writing js is writing performant server-side code

but that's not actually important if your business is a normal for-profit business and not some valley vc "web scale" bullshit that requires suckling at a constant teat of investors to keep functioning: http://37signals.com/svn/posts/1509-mr-moore-gets-to-punt-on-sharding

dhh posted:

The general advise on sharding is that you don’t until you have to. It’s similar to Martin Fowler’s First Law of Distributed Object Design: Don’t distribute your objects! Sharding is still relatively hard, has relatively poor tool support, and will definitely complicate your setup.

Now I always knew that the inevitable day would come where we would have no choice. We would simply have to shard because there was no more vertical scaling to be done. But that day seems to get pushed further and further into the future.

Bigger caches, more reads
Our read performance is in some aspect being taken care of by the fact that you can get machines with 256GB RAM now. We upgraded the Basecamp database server from 32GB to 128GB RAM a while back and we thought that would be the end of it.

The box was maxed out and going beyond 128GB at the time was stupid expensive. But now there’s 256GB to be had at a reasonable price and I’m starting to think that by the time we reach that, there’ll be reasonably priced 512GB machines.

So as long as Moore’s law can give us capacity jumps like that, we can keep the entire working set in memory and all will be good. And even if we should hit a ceiling there, we can still go to active read slaves before worrying about sharding.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

rotor posted:

my place is around 600, 650. 3bdrms, decent yard.

hm, still more, but not as bad as i thought.

400 will get you a p decent place in chitown, but it's also a huge rear end city, you can get a place for like 60 if you REALLY wanted.

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano

rotor posted:

literally cannot bring myself to open a text editor if I'm not being paid for it

i havent rly done any proper coding since i graduated like 6 months ago cos im completely unmotivated. kind of burnt out i guess. the story would be very different if i were actually paid to do it X hours a day. i do still rly enjoy digging my teeth into a problem and am mad into maths+cs+coding but i dont tend to do it in my free time for fun any more. how am i supposed to differentiate myself in the eyes of an interviewer from some useless shitlord that knows nothing

like are there any interviewers out there who will actually give me a pencil + paper and let me play about with ideas and solve some problems rather than asking me about poo poo i dont even remember

ppp
Feb 13, 2012

by angerbot

Rufo posted:

i havent rly done any proper coding since i graduated like 6 months ago cos im completely unmotivated. kind of burnt out i guess. the story would be very different if i were actually paid to do it X hours a day. i do still rly enjoy digging my teeth into a problem and am mad into maths+cs+coding but i dont tend to do it in my free time for fun any more. how am i supposed to differentiate myself in the eyes of an interviewer from some useless shitlord that knows nothing

like are there any interviewers out there who will actually give me a pencil + paper and let me play about with ideas and solve some problems rather than asking me about poo poo i dont even remember

all of them

Hammerite
Mar 9, 2007

And you don't remember what I said here, either, but it was pompous and stupid.
Jade Ear Joe

Rufo posted:

i havent rly done any proper coding since i graduated like 6 months ago cos im completely unmotivated. kind of burnt out i guess. the story would be very different if i were actually paid to do it X hours a day. i do still rly enjoy digging my teeth into a problem and am mad into maths+cs+coding but i dont tend to do it in my free time for fun any more. how am i supposed to differentiate myself in the eyes of an interviewer from some useless shitlord that knows nothing

like are there any interviewers out there who will actually give me a pencil + paper and let me play about with ideas and solve some problems rather than asking me about poo poo i dont even remember

you should totally show intervieweres goatkcd rufo.

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
i could rewrite it to use proper computer vision algos i guess cos its a complete joke atm + also written in php

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Rufo posted:

i do still rly enjoy digging my teeth into a problem and am mad into maths+cs+coding but i dont tend to do it in my free time for fun any more. how am i supposed to differentiate myself in the eyes of an interviewer from some useless shitlord that knows nothing

like are there any interviewers out there who will actually give me a pencil + paper and let me play about with ideas and solve some problems rather than asking me about poo poo i dont even remember

my interview for current position was good like that: a tour of my github, i describe how and why i wrote some things certain ways, etc.

coaxmetal
Oct 21, 2010

I flamed me own dad
I don't really have anything on my github and its not really an issue right now but I think for down the line it would be cool to have some stuff or contribute to a thing, the problem is yea, I suck at doing projects that aren't for work or school.

double sulk
Jul 2, 2010

Ronald Raiden posted:

I don't really have anything on my github and its not really an issue right now but I think for down the line it would be cool to have some stuff or contribute to a thing, the problem is yea, I suck at doing projects that aren't for work or school.

my problem is figuring out what to work on and how to contribute. do people just a) read every line of code looking for issues, or b) use/try to break the programs intentionally? also another issue is a lot of projects on github are uninteresting plugins/extensions for X program/Y language :\

Axel Rhodes Scholar
May 12, 2001

Courage Reactor

at uni i used to fix bugs in OSS stuff for practise by the simple expedient of
a) use OSS product
b) encounter horrible bug
c) fix it

note that step b may take several seconds so be patient gl

coaxmetal
Oct 21, 2010

I flamed me own dad

dazjw posted:

at uni i used to fix bugs in OSS stuff for practise by the simple expedient of
a) use OSS product
b) encounter horrible bug
c) fix it

note that step b may take several seconds so be patient gl

I actualyl encountered a bug in an oss produt I am using now... but its hosted on sourceforge????

Dr. Honked
Jan 9, 2011

eat it you slaaaaaaag

Sulk posted:

my problem is figuring out what to work on and how to contribute. do people just a) read every line of code looking for issues, or b) use/try to break the programs intentionally? also another issue is a lot of projects on github are uninteresting plugins/extensions for X program/Y language :\

personally when i look at code samples i'm looking at their coding style. you can learn a lot about a person by looking at their code.

for example, here is some code from a real candidate:

code:
    public Player(bool humanPlayer, bool isHost, int compPlayerNum, int numCards, int environment, Gamer gamerProfile, bool mp)
        {
            Random rand = new Random();
            PublicEnums.CompPlayerNames playerNameNum;

            nextUsedIndex = 0;
            playerCards = new int[numCards];
            oldBars = 3;
            this.humanPlayer = humanPlayer;
            this.environment = environment;
            this.isHost = isHost;

            if (humanPlayer)
            {
                if (!Gamer.SignedInGamers[0].IsGuest)
                {
                    gamerTag = gamerProfile.Gamertag;
                }
                else
                {
                    gamerTag = "Guest";
                }
            }
            else
            {
                if (compPlayerNum == 0)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 1";
                    }
                }
                else if (compPlayerNum == 1)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 2";
                    }
                    else
                    {
                        gamerTag = "Computer 1";
                    }
                }
                else if (compPlayerNum == 2)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 3";
                    }
                    else
                    {
                        gamerTag = "Computer 2";
                    }
                }
                else if (compPlayerNum == 3)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 4";
                    }
                    else
                    {
                        gamerTag = "Computer 3";
                    }
                }
            }
        }

in the same file, not far away, there's this:

code:
  if (humanPlayer)
            {
                this.playerIndex = playerIndex;

                if (Gamer.SignedInGamers[playerIndex] != null)
// && Gamer.SignedInGamers[playerIndex].IsSignedInToLive && !Gamer.SignedInGamers[playerIndex].IsGuest)
                {
                    gamerTag = gamerProfile.Gamertag;
                }
                else
                {
                    gamerTag = "Guest";
                }
            }
            else
            {
                if (compPlayerNum == 1)
                {
                    gamerTag = "Computer 1";
                }
                else if (compPlayerNum == 2)
                {
                    gamerTag = "Computer 2";
                }
                else if (compPlayerNum == 3)
                {
                    gamerTag = "Computer 3";
                }
            }
        }

and this:

code:

           if (humanPlayer)
            {
                this.gamerTag = gamerTag;
                //Gamer.SignedInGamers[0].IsSignedInToLive &&
                //if (!Gamer.SignedInGamers[0].IsGuest)
                //{
                 //   gamerTag = gamerProfile.Gamertag;
                //}
                //else
                //{
                //    gamerTag = "Guest";
                //}
            }
            else
            {
                //REQUIRES CUSTOM GAMERPICS FOR NON-HUMAN PLAYERS
                if (compPlayerNum == 0)
                {
                    gamerTag = "Computer 1";
                }
                else if (compPlayerNum == 1)
                {
                    gamerTag = "Computer 2";
                }
                else if (compPlayerNum == 2)
                {
                    gamerTag = "Computer 3";
                }
                else if (compPlayerNum == 3)
                {
                    gamerTag = "Computer 4";
                }
            }
        }
this was sent by the candidate in response to my request for code that the candidate was particularly proud of, that showed their skills. would you give this person a job? i wouldn't.

Code samples are also a way for candidates to show their enthusiasm - you can tell if a person likes to code, by the code that they write.

newreply.php
Dec 24, 2009

Pillbug

Dr. Honked posted:

personally when i look at code samples i'm looking at their coding style. you can learn a lot about a person by looking at their code.

for example, here is some code from a real candidate:

code:
    public Player(bool humanPlayer, bool isHost, int compPlayerNum, int numCards, int environment, Gamer gamerProfile, bool mp)
        {
            Random rand = new Random();
            PublicEnums.CompPlayerNames playerNameNum;

            nextUsedIndex = 0;
            playerCards = new int[numCards];
            oldBars = 3;
            this.humanPlayer = humanPlayer;
            this.environment = environment;
            this.isHost = isHost;

            if (humanPlayer)
            {
                if (!Gamer.SignedInGamers[0].IsGuest)
                {
                    gamerTag = gamerProfile.Gamertag;
                }
                else
                {
                    gamerTag = "Guest";
                }
            }
            else
            {
                if (compPlayerNum == 0)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 1";
                    }
                }
                else if (compPlayerNum == 1)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 2";
                    }
                    else
                    {
                        gamerTag = "Computer 1";
                    }
                }
                else if (compPlayerNum == 2)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 3";
                    }
                    else
                    {
                        gamerTag = "Computer 2";
                    }
                }
                else if (compPlayerNum == 3)
                {
                    if (mp)
                    {
                        gamerTag = "Computer 4";
                    }
                    else
                    {
                        gamerTag = "Computer 3";
                    }
                }
            }
        }

in the same file, not far away, there's this:

code:
  if (humanPlayer)
            {
                this.playerIndex = playerIndex;

                if (Gamer.SignedInGamers[playerIndex] != null)
// && Gamer.SignedInGamers[playerIndex].IsSignedInToLive && !Gamer.SignedInGamers[playerIndex].IsGuest)
                {
                    gamerTag = gamerProfile.Gamertag;
                }
                else
                {
                    gamerTag = "Guest";
                }
            }
            else
            {
                if (compPlayerNum == 1)
                {
                    gamerTag = "Computer 1";
                }
                else if (compPlayerNum == 2)
                {
                    gamerTag = "Computer 2";
                }
                else if (compPlayerNum == 3)
                {
                    gamerTag = "Computer 3";
                }
            }
        }

and this:

code:

           if (humanPlayer)
            {
                this.gamerTag = gamerTag;
                //Gamer.SignedInGamers[0].IsSignedInToLive &&
                //if (!Gamer.SignedInGamers[0].IsGuest)
                //{
                 //   gamerTag = gamerProfile.Gamertag;
                //}
                //else
                //{
                //    gamerTag = "Guest";
                //}
            }
            else
            {
                //REQUIRES CUSTOM GAMERPICS FOR NON-HUMAN PLAYERS
                if (compPlayerNum == 0)
                {
                    gamerTag = "Computer 1";
                }
                else if (compPlayerNum == 1)
                {
                    gamerTag = "Computer 2";
                }
                else if (compPlayerNum == 2)
                {
                    gamerTag = "Computer 3";
                }
                else if (compPlayerNum == 3)
                {
                    gamerTag = "Computer 4";
                }
            }
        }
this was sent by the candidate in response to my request for code that the candidate was particularly proud of, that showed their skills. would you give this person a job? i wouldn't.

Code samples are also a way for candidates to show their enthusiasm - you can tell if a person likes to code, by the code that they write.
tbf DRY could apply to Do Repeat Yourself just as good as to Don't Repeat Yourself

Dr. Honked
Jan 9, 2011

eat it you slaaaaaaag
DSMCSSLT - Don't Send Me Clown School poo poo Like This

CaptainMeatpants
Jun 1, 2010

to weed out the undesirables we always ask:

for a given string, output a list of unique characters and their number of occurrences

like 90% of applicants can't figure it out

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

CaptainMeatpants posted:

to weed out the undesirables we always ask:

for a given string, output a list of unique characters and their number of occurrences

like 90% of applicants can't figure it out

if they use a bloom filter you can disqualify them on account of then you know they read hacker news

coaxmetal
Oct 21, 2010

I flamed me own dad

BonzoESC posted:

if they use a bloom filter you can disqualify them on account of then you know they read hacker news

I know how to sue a bloom filter but I woudln't have thought to use it unless I was in a do fancy poo poo mindset already. If i was just given that task in real life i'd just use a loop + dictionary probably.

CaptainMeatpants
Jun 1, 2010

Ronald Raiden posted:

I know how to sue a bloom filter but I woudln't have thought to use it unless I was in a do fancy poo poo mindset already. If i was just given that task in real life i'd just use a loop + dictionary probably.

that's the answer we look for cause it's a real life answer

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
code:
Set.new(youre_post.chars).to_a

Nomnom Cookie
Aug 30, 2009



Lol bloom filter. If you do it an array then use an array

Shaggar
Apr 26, 2006
i dont like that maps are called dictionaries in c#

Police Academy III
Nov 4, 2011

BonzoESC posted:

code:
Set.new(youre_post.chars).to_a

ur supposed to count them though
the_string.group_by {|x| x}.map {|k, v| [k, v.size]}

coaxmetal
Oct 21, 2010

I flamed me own dad

Shaggar posted:

i dont like that maps are called dictionaries in c#

u can also call them associative arrays if you want. BUt no languages do that.

The fact that they are a basic data type that you don't need to do anything fancy to use in python is super convenient.

Nomnom Cookie
Aug 30, 2009



Btw I meant array not map I know some "developers" are confused about the difference from php-induced idiocy

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

Ronald Raiden posted:

u can also call them associative arrays if you want. BUt no languages do that.

the best one does

coaxmetal
Oct 21, 2010

I flamed me own dad

Tiny Bug Child posted:

the best one does

php "arrays" aren't even proper dictionaries. iirc you can only use like strings or ints as keys or something gay like that, I forget.

Nomnom Cookie
Aug 30, 2009



Someday I'm gonna get sent to interview some ~promising fresh grad talent~ and I'm gonna ask "hey, like, what are arrays?" and they're gonna say "idk" or "those are the things where you have, like, keys and values, right?" and I will say "thanks for saving me some time, bye bye" while fantasizing about breaking their fingers do I don't need to worry about them running loose and capable of programming.

Nomnom Cookie
Aug 30, 2009



Ronald Raiden posted:

php "arrays" aren't even proper dictionaries. iirc you can only use like strings or ints as keys or something gay like that, I forget.
yeah they also have value semantics and preserve insertion order. Literally the worst map implementation

Adbot
ADBOT LOVES YOU

Sneaking Mission
Nov 11, 2008

rotor posted:

if ur in sf and are basically competent with js & python get me your resume

im neither of those but if the money's right i'm willing to relocate

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply