Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Code Samples for a Job Interview

Code Samples for a Job Interview

Scheduled Pinned Locked Moved The Lounge
careerquestion
53 Posts 36 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TNCaver
    wrote on last edited by
    #1

    I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

    If you think 'goto' is evil, try writing an Assembly program without JMP.

    M Z Sander RosselS T realJSOPR 29 Replies Last reply
    0
    • T TNCaver

      I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

      If you think 'goto' is evil, try writing an Assembly program without JMP.

      M Offline
      M Offline
      Munchies_Matt
      wrote on last edited by
      #2

      TNCaver wrote:

      unlike probably most here, I no longer do programming as a hobby on my own time

      Er hum, cough. never. I only do it if someone is paying. Cant stand bloody computers.

      TNCaver wrote:

      proprietary code I've written for my current employer

      You should still keep your own library of code, so you can cut and paste it into new projects, then charge the client full whack for doing sod all. Use that.

      T 1 Reply Last reply
      0
      • T TNCaver

        I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

        If you think 'goto' is evil, try writing an Assembly program without JMP.

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #3

        I guess being honest and saying you don't have any non-proprietary code to show them, but that you've spent the last 15 years writing code about 8 hours a day so that you probably know what you're doing, is out of the question? :rolleyes: I should say I know people who did that too and they are horrible programmers X|

        Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        T 1 Reply Last reply
        0
        • T TNCaver

          I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

          If you think 'goto' is evil, try writing an Assembly program without JMP.

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          TNCaver wrote:

          What would you do in this situation?

          Look for a company that appreciates people. If you have 15 years experience then a simple 5 minute conversation should be enough to find out if you know what you claim to know. It sounds like the company may be too big and has to follow a ton of silly rules and procedures and that may be a glimpse of what it will be like working there. But, if you are interested, I would just put NA in the fields. If they think that lowers your value then you don't want to work for them anyway.

          Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

          R Kornfeld Eliyahu PeterK 2 Replies Last reply
          0
          • T TNCaver

            I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

            If you think 'goto' is evil, try writing an Assembly program without JMP.

            T Offline
            T Offline
            Tim Carmichael
            wrote on last edited by
            #5

            Give them an honest reply: you have worked commercially for 15 years, but do not have a code repository outside of work, and, any product from work is the property of you employer. If they are willing to discuss your qualifications, you can describe your abilities to them. Either they appreciate your honesty and forthright attitude or they don't, but at the end of the day, when you look in the mirror, it is your reflection that is staring back.

            1 Reply Last reply
            0
            • T TNCaver

              I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

              If you think 'goto' is evil, try writing an Assembly program without JMP.

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #6

              I don't do github, but I do have a laptop that I can bring code samples on, plus I refer potential employers here if they want some code I've written.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              1 Reply Last reply
              0
              • T TNCaver

                I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                If you think 'goto' is evil, try writing an Assembly program without JMP.

                J Offline
                J Offline
                jgakenhe
                wrote on last edited by
                #7

                This might be a hint that this is not the company for you. I would tell them that you don't code as a hobby anymore and you don't have GitHub code. In my opinion, any quality technical interviewer can ask questions and determine your skill level and if you'd fit into their organization or not. I've been in my current position for 5.5 years and got it during a 1.5 hour interview. Today, the same level position requires a 8 hour test/program/interview. I would not consider my current position if I had to take a day off work for the opportunity for a new position.

                Z 1 Reply Last reply
                0
                • J jgakenhe

                  This might be a hint that this is not the company for you. I would tell them that you don't code as a hobby anymore and you don't have GitHub code. In my opinion, any quality technical interviewer can ask questions and determine your skill level and if you'd fit into their organization or not. I've been in my current position for 5.5 years and got it during a 1.5 hour interview. Today, the same level position requires a 8 hour test/program/interview. I would not consider my current position if I had to take a day off work for the opportunity for a new position.

                  Z Offline
                  Z Offline
                  ZurdoDev
                  wrote on last edited by
                  #8

                  jgakenhe wrote:

                  would not consider my current position if I had to take a day off work for the opportunity for a new position.

                  :thumbsup:

                  Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                  1 Reply Last reply
                  0
                  • T TNCaver

                    I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                    If you think 'goto' is evil, try writing an Assembly program without JMP.

                    G Offline
                    G Offline
                    GuyThiebaut
                    wrote on last edited by
                    #9

                    Tell them what you have told us. If you are really keen on getting the job, you could also suggest that they set you a small project that would take no longer than a day to code then send back the resulting code to them. I say this because I really dislike coding tests in interviews and have always done really well when I am set something in advance that I can then be questioned about during interview.

                    “That which can be asserted without evidence, can be dismissed without evidence.”

                    ― Christopher Hitchens

                    T 1 Reply Last reply
                    0
                    • T TNCaver

                      I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                      If you think 'goto' is evil, try writing an Assembly program without JMP.

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      Never been asked that and at best I could point them here. And definitely don't show code that another employer owns.

                      1 Reply Last reply
                      0
                      • Z ZurdoDev

                        TNCaver wrote:

                        What would you do in this situation?

                        Look for a company that appreciates people. If you have 15 years experience then a simple 5 minute conversation should be enough to find out if you know what you claim to know. It sounds like the company may be too big and has to follow a ton of silly rules and procedures and that may be a glimpse of what it will be like working there. But, if you are interested, I would just put NA in the fields. If they think that lowers your value then you don't want to work for them anyway.

                        Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                        R Offline
                        R Offline
                        raddevus
                        wrote on last edited by
                        #11

                        ‭011111100010‬ wrote:

                        Look for a company that appreciates people.

                        :rolleyes: 7 years later... (see image - much better) https://i.stack.imgur.com/GQjxQ.png[^] Actually took me 15 years and about 7 companies. Did find one though.

                        1 Reply Last reply
                        0
                        • T TNCaver

                          I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                          If you think 'goto' is evil, try writing an Assembly program without JMP.

                          R Offline
                          R Offline
                          raddevus
                          wrote on last edited by
                          #12

                          1. Imagine you owned the company you are interviewing for and you're interviewing a programmer. 2. Imagine you knew that the code is a representation of the actual business itself -- via business processes, etc. 3. Imagine that when the developer wrote the code that s/he would own a part of the business itself via owning the business processes it represents. 4. Imagine that the developer could walk out at any time leave behind a mess of business process behind that some other poor unfortunate would have to maintain. 5. Imagine your business might lose time, customers, and/or money because of that. Now, what questions would you ask? :laugh:

                          C 1 Reply Last reply
                          0
                          • Z ZurdoDev

                            TNCaver wrote:

                            What would you do in this situation?

                            Look for a company that appreciates people. If you have 15 years experience then a simple 5 minute conversation should be enough to find out if you know what you claim to know. It sounds like the company may be too big and has to follow a ton of silly rules and procedures and that may be a glimpse of what it will be like working there. But, if you are interested, I would just put NA in the fields. If they think that lowers your value then you don't want to work for them anyway.

                            Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu Peter
                            wrote on last edited by
                            #13

                            ‭011111100010‬ wrote:

                            If you have 15 years experience then a simple 5 minute conversation should be enough to find out if you know what you claim to know.

                            The only problem is that the interview done by HR...

                            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                            1 Reply Last reply
                            0
                            • T TNCaver

                              I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                              If you think 'goto' is evil, try writing an Assembly program without JMP.

                              D Offline
                              D Offline
                              dandy72
                              wrote on last edited by
                              #14

                              What everybody else said. Don't try to "cover up" the fact that you've never used GitHub until now - the full history, with dates, is available, so they'll be able to tell you've hurriedly thrown something together for them to look at. I'd have no problem telling any potential employer I don't have a GitHub account. Or that I used to have one at a previous employer...but that code is theirs.

                              T 1 Reply Last reply
                              0
                              • T TNCaver

                                I've received an email from a prospective employer inviting me to set up a job interview. A note at the end requests a link to my GitHub code repo or sample code/projects prior to the interview. I don't have a personal GitHub repo or code samples because, unlike probably most here, I no longer do programming as a hobby on my own time. Everything I've done in the last 15 years that the interviewer would be interested in is proprietary code I've written for my current employer, and I don't feel comfortable sharing that outside the company, even though the two industries are not related by any stretch of the imagination, so they wouldn't be able to benefit. What would you do in this situation? Rewrite some of your code to remove any hints of its purpose or value to your employer? Write new code?

                                If you think 'goto' is evil, try writing an Assembly program without JMP.

                                R Offline
                                R Offline
                                R Giskard Reventlov
                                wrote on last edited by
                                #15

                                Simply point them to the articles you have written for CP. Or tell them that you sell your code - how much are they willing to pay for it?

                                T G 2 Replies Last reply
                                0
                                • D dandy72

                                  What everybody else said. Don't try to "cover up" the fact that you've never used GitHub until now - the full history, with dates, is available, so they'll be able to tell you've hurriedly thrown something together for them to look at. I'd have no problem telling any potential employer I don't have a GitHub account. Or that I used to have one at a previous employer...but that code is theirs.

                                  T Offline
                                  T Offline
                                  TNCaver
                                  wrote on last edited by
                                  #16

                                  Oh, I use GitHub for work, just not for personal code. Otherwise, yeah, I agree.

                                  If you think 'goto' is evil, try writing an Assembly program without JMP.

                                  1 Reply Last reply
                                  0
                                  • M Munchies_Matt

                                    TNCaver wrote:

                                    unlike probably most here, I no longer do programming as a hobby on my own time

                                    Er hum, cough. never. I only do it if someone is paying. Cant stand bloody computers.

                                    TNCaver wrote:

                                    proprietary code I've written for my current employer

                                    You should still keep your own library of code, so you can cut and paste it into new projects, then charge the client full whack for doing sod all. Use that.

                                    T Offline
                                    T Offline
                                    TNCaver
                                    wrote on last edited by
                                    #17

                                    Munchies_Matt wrote:

                                    I only do it if someone is paying

                                    Me too. Coding at home would be like a dentist going home every night and practicing on his family and friends. I don't deal with clients. I have never worked for a code-for-hire shop (and don't plan to start now). I code for the needs of the company I work for, their web site, their intranet, their windows services, and now, their Salesforce implementation (yuck, and one of many reasons I'm leaving after 17 years here).

                                    If you think 'goto' is evil, try writing an Assembly program without JMP.

                                    K 1 Reply Last reply
                                    0
                                    • Sander RosselS Sander Rossel

                                      I guess being honest and saying you don't have any non-proprietary code to show them, but that you've spent the last 15 years writing code about 8 hours a day so that you probably know what you're doing, is out of the question? :rolleyes: I should say I know people who did that too and they are horrible programmers X|

                                      Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                      T Offline
                                      T Offline
                                      TNCaver
                                      wrote on last edited by
                                      #18

                                      That's probably what I'll end up doing, though. I'm not a horrible programmer, I don't think I would have lasted 30 years in the biz if I wasn't at least decent at it (15 years is just how long I've been doing .NET).

                                      If you think 'goto' is evil, try writing an Assembly program without JMP.

                                      C 1 Reply Last reply
                                      0
                                      • G GuyThiebaut

                                        Tell them what you have told us. If you are really keen on getting the job, you could also suggest that they set you a small project that would take no longer than a day to code then send back the resulting code to them. I say this because I really dislike coding tests in interviews and have always done really well when I am set something in advance that I can then be questioned about during interview.

                                        “That which can be asserted without evidence, can be dismissed without evidence.”

                                        ― Christopher Hitchens

                                        T Offline
                                        T Offline
                                        TNCaver
                                        wrote on last edited by
                                        #19

                                        GuyThiebaut wrote:

                                        you could also suggest that they set you a small project that would take no longer than a day to code

                                        I like that idea. I'll float it at them and see what happens.

                                        If you think 'goto' is evil, try writing an Assembly program without JMP.

                                        1 Reply Last reply
                                        0
                                        • R R Giskard Reventlov

                                          Simply point them to the articles you have written for CP. Or tell them that you sell your code - how much are they willing to pay for it?

                                          T Offline
                                          T Offline
                                          TNCaver
                                          wrote on last edited by
                                          #20

                                          Er, I come to CP to read the buggers, not write them. :laugh:

                                          If you think 'goto' is evil, try writing an Assembly program without JMP.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups