Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

05-12-2017 , 05:07 PM
Quote:
Originally Posted by Larry Legend
I spent a lot of time early on in this bootcamp getting to know the JS iteration methods, now whenever I have a challenge in front of me, I feel like I always want to use a forEach loop.

Its nice being somewhat productive with crude tools and strategies, but I really need to expand my horizons and learn a lot more features.

Is Code wars a good way to practice stuff? any other suggestions?
Why don't you just refactor your own work?

FWIW, everything is a loop, for the most part...

Map? Iterate over each item and do an op on it.

Reduce? Iterate over each item, sum each (or whatever op), until you have one item.

Filter? Iterate over each item, remove what you don't want.

Zip? Iterate over TWO lists, do an op 1-to-1 on each respective item.

My answer... SICP or Cormen.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 05:30 PM
Quote:
Originally Posted by jjshabado
I like 5 + 5 to equal 10 and not 55. That's a scenario where I care about the difference.
Quote:
Originally Posted by just_grindin
Not even sure if this is a good reason to prefer static typing but it would seem to me that the return values here could be ambiguous given integers and string representations of numerals could be interpreted as equivalent.


'5'+3

Or worse yet

'5'*3




Sent from my SM-G900R4 using Tapatalk
easy...

Code:
+'5' + 5 => 10
One extra character is pretty painless. It's known as unary operator. I think most languages have a painless way to coerce a string into an int (if possible) or return a NaN otherwise.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 05:33 PM
Nobody said we couldn't make 5 + 5 = 10.

You asked for the cases when we care about the difference between '5' and 5 and we gave you one. If you're adding '+' in your code then obviously you care about the difference between '5' and 5 already.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 05:58 PM
Quote:
Originally Posted by jjshabado
Nobody said we couldn't make 5 + 5 = 10.

You asked for the cases when we care about the difference between '5' and 5 and we gave you one. If you're adding '+' in your code then obviously you care about the difference between '5' and 5 already.
I'm saying its easier to do than force static typing everywhere.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 06:04 PM
Quote:
Originally Posted by Craggoo
I'm saying its easier to do than force static typing everywhere.
Maybe. The hard part isn't doing it, it's recognizing when you need to do it and sticking with it.

I do probably 60% of my programming in dynamic languages, either entirely untyped or duck-typed like python. There are many things about static typing that are great, and also many things about compiled languages that are great.

In a c++ program you never have to ask "is this variable/function/class used?". Compile, and if it doesn't break, then no.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 10:19 PM
Goddam it's nice to have something to do with clear requirements, a challenging problem, and a whole group of people who deeply care whether it gets done or not. It's been at least a year. **** being an architect if means creating **** no one cares about all day.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-12-2017 , 10:43 PM
Quote:
Originally Posted by muttiah
lol Haskell. Talk about a language that everyone talks about being awesome but nobody really uses it to build serious stuff.
Actually, I'm going to take this a step further.

Handing a bad programmer Haskell, Clojure, GoLang, or some of these other amazing languages is like handing an Uzi to a 6 year old. You did it because you like the kid and you really want him to have fun, but you didn't think through the consequences very well.

I've often mentioned here how I'd never do a project in Clojure if I expected to have a team of developers working on it. If you read blogs from companies that use Clojure, Haskell, etc, they talk about a long training and build-up to bring developers up to speed. In smart hands, these languages are awesome, and those are the people who are talking it up.

You really can't learn these in a weekend. In the early stages, you get a glimpse of what is possible, but it takes considerable thought and failure to really get it and see how incredibly simple they are. One can argue that the learning curve makes it less awesome, but each their own.

Few companies are using these languages because you really can't depend on every programmer to get it right, and so it's much easier to find a common language people learned to code in while in college and run with it. Plus, you have RoR, Django, and a ton of other libs that are well-baked for many neat things. I'm not sure, but the working idea seems to be to mitigate mistakes, and if Java, Python, C++, etc. all do well to prevent mistakes, that's pretty okay.

Let's not kid ourselves that the best always wins. PostgreSQL is probably better than MySQL; Ruby is probably better than Python; Apple is probably better than Windows; etc. No one would say with a straight face the Budweiser is a great tasting beer, but you know, it's popular and everyone gets it. Programmers are human, and not above having unfounded biases or taking short-cuts to decisions.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 12:31 PM
Have any of you guys worked in a company where you got RSUs from a private company and there was no secondary market to sell after they vest? The talk of RSUs came up with my coworkers and one of them said that he has a big decision as to whether to leave before his 1 year vest since he doesn't want to pay taxes on his RSUs.

I thought that was silly until my coworker explained that once the RSU vest, you paid taxes on them AND you couldn't sell them until we either IPO or there is a secondary market opportunity in which we can sell.

Looking at my offer letter again, it noted that the two liquidating conditions are when the company IPOs or there is a change of ownership.

