Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

> When the author discusses other topics not included in that definition, like inheritance and polymorphism, does that tend to increase or decrease your confidence in your guess?

Increases. After all, it is ultimately about how people do not understand OOP. The proof is in the pudding, as they say.

> To sum up, your argument essentially is, "you critics of OOP are not using the definition that I use." OK. Well, who asked you?

Says who? You? Did you get a confirmation from the author that this was their intention?

comment 2y ago · link · parent

First thing you read. That's where definitions go. Obviously you are not going to go on at length about something and then "Oh yeah, and by the way, this is what I meant by X. Gotcha!" Of course it is going to be the first thing you read.

comment 2y ago · link · parent

Agreed. Which is why we are sticking to the definition as has been already defined. Anything else, while perhaps interesting for a completely different discussion, would be clearly off-topic for this one.

comment 2y ago · link · parent

> And I say that the object-relational mismatch does have more to do with OOP than it does with functional programming.

Understood. You have asserted that many times now. But what you are trying to say has not been made clear.

Let's break this down. As defined by context, OOP means: messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. Indeed, there exist other OOP definitions, but that is the one that was defined here.

I think we can rule out "local retention and protection and hiding of state-process" from the discussion. Hiding means that even if there is some kind of relational database access happening behind the curtain, we cannot know about it. If we don't know about it, we cannot talk about it.

That leaves messaging and extreme late-binding. It is not clear to me what it is about messaging and/or extreme late-binding that is at odds with relational databases. This is where I seek clarification.

While you pointed to the work of Neward and Atwood, all I could find from them was discussion about the pitfalls of trying to model relational databases as a particular object model. They say nothing about messaging or extreme late-binding. Unfortunately, they were of no help here.

comment 2y ago · link · parent

Questionable. Qt signal/slot extensions were undeniably created to add OOP concepts to C++ for the sake of GUIs. You might, if you stretch hard enough, be able to make a case that Objective-C emerged for the sake of GUIs. But what else beyond that?

Smalltalk most definitely influenced how we thought about GUIs, but never really solidified itself as the place to develop GUIs. Class-based, non-OOP, languages seemed to be where most GUI development happened. And in large part were suited to the task. There was little need to introduce OOP.

There was COM and the like, which perhaps can reasonably be considered object-oriented, but only at a higher level of abstraction. The programming was not object-oriented. OO, but not OOP.

comment 2y ago · link · parent

Happy to, but it is not clear what I should study. You have not yet indicated what it is about OOP that you are talking about.

You keep pointing to the object-relational mismatch, which, while a thing, has no more to do with OOP than it does functional programming. It pertains to object-based programming. That is something else entirely.

Understandably, those who don't understand OOP often confuse OOP with object-based programming. Is that the problem here? Just that you don't understand OOP?

Fair that fluidity of language means that anyone can define OOP as they wish, and if they want to define OOP to be equivalent to OBP, good for them. They wouldn't be the first. And if we were discussing this topic in a vacuum we could set out a proclamation that defines OOP to be equal to OBP. However, OOP was already and explicitly defined by the article that setup the context for the following discussion, and the definition used is Kay's – the one that has nothing to do with objects. Other definitions for OOP would be clearly off-topic.

Perhaps it is that you are purposefully trying to go off-topic? Indeed, this thread started because someone (not me!) questioned exactly that.

If it is simply that you don't know how to clarify what you mean, why not just say so?

comment 2y ago · link · parent

> It's not me who finds that OOP is a mismatch with relational systems. It's me and many other people.

Great, but what is the mismatch you speak of?

> Ted Neward talked about this 20 years ago. Jeff Atwood talked about it 18 years ago.

Are you referring to the "The Vietnam of Computer Science"? It is about active record and object/relational mapping.

OOP, despite the poorly chosen name (which Kay regrets), isn't about objects at all. As is defined, OOP is about "messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things." But perhaps there is some other work by these people that I'm not familiar with that speaks to OOP?

