Live data from Hacker News

Ask HN: How is the job search coming along for people who got laid off?

news.ycombinator.com

441–450 of 579 posts

Re: Ask HN: How is the job search coming along for people who got laid off?

#441
post #412

Earlier quoted context omitted.

We are actually both wrong. If they passed objects by value you'd be modifying a copy. They technically "pass by object reference" as another poster mentioned.

No sorry, you are incorrect and you can verify the correct answer on Wikipedia or any technical book on this subject. For example the Java Language Specification states in section 8.4.1 that Java is pass by value: https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html... ECMAScript's Language Specification also states in section 10.6 that it uses pass by value semantics, although it's much more formal about the…

This is indeed correct. Object references themselves in Java/Python are passed by value, which is why the following two code samples do not have the same effect:

  Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
  [GCC 9.4.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> def f(d):
  ...     d['foo'] 'bar'}
  ... 
  >>> a = {}
  >>> f(a)
  >>> a
  {'foo': 'bar'}



  Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
  [GCC 9.4.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> def f(d):
  ...     d = {'foo': 'bar'}
  ... 
  >>> a = {}
  >>> f(a)
  >>> a
  {}

Re: Ask HN: How is the job search coming along for people who got laid off?

#442
I feel everyone who's in a bad place now, uncertain about the future.

My approach has been often to take a mixed-risk approach, and it seems to work out well. First, no debt. Second, long-cash. After working for about ten years in relatively low paying roles I have something like a runway of about 25 years - that is I would not need to take on any job for 25 years while keeping mostly my current standard of living (plus be happier, as I would have more time).

I plan to work for about 5 more years, then switch from a high-stress environment to cool projects that do not need to make lots of money.

The key has been to continue to live like a student, we have a small cheap flat, go out eating maybe once a month, no car, no expensive hobby, little distractions.

With a faang salary, I probably could have achieved that not in ten, but in two years.

That's why I'm a bit curious why people are so stressed out.

Re: Ask HN: How is the job search coming along for people who got laid off?

#443
post #387

Earlier quoted context omitted.

While it's certainly very real, it's conflated with a lot of things: compensation expectations, specialization, potentially not up on current trends, maybe set in ways, etc.

I think a big one is there just being fewer old programmers so you don't see them as much so you think there's ageism. But the market has grown a ton over the past 10-20 years. None of my friends in their 40s have trouble getting jobs. This includes software jobs that tend to skew young, such as game dev and startups. I wouldn't doubt it exists, but anecdotally it doesn't seem to be such a huge problem that you can't…

Maybe naive but I don't really see 40s as ageism territory in general. That said, a lot of people adapt. Go into management. More externally facing roles. Different types of companies.

Re: Ask HN: How is the job search coming along for people who got laid off?

#444
post #426

Earlier quoted context omitted.

My understanding of what's going on with python is it passes by reference (hence what your code does), but if the data type is immutable any modification results in a new instance being created in the scope of the function, and the object passed in is not modified. Which mostly looks like pass-by-value behaviour. I guess my understanding could be technically wrong in some way, but it seems to reflect what happens.

The issue is that Python passes references by value, so you cannot overwrite what the arguments of a function reference from the perspective of the caller. However, if you pass something like a dictionary or a class the function gets a copy of the reference and can use it to update the members of what was passed. Java operates on the same principle, although there may be some edge cases I'm not aware of where the two…

Perhaps I'm being simple minded, but the id of the passed object within the function is the same as the id of the object outside the function, no? My mental model is that an object's id in python is basically an address / pointer. So, how come it's the same inside the function as outside, if it's not pass by reference?

Re: Ask HN: How is the job search coming along for people who got laid off?

#445

Earlier quoted context omitted.

Is that a bad thing? A lot of real world problems don't have simple computational complexity. I'd learn more about someone from how they considered heuristic tradeoffs and assumptions that could produce a "good enough" solution to a tough problem than seeing if they could reproduce Dijkstra's algorithm from memory.

It wasn't framed as "find an approximate/heuristic solution".

That's fine. Just provide and exponential runtime algorithm and you are good.

Re: Ask HN: How is the job search coming along for people who got laid off?

#446
post #281

Earlier quoted context omitted.

Is it highly unethical? You're hired to do a job, if you can successfully do that job and another one, I don't think there is anything unethical about doing that. It's very common in lower wage positions, not sure why it's suddenly unethical in higher wage positions. I would say it's unethical to force people to sign a contract saying you own all of their attention during the day, even if you don't use it.

You sign a contract stating you're going to devote all of your available professional mental energy towards your company's problems.

Violating a contract is not the same as doing something unethical. People violate non-competes all the time and IMO doing so is VERY ethical.

Re: Ask HN: How is the job search coming along for people who got laid off?

#447

Earlier quoted context omitted.

Because the plebs sign contracts saying they won’t. It’s not illegal, just highly unethical. It’s also not true, he does not know someone doing this.

If you sign a contract, then it is breach of contract, which would be a kind of illegal. I don't see the ethical quandaries though. So long as one is doing the work promised, and the company is satisfied with their output. It's not any more unethical than working on any other side project after hours.

Not the sort of illegal that'll get you thrown in jail though.

Re: Ask HN: How is the job search coming along for people who got laid off?

#448
post #300

Earlier quoted context omitted.

I strongly disagree. Here's a family home with garden in the Berlin area that you can rent-to-own at 1900€ per month: https://www.immobilienscout24.de/expose/135035667 So with a 100k€ annual salary, one working parent alone can buy the house and feed the entire family. You consider that an "insult"?

I don't think that is how it works. In the ad the Kaltmiete is €1900, which is simply the rent without utilities. It does not mean that a. you are eligible to buy that property b. the buy-to-rent price will be the same. And even if it was, the legal costs alone add up to a few tens of thousands of EUR for a property like this (eg. if the property is worth €500k, you are looking at at least in the order of €50k of leg…

Every lender (Wüstenrot, Interhyp and Sparkasse) were ok with 100% lending as long as I was able to bring in my own 10% for legal/buying procedure. Of course it was during cheap money phase. Now it might be different. I also wouldn’t buy a house from last century anymore with current insane gas and electricity prices. And this makes things complicated since new buildings are very rare.

Re: Ask HN: How is the job search coming along for people who got laid off?

#450
post #439

Earlier quoted context omitted.

I said they pass objects by reference , which is true. Technically, yes, Java is pass by value. However, objects are not passed by value. The value you are passing is a reference (pointer) to that object. If this were not the case, you would not be able to see modifications to method parameters reflected in the caller because you're modifying a copy. You are not modifying a copy.

I think you are deeply confused about this topic and should not be making judgements about other people. Instead of making an honest attempt to understand the difference between pass by value and pass by reference, you are trying to mince words to save face and even your attempt to mince words is incorrect. While I likely can not convince you further that you are in error, especially since you're now trying to double…

I already agreed you were technically correct!
Post reply on HN