I was really hoping to sell most if not all of the RSUs, but that doesn't seem to be the case . Worst case scenario is our RSU vest at a high point leaving me paying huge taxes and then the company goes to bust.

Which makes me wonder.. what happens when your RSU >>>> than your base comp such that the taxes you paid are greater than your base comp? You're screwed.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 12:57 PM
Yea, I think it is almost always the wrong way to structure employee stock in private companies whose only liquidity is IPO or acquisition.

You want stock to be a bonus not a burden.

It might mean the current valuation is relatively bloated and they are trying to help you still get value in the stock they are giving you. But intentions good or not, I just find it a sucky way to do it most of the time.

Last edited by Larry Legend; 05-13-2017 at 01:03 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 02:09 PM
I've never dealt directly with RSUs and I live in a differenct country... but my understanding was that RSU's weren't taxable until they had vested AND were liquid.

Googling doesn't show a lot of evidence for this, but it does show some. So it might be worth it to read the fine print very carefully and if you're talking about significant money talking to an actual tax expert.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 02:20 PM
Quote:
Originally Posted by Mossberg
Hi guys,

Hopefully this is the correct place to post this. After spending all of my 20s playing poker (successfully!) I am now doing a post-bachelor diploma in CS. This is a 2-year/condensed program for previous degree holders (my first degree is in History ) and provides all the essential CS and math classes with no filler/electives/bs. I'm now preparing to enter my first co-op term and am unsure if or how I should include my poker experience on my resume and in conversations with employers. I know this has been discussed on 2+2 ad nauseum, but I'm interested in hearing from those of you who are actually in this industry and/or have been through a similar situation. I don't have much else to put on my resume, except for a couple basic projects, volunteer experience, and a previous degree in an entirely irrelevant field, so I'm torn between empty resume vs controversial resume. Any advice?
How old do you look?

Because you're in school and it's a co-op, I think some of the stigma of having "nothing" on your resume is eliminated. But if you look like you're in your 30s or they can deduce that, it might be weird.

There were some people at my bootcamp with no prior work experience, and I'd venture a guess that their response rate was higher than mine, older and with a poker resume.

Are you in an area where you can't risk choosing "wrong" because there aren't enough companies to apply to?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 02:40 PM
Quote:
Originally Posted by jjshabado
I've never dealt directly with RSUs and I live in a differenct country... but my understanding was that RSU's weren't taxable until they had vested AND were liquid.

Googling doesn't show a lot of evidence for this, but it does show some. So it might be worth it to read the fine print very carefully and if you're talking about significant money talking to an actual tax expert.
I agree with this FWIW.

@Barrin6 - How is the value of the stock being determined since it is private equity. To me, again FWIW, I have serious doubts that you have tax issue until you could actually sell your shares which you can't.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 02:43 PM
What do you do?

The company you work for has been hired to work on a project by another company. The project requires use of a particular subcontractor. You previously worked for that subcontractor and you therefore know first-hand that they often “pad” their hours and overcharge their customers for their time.

If they do this on this project, though, it won’t hurt your company, since those costs will be passed on to your company’s customer. You’ve mentioned this to your boss and he has advised you not to say anything to the customer, especially since the subcontractor’s portion of the project only represents a small fraction of the overall budget.

You have a very close friend who works for the customer though. One day over lunch, your friend asks you what you know about this subcontractor, since he knows you used to work there. How do you respond and what do you tell him?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 02:56 PM
Quote:
Originally Posted by adios
I agree with this FWIW.

@Barrin6 - How is the value of the stock being determined since it is private equity. To me, again FWIW, I have serious doubts that you have tax issue until you could actually sell your shares which you can't.
There's still a value to the share for tax purposes. It's typically set through an 'independent' 409a valuation.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 03:08 PM
Quote:
Originally Posted by jjshabado
There's still a value to the share for tax purposes. It's typically set through an 'independent' 409a valuation.
Thanks

409a, deferred income, RSUs

Looks like you could owe some taxes on them. HR, tax experts FTW.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 03:08 PM
Quote:
Originally Posted by greg nice
What do you do?

The company you work for has been hired to work on a project by another company. The project requires use of a particular subcontractor. You previously worked for that subcontractor and you therefore know first-hand that they often “pad” their hours and overcharge their customers for their time.

If they do this on this project, though, it won’t hurt your company, since those costs will be passed on to your company’s customer. You’ve mentioned this to your boss and he has advised you not to say anything to the customer, especially since the subcontractor’s portion of the project only represents a small fraction of the overall budget.

You have a very close friend who works for the customer though. One day over lunch, your friend asks you what you know about this subcontractor, since he knows you used to work there. How do you respond and what do you tell him?
I'm gonna need to know how many beers I have in me when the question pops.

Assuming zero, I'd probably try to say something w/o using explicit words. Like - oh yeah, they're fine, nothing much to say. But by omission of any compliments you've kind of given your friend a clue. It totally depends on the situation and how you and your friend communicate.