> It seems like a lot of people dislike Object Oriented Programming

Sure. I expect all people dislike object-oriented programming in practice, which is why you never truly see it. Sending a message and maybe getting a response (i.e. extreme late-binding) is cool on a theoretical level, but not exactly practical when it comes to real applications that want to have certain guarantees. The rising love for statically typed languages highlights that people want such guarantees.

Ironically, OOP probably only shines for things like client->relational database systems that cannot guarantee the state of the database at compile time. At least the paradigm gets you thinking about what to do when an actor doesn't respond to your message.

comment 2y ago · link · parent

> the solution is unions.

A union is only a solution where workers are trying to screw over each other to get a leg up. The classical example is where a worker accepts lesser pay to ensure that they get the job over the guy beside him who wants more money. A union sets up a 'brotherhood' where the workers mutually agree to not undercut each other like that, allowing them to maximize their benefit.

Unions are not effective where the company is driving the bus. Going back to the classical example, a company that has decided that the work is worth $x and not a penny more, no union is not going to eke out more than $x. If a company is hell bent on the office being strictly necessary, there is nothing a union can do to change that.

Only if a worker is trying to screw over another worker by dutifully showing up to the office, where the company would otherwise be lenient towards WFH if that were their only choice, might a union be effective. Granted, perhaps you misspoke and this is what you really meant?

But that questions how effective the 'brotherhood' is when people are isolated from each other. It is one thing to honour your promise to other workers when you have to see them every day and face their scorn if you break the promise and continue to be an asshole. It is quite another when you have no connection to the other 'brothers' whatsoever – where you have probably never met, and may not even know that they exist. Unions are usually quite protective to ensure that doesn't happen. There is good reason why a software developer isn't normally welcome into a teachers union, for example.

What successful WFH-focused unions that have stood the test of time can we look at?

The various farmer unions fit the bill, perhaps, but I'm not sure they have proven to be all that effective. Farmers are quite good at screwing each other over and there isn't much reprisal when they do. The farmer unions that are enshrined by government rule fare better, but no doubt only because of a third-party (the government) holding the 'brotherhood' together. That is not quite the same as a 'brotherhood' by first-party accord.

comment 2y ago · link · parent

> MBA run companies are full of waste and inefficiency.

They are, and they don't have longevity because of it. A company listed on the S&P 500 in the 1950s had an average lifespan of 61 years. By 2016, that had fallen to just 18 years. You can hide inefficiencies for a while, but the piper needs to be paid eventually. Productivity matters.

The companies may not literally switch to a particular mode of work, but the market will eventually cull any company that is falling behind in productivity. The net result is the same.

comment 2y ago · link · parent

> often OOP is applied where it isn't suited, particularly in the application layer between a client and a relational database

What it is about the OOP paradigm that you find does not fit this client->relational database application? The idea behind OOP is that you send a message out into the world, and maybe another actor can make something of it. You don't really know or care about the other actors are out there. If an actor hides a relational database behind closed doors, so be it. Not your problem. That's outside of the concern of OOP.

On the flip side, we have active record, which imagines a way to try and marry relational databases to an object-based (not oriented) model. Here you will regularly find criticism about "impedance mismatch" and where things like constraints should be handled. This still reads like what you are talking about, but has little to do with OOP.

Conceivably you could use that pattern to implement the local retention of an actor. Is that where you find applicability to OOP? OOP doesn't speak to the underlying actor implementation, though. It purposefully doesn't speak to the implementation as not having knowledge of actors is kind of OOP's whole deal. If you need to know things about other actors, you can't just throw a message out there.

Because of the similar names, those who don't understand OOP oftentimes confuse it with object-based programming. Perhaps this is what you are trying to speak to, using a 'database layer' as an example of object-based programming as seen in the wild?

Admittedly, I still don't fully understand the link you are making between relational databases and OOP.

comment 2y ago · link · parent

> I invite you to try to persuade me.

Why? I enjoy and benefit from the fact that you think a software library and a theoretical concept are the same thing. Never change.

