3,517 karma · joined Jul 23, 2021 (5y ago) · 2,823 submissions
comment 4y ago · link · parent
I've never found it very compelling. As I said there are also downsides, inflexible implementation that is implementation specific (so it can be difficult to manipulate with low level assembly).
> C allows adding another function pointer to that structure, but not set that pointer. C++ compiler forces programmers to implement all interface methods. Forget to override a method, the code which instantiates the class won’t compile complaining about not being able to instantiate an abstract class.
Never found that particularly helpful if the code is structured well. You'd either allow for NULL implementations to be default or error not implemented at least until all subsystems are converted, or the initialization functions that all object allocations should call (because the code is well written) can verify all required fields are set. If you want to be even cleverer, you can probably do static initialization checks at least where your fields are constant and have those compile down to nothing just checked at compile time.
> Code navigation is another thing. In visual studio, while the cursor is over an abstract method, F12 key looks up all implementations of the abstract class, and populates the “find symbol results” panel with a clickable list of the implementations of the method. With visual assist addon installed, Alt+G key does the same only presents the results in a popup menu instead of a separate panel.
I can see how that might help a little, although surely with some minimal scripting a symbol browsing tool should be able to be taught about similar patterns like find all functions that are assigned to this particular member of a structure of function pointers. Although I don't use IDEs or any symbol tagging tools just grep usually, so maybe I'm a luddite.
With a nice code base that follows reasonable conventions and naming, it's pretty easy to find e.g., if you have a structure-of-function-pointers style of thing then you can find all definitions of "struct address_space_operations" or if a function pointer member is called page_mkwrite, then you search for *_page_mkwrite and get ext4_page_mkwrite, xfs_page_mkwrite, btrfs_page_mkwrite, etc. (which are not always strictly enforced in Linux but at least if you are searching for \.page_mkwrite you can usually easily see non-confirming names).
> Both things are borderline useless for small projects, but IMO they help a lot for medium to large ones, especially developed by multiple people.
I don't see that it helps a lot, and even as syntactic sugar I don't see it being a big advancement in the scheme of things.
comment 4y ago · link · parent
Here https://news.ycombinator.com/item?id=29731719 it seems like you are essentially saying "engine failure is not too dangerous; one of the leading causes of death is running out of fuel".
I did not say running out of fuel should be formally classified as an engine failure. It was more that I supposed that the effect on the airworthiness of their airplane should be approximately the same whether the engine stops due to failure or running out of fuel. So that makes your comment appear contradictory. Hence my prompting for an explanation, I'm quite willing to believe I misunderstood something of your post or about aviation so I didn't intend for it to sound glib.
comment 4y ago · link · parent
OOP languages which do this automatically for you is AFAIKS just a thin and often clunky layer of syntactic sugar on top of it.
comment 4y ago · link · parent
The largest code base I love and feel productive in is Linux kernel which is mostly C and assembly, medium sized project of 30 million lines, probably less than ten thousand active developers (although difficult to judge with the way development on certain features or functions can occur for years on private repositories before being merged), I would say relatively high rate of change for a project of the size.
comment 4y ago · link · parent
Depending on what you mean by "equivalent", yes it could make some claims of discrimination based on race/sex/etc slightly harder to defend against. It does not "open" a company to lawsuits as opposed to being closed to suits by paying equivalent wages. It is one of many many things that could be a factor in such cases. And a lot of companies decide it is worthwhile to do despite that.
> You can and should ask your peers what they make. This is totally legal and encouraged.
It's not encouraged by many companies, and some try to discourage it including by trying to get employees to agree not to, whether or not it's legal.
comment 4y ago · link · parent
What is much harder to accept, and builds resentment and apathy, is something that feels arbitrary or unjust.
comment 4y ago · link · parent
The real problem for companies is when the explanation comes down to "Sandy negotiated harder than you", "Sandy got a higher offer from a competitor so we had to match it to keep her", "we're paying you significantly under the market rate and are hoping you don't notice or aren't too bothered by it", etc.
comment 4y ago · link · parent
But I think you have got it right with the rest of your comments. There has to be a meeting of the minds in these dealings, and I don't believe these companies are acting in good faith when they explicitly or implicitly suggest that you are "buying a game" or "buying a song" even if you can find out what that really means in fine print somewhere.
Hopefully we get more legislation and precedent that forces them to be more explicit about what these purchases mean exactly.
comment 4y ago · link · parent
Assuming a higher level language would not allow that without introducing any other security problems, and assuming the CVEs roughly represent the secureness of the software, then using a higher level language would be a pretty small marginal improvement in security.
comment 4y ago · link · parent
Glad I could clear that up for you. Really the word is very common, my 60 year old friend used it the other day at her birthday. I've even seen the old dinosaur mainstream media corporations use it. It really isn't some outlandish word that's impossible to grasp.
comment 4y ago · link · parent
That's because they (claim to) not know what it means and are unwilling or incapable of finding out.
And your hypotheses are laughable. My hypotheses is that they are based on nothing but an infantile emotional reaction to somebody using the word woke, which is now well entrenched in common vernacular whether you like it or not.
EDIT: You can see the deleted comment if you change your settings.
comment 4y ago · link · parent
But also a lot of companies take it quite seriously now so it can be good for your resume particularly if you are not in the industry yet and want more experience or some references of your prior work. So it can be worthwhile even if you aren't completely passionate about it to the extend you would be content to always do it as an unpaid hobby.
It's not good to assume you will make money directly on your own project or some niche project, but there are lots of established projects which are in demand in the industry and you would be able to make money working on them. I work on the Linux kernel which I started as a hobby and I've been able to take my skills between several different companies and continue working on the same software (although different areas) which has been good for me.
Not to say you can't get transferable skills or relevant experience working on proprietary software and some may prefer the challenge or variety of working on different code bases at different jobs. So proprietary software is pretty on-par in those respects. There are a lot of areas where proprietary software is ahead too so if you want to work cutting edge software in a particular area, open source might not be the best option for you.
As far as getting started, start with working out what you are interested in and want to work on.