Also I've seen some hour padding pretty much everywhere I've worked that billed clients by the hour. So I'm guessing this is more out of line than that?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 03:52 PM
What do you mean by hour padding? Like rounding up billable hours to the nearest time period? Or just blatantly adding hours that weren't worked?

wrt employee stock, the whole structure sucks. Just don't get those lol Skype style options.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 03:55 PM
Quote:
Originally Posted by suzzer99
Goddam it's nice to have something to do with clear requirements, a challenging problem, and a whole group of people who deeply care whether it gets done or not. It's been at least a year. **** being an architect if means creating **** no one cares about all day.
Oh, I have that too!

Clear requirements? check

Challenging problem? check

People who care? check

Code that people use? check
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 05:31 PM
Quote:
Originally Posted by jjshabado
There's still a value to the share for tax purposes. It's typically set through an 'independent' 409a valuation.
Yea this is the part that sucks. It has value, but it is very illiquid.

Quote:
Originally Posted by greg nice
What do you do?

The company you work for has been hired to work on a project by another company. The project requires use of a particular subcontractor. You previously worked for that subcontractor and you therefore know first-hand that they often “pad” their hours and overcharge their customers for their time.

If they do this on this project, though, it won’t hurt your company, since those costs will be passed on to your company’s customer. You’ve mentioned this to your boss and he has advised you not to say anything to the customer, especially since the subcontractor’s portion of the project only represents a small fraction of the overall budget.

You have a very close friend who works for the customer though. One day over lunch, your friend asks you what you know about this subcontractor, since he knows you used to work there. How do you respond and what do you tell him?
Quote:
Originally Posted by suzzer99
I'm gonna need to know how many beers I have in me when the question pops.

Assuming zero, I'd probably try to say something w/o using explicit words. Like - oh yeah, they're fine, nothing much to say. But by omission of any compliments you've kind of given your friend a clue. It totally depends on the situation and how you and your friend communicate.

Also I've seen some hour padding pretty much everywhere I've worked that billed clients by the hour. So I'm guessing this is more out of line than that?
At the end of the day 90% of subcontractors suck. The fact it is only a fraction of the overall budget and it is reputable enough that you worked there previously makes the whole thing sound like a pretty big win.

I think your boss telling you not to say anything means if somehow worst case this blows up on subcontractor and they get fired/some drama happens, you just tell your boss you didn't say anything. He probably will think you said something but not give a **** if it doesn't come back on you guys at all.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 05:42 PM
So far in my javascript apps I have been making extensive use of hiding/showing/editing dom elements through stuff like:

$('#element').hide/.html/.text, etc.

It feels terrible but they hadn't shown us much other than handlebars, which was a step in the right direction, but didn't solve much of the bloat.

Going through build-with-react I am basically fist-pumping. This looks really solid and also pretty intuitive
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 06:19 PM
In case no one has noticed, I've been pretty tongue-in-cheek about the current code I'm working with. How is someone with no real-world reference supposed to know precisely how bad it is? I knew from first glance that there were many issues, but...

I always feel like, well, I'm below average in talent (or at least interviewing), and then people are actually creating this... stuff.

The bonus is that I'm working alone. This means I can go through and fix everything with no arguments. In some ways, I like the challenge of this particular job, but... I just don't know what the last person was thinking.

Sorry, I'm just having a real hard time wrapping my head around all this. I'm not complaining, just confused.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 06:28 PM
One of my best friends inherited a codebase mostly written by a phd in data science with contributions from an intern who was copy pasting giant swaths of stuff. He didn't even understand how some of the syntax managed to work.

Your perspective on average code quality at the average company is evolving.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 06:39 PM
Quote:
Originally Posted by Larry Legend
So far in my javascript apps I have been making extensive use of hiding/showing/editing dom elements through stuff like:

$('#element').hide/.html/.text, etc.
Youll be happy to know that this pattern is basically dead in any application made that isn't 5+ years old.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 06:57 PM
It is very gross and I came to my breaking point with it this week.

It hasn't even caused me any issues I just hate it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-13-2017 , 07:08 PM
Quote:
Originally Posted by Baltimore Jones
How old do you look?

Because you're in school and it's a co-op, I think some of the stigma of having "nothing" on your resume is eliminated. But if you look like you're in your 30s or they can deduce that, it might be weird.

There were some people at my bootcamp with no prior work experience, and I'd venture a guess that their response rate was higher than mine, older and with a poker resume.

Are you in an area where you can't risk choosing "wrong" because there aren't enough companies to apply to?
I look very young for my age--people regularly mistake me for early 20s, so maybe I can use this to my advantage. But the fact that I have a previous degree on my resume (completed in 2014) will tell the employer that I'm at least mid-twenties.

And I'm in Vancouver area at a university with a very-well regarded CS program, so I think there will be plenty of companies to apply to. All the big companies recruit here, and there is an emerging tech scene here so lots of smaller companies as well. I'm not too selective about who I work for; at this point I'd just be super grateful for any company to give me a chance.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m