> I'm talking about OOP and not active record.

Yes. We established that in my very first comment. However, I stated that it reads like you were talking about active record, and that is why it was asked if you could clarify how it pertains to OOP, given that we know you are actually talking about OOP.

If you don't know how to clarify your message, why not just say so?

comment 2y ago · link · parent

> I said that ActiveRecord was popularized by Ruby on Rails in 2004.

Thanks for the random history lesson and all, but why are you bringing up ActiveRecord in the first place? The topic is OOP, not a library that is bundled with a web framework created many years ago.

Did you not even read your own comment? For a brief moment you seemed to recognize that the subject is about OOP.

comment 2y ago · link · parent

> I think the heart of OOP is the opacity, the fact that we (for some definition of we) aren't allowed to poke around in the state directly

At the heart of OOP is being able to throw a message out into the world and maybe find another actor willing to respond to it. It is not so much that you are not allowed to poke around in the state of other actors, but that you fundamentally cannot know what other state exists without breaking the paradigm.

> So I think I'd start there, not by adding procedures.

Agreed. A thin veneer over internal state does not fix a break in the paradigm.

> if you give me a Doodad, I can't do anything with that unless you provide procedures.

You aren't even given Doodad, per se. Under OOP, you just send the message out there. If Doodad chooses to respond, then so be it. If Doohickey responds instead, such is life. Who responds is not your concern.

comment 2y ago · link · parent

Active record, with a space, not ActiveRecord. Not sure how you managed to jump all the way to Ruby on Rails.

Regardless, the ask was "Perhaps you could clarify what you were trying to say with respect to OOP?", not "Have you used (active record|ActiveRecord)?" Even if you somehow managed to not see the space, and didn't notice the capitalization, the response still doesn't logically follow.

Did you not read the comment?

comment 2y ago · link · parent

I, for one, tried to read the comment. I got the impression it was trying to talk about the drawbacks of active record, echoing many of the common criticisms of active record, but which has little to do with OOP. Perhaps you could clarify what you were trying to say with respect to OOP?

comment 2y ago · link · parent

> It is interesting that OOP had its heydey when everyone was building native GUI programs.

Erlang is probably the only OOP language in existence. I'm not sure it was ever the tool of choice for GUIs.

comment 2y ago · link · parent

> an interview that clearly is meant to be "closed book,"

I am not sure that is clear. It seems the expectation was not "closed book", but "never opened a book before, not even in the past":

"It's tough to determine if the candidate breezed through the question because they're actually good or if they've heard this question before."

Clearly the interviewers were looking not for knowledge, but for uncanny ability. How well was that communicated to the interviewees?

It is not cheating if the rules of the game are not defined.

comment 2y ago · link · parent

Keep in mind that work from home doesn't literally mean work from home. One can 'work from home' in an office, on the train, or even in a field out in the middle of nowhere. It means work from wherever, whenever. It represents autonomy. It is the autonomy that is enviable. A manual labourer needing to be at a remote location in order to do the job, but able to come and go as he pleases, would be met with similar statements of "Good for you", "You are lucky".

If you, instead, told that you were locked in your bedroom from 9-5 and if you so much as stop moving your mouse you will be instantly fired, "I'm sorry" would assuredly follow. It is not the "from home" part that you are being congratulated on.

comment 2y ago · link · parent

My diverse set of interests and age means I already have many thousands of hours laid. So, really, it's just a matter of focusing on the last little bit. How long does that take?

comment 2y ago · link · parent

What we do know is that one needs to seize the opportunity when it presents itself. You can't wait. If he/you do not see the opportunity to work in this profession today then it is almost certain that he is not going to find the opportunity to work in it 5-10 years from now. Whether the market strengthens or weakens, your son is still going to be the same person – a person this particular opportunity seemingly is not matched with, else he'd be doing it already.

If college is the opportunity he has in front of him and wants to explore, great, but then one has to forget about the job market. There isn't enough time in the day to focus on both. When he has had enough of that and is ready to move on to new things in life, then he can figure out what opportunities exist at that time. Trying to predict that in advance is futile.

Not only futile, but apt to turn into something counterproductive. If you have your mind set on finding a particular opportunity in the future, you are bound to miss the opportunities that actually show up.

comment 2y ago · link · parent

There has never been a good time for college if observed from a job market perspective. But that's not the reason why one goes to college.

Deep down, is your actual concern that your son is seeking to prioritize a hobby over jumping into becoming a productive member of society?

comment 2y ago · link · parent

True. We've probably forgotten with the employment market having been strong for a long time, leaving employers desperate to accept anyone they can get, but back in the day degree holders were often rejected because of their degree too. "Overqualified", as employers liked to put it. In other words, "Your flashy 'car' doesn't impress me."

But either way, the takeaway is clear: If you are the worker, you don't want to get caught playing that game. You will lose in the end.

comment 2y ago · link · parent

> Sports cars are notorious money sinks.

To be fair, a Ferrari will normally retain its value, assuming you don't damage it. A degree on the other hand, even with the utmost extreme care, becomes worthless the day you drive it off the lot. Guaranteed. In fact, it is likely less than worthless as you will no doubt have to pay someone to dispose of the piece of paper for you.

So, yes, you make a good point. The employer is, all else equal, most definitely not selecting the degree holder if hiring is done based on financial resolve. Imagine dumping all those resources into a degree that has no resale value – literally worthless – only to apply to a job that identical people without degrees are also applying to. Not a display of financial literacy, that is for sure.

comment 2y ago · link · parent

The people are identical. You already know they have equal capability.

You, the employer, are just performing a coin flip to choose, albeit using a medium that is not an actual coin. Using up precious resources to weight the coin in your favour as the worker might find short-term gain, but you will lose in the end. The data around this is abundantly clear.

Those who actually succeed long-term find a way to leverage their resources to ensure that they are not identical to the other guy – but to become one who is better. Distracting yourself by the coin flip is a recipe for failure, as we see time and time again.

comment 2y ago · link · parent

Yes, you are right that tech jobs encompass even more than IT, but that means the total number of tech jobs was even larger than 3.45 million. Yet the original claim was that there were only ~750,000 tech jobs in total across the USA. That remains hard to believe.

I, like the commenter that set the context, can find it easier to believe that 300,000 jobs were lost at tech companies, representing 40% of jobs at tech companies. No doubt, the vast majority of tech work happens outside of tech companies – probably doubly so back then when it was the norm to do everything in-house rather than outsource a lot of the work to tech companies like we see today. But the comment I replied to discounts that notion, so here we are...

comment 2y ago · link · parent

If you have two identical candidates except one took the bus to the interview and the other showed up in a Ferrari, which one are you choosing?

That's right, the one with the Ferrari. But that is a game you, the worker, don't want to start playing. You will lose in the end.

comment 2y ago · link · parent

> 9 times out of 10, your advice would fare better

Not according to the data. There is absolutely no period where general college attainment has shown to improve mobility when as compared to equivalent people without college attainment.

What the data does show is a tendency for those with the capability to successfully complete college to have greater mobility when as compared to dissimilar people (i.e. those hindered by disabilities), but it is faulty to attribute that to college. Clearly it is the life challenges that hold people back. It is not the lack of a degree that keeps the down syndrome kid from being considered 'management material'.

There is a stronger case to be made for high school attainment, but even that is no doubt confounded by the rise of industrialization showing up at the same time, providing new mobility opportunities. The meaningful gains in high school attainment we have seen over the last 20 years have not translated to improved mobility for that subset of the population.

comment 2y ago · link · parent

I find it hard to believe. That means that there were only 750,000 jobs to begin with. Yet, according to BLS, there were 3.45 million IT jobs in 2001. It is not clear if that figure is before or after the layoffs in question, but either way the 40% doesn't work.

comment 2y ago · link · parent

But as a general practice...
1
697071
256