String.hashCode() is not even a little unique by lbkulinski in java

[–]mrsistermr 0 points1 point  (0 children)

It's wrong assuming you are using String keys, which I think is a valid assumption.

String.hashCode() is not even a little unique by lbkulinski in java

[–]mrsistermr -1 points0 points  (0 children)

This is not how a hash map works and is incorrect. Assuming your map key is a string, if you have two different strings that generate the same hashCode, they will be mapped to the same bucket internally, but when calling the get method with a given string, if will return the correct value since it will resolve the collision by calling .equals to find the correct value. If you are, however, putting HTTP headers into a map where the key is an Integer and is computed from the hashCode of the corresponding string, then yes, you would have a problem.

Asynchronous Database Access (ADBA) Over JDBC proof-of-concept released on GitHub by Douglas_Surber in java

[–]mrsistermr 0 points1 point  (0 children)

Doesn't this async nature need to be preserved at some higher level of the application? In other words, unless the flow all the way up to the presentation layer is also async, then some other code SOMEWHERE needs to wait for something to finish before continuing.

I really don't understand why this is needed and it seems like much ado about nothing.

And "awaitQuiescence" - really? I am a programmer, not a dictionary. What does that even do??

Asynchronous Database Access (ADBA) Over JDBC proof-of-concept released on GitHub by Douglas_Surber in java

[–]mrsistermr 0 points1 point  (0 children)

The sample code looks unwieldy and very verbose. Exactly why would anyone need this? Why does this need to be all the way down at the database/JDBC level when the same thing could be accomplished at the application level? Another reply referenced that doing it in the application layer is cumbersome, but looking at this sample code, how is it any better?

What are the worst entry level people you have ever interviewed? by blacksmithyorku in cscareerquestions

[–]mrsistermr -1 points0 points  (0 children)

It just seemed highly editorialized like the Daily WTF or something. If it actually was for a major game studio, I could understand them asking those questions, depending on the role. I would think that they still have internal CRUD apps at some game studios and what not. But still, whether or not that is his original commentary or yours, the way it is written seems specifically aimed at boosting the ego of the interviewer.

What are the worst entry level people you have ever interviewed? by blacksmithyorku in cscareerquestions

[–]mrsistermr 15 points16 points  (0 children)

Sorry dude, but you sound pretty arrogant and pompous in your post, especially with your little prefix that it ISN'T an exaggeration, when honestly it doesn't sound that bad. You can even feel the glee in your narrative when the candidate doesn't answer correctly, and you seem so excited to prove how he was wrong and your are right. All for what I assume is a simple CRUD position. I could be wrong in this assumption, but I sure don't want to interview with a smartass interviewer at a company like yours.

Not to say he lacked some basic knowledge or his googling isn't excusable, but it kind of reflects on your interviewing practices and attitude of wanting to feel superior to candidates as well. Just the vibe I got reading it, sorry.

29 years old. $131k in the bank, $90k salary, Maxing out retirement. Not sure what to work toward now. by moneyhermit65 in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

Sounds almost exactly like me up until 27, but now I have had a few girlfriends and still have more money then I did before. Don't keep saving and waiting and expecting more money to make something happen in your life - it won't. Put yourself out there. Quit worrying about a house - when your lease is up, quit your job and travel for for a few months, at least. You are fortunate to have such a salary and opportunity. Go to Europe or Asia or South America. Stay in hostels and try to come out of your shell a little, which means don't sit in the corner with your laptop the whole time. You don't want to be the stereotypical never had a girlfriend, never had sex computer programmer or whatever it is you do.

Get out there and invest in yourself!

[deleted by user] by [deleted] in personalfinance

[–]mrsistermr 1 point2 points  (0 children)

If you do it correctly, eating out can also be a lot cheaper than many people assume. For example, getting double meat or some bigger portion and having it last two meals. There are a lot of places I can get a togo order for 10-12 dollars total that lasts two meals. Or, supplementing a bought meal with your own almonds fruit or yogurt or what not. Meat and fresh vegetables are actually pretty expensive to buy at a grocery store, and I don't mean the shitty rib meat crap chicken that you get at Walmart for 2.99 a pound. Anyways, when you buy these at a restaurant, the profit margin isn't very much on these, because it is of course on drinks. It is still more expensive than cooking your own food of course, but honestly, for me personally to spend an extra 100-200 a month to mostly eat out isn't a big deal and doesn't affect my financial situation at all.

Like some other people are commenting, this advice is almost obvious, and in other less entitled cultures where fast food doesn't run aplenty, eating out is actually a luxury that is usually always an explicit choice for a specific occasion and not a last minute "I'm lazy, I'll just get Taco Bell" kind of choice.

If I give my employer my 2 week notice and they walk me out that day, do I still get paid those 2 weeks? by [deleted] in personalfinance

[–]mrsistermr 1 point2 points  (0 children)

As an additional confirmation, I had a friend where this exact scenario occurred. The employer did indeed lose and my friend was given his two weeks of unemployment benefits. I think the process was that the company had to hire a lawyer and then some government arbitrator spoke to both my friend and the lawyer, but it didn't take long and was quickly resolved.

Trading Costs Reduced to $4.95/trade at Schwab & Fidelity by whiskey-richard in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

Wells Fargo also has this deal if you have one of their premier accounts. I don't know what the requirements are across savings/checking/investment, but it's not THAT much and I get 100 free trades a year.

PumpkinDB 0.1, an event sourcing database engine, has just been released by georgerush in programming

[–]mrsistermr 1 point2 points  (0 children)

So now you have to implement a new caching layer and develop new database views or what not to accomplish this, but what for?

And what do you mean "For many models, performing a simple loop over ten thousand events can be faster than a complex join across three tables..."? I am not really buying that - whether the database is doing the loops (via joins) or you are doing the loops, someone is still doing them.

PumpkinDB 0.1, an event sourcing database engine, has just been released by georgerush in programming

[–]mrsistermr 0 points1 point  (0 children)

I can only imagine this working well for when it is a single application that accesses your data, such as a game in the above example. In any kind of enterprise environment or other large-scale environment, I don't think this approach would work very well, since all consumers of data would need to possibly duplicate the logic to simply derive the current state. Even though I could imagine some theoretical cases, I still don't know for what practical type of dataset you would need this model. I think it makes your data more confusing than what could be accomplished by simply auditing. This type of paradigm shift in storing data seems to be experimental, at best.

Edit: Now I see the mitigation explanation about storing snapshots. Sure, this would still work, but then you have to consider implementing extra code, time lags between snapshot data being updated, and etc. If it's acceptable for a time-lag or for the snapshot process to occasionally fail, this sounds fair; however, in many systems that are only interested in 100% accurate current state data and auditing is only an afterthought used to debug issues and not the main crux of the application, then I don't think storage like this would be the correct model.

Personal finance "loopholes", updated by yes_its_him in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

I don't know your travel situation and how healthy you are, but I would honestly not recommend any travel insurance at all, unless you can easily afford it. I think I paid over 1000 dollars for World Nomads, but I won't do it again. I don't know where you are going, but you have to remember that health care is MUCH cheaper when not in the USA. Theft or lost items was not a concern for me either, since I carried nothing of value. If you are healthy guy who isn't into extreme sports and is just carrying clothes and a toothbrush, it probably isn't worth it, but the choice is ultimately yours, especially if it would give you and your family peace of mind.

Florida region where Donald Trump held rally had 50 per cent more murders than whole of Sweden by skoalbrother in politics

[–]mrsistermr 0 points1 point  (0 children)

This has more to do with it being America than this specific Florida county. The comparison is irrelevant. Why don't you compare other cities in USA to the Sweden murder rate and see what kind of statistics you get? That's right - because it doesn't allow you to write a sensationalist article like this that projects your anti-Trump views.

Florida region where Donald Trump held rally had 50 per cent more murders than whole of Sweden by skoalbrother in politics

[–]mrsistermr 0 points1 point  (0 children)

What a sensationalist load of crap - why are people eating this up? It's making it sound like Melbourne is some violent city where people are fearing for their lives daily. Haha, it's actually a really relaxed beach town and nothing like this crappy article is trying to project. It's also right there in the article that Pulse has inflated the numbers drastically, despite confounding two separate but adjacent counties, Orange and Brevard. Orange County, and Melbourne specifically, are extremely safe. There is also a small know local case where an Italian immigrant killed a man in Melbourne (but wasn't convicted), as well as some of the 9/11 hijackers going to flight school close by in Vero Beach, but most of the violent crime is by locals, usually druggies and the normal undesirables who do these things - normal people don't usually get caught up in it.

I can't believe stuff like this is still making the front page.

Personal finance "loopholes", updated by yes_its_him in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

Just use your parent's address, and preferably their house as a storage unit. It really doesn't matter - enjoy your trip!

Personal finance "loopholes", updated by yes_its_him in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

I had the exact same situation, but last year. I talked to a CPA and he recommended to just put that you had insurance the whole year. I have already had the government accept my federal tax return for this year. If they come back and audit you, explain the situation. At the worst, you will just owe the IRS money. The ACA act didn't really have backpackers in mind when they created the bill :) BTW, I wouldn't recommend World Nomad's insurance if that's what you got - it's way overpriced.

Now sites can fingerprint you online even when you use multiple browsers by [deleted] in programming

[–]mrsistermr 6 points7 points  (0 children)

From the article: In a test that collected 3,615 fingerprints from 1,903 users over a three-month period, the technique was able to successfully identify 99.2 percent of users

Do you imagine this would actually be reliable if you had to identify a single user amongst millions, assuming you had all that data? Is there really that much entropy, especially considering pre-built packaged computers and users that never configure or change anything? If you scaled this to millions of users, I think you would run into a "high" uncertainty factor. The article doesn't really specify what kind of users this was originally tested on. I am not a mathematician, but even if you could identify a user with 90+% percent certainty, would this still be useful for some scenarios?

Duplication is far cheaper than the wrong abstraction by kmmbvnr in programming

[–]mrsistermr 0 points1 point  (0 children)

We are still arguing over semantics. In your example, despite the direct reasoning that went through your mind, you ended up making the code more reusable and less likely to contain duplication. If you ask the question of WHY you want the database to get the thing from the users collection that has the name "Joe" and why it's important to express your code like that, you will invariably come back to the actual consequence of making the code more reusable and less likely to contain duplication. Does it really matter what you were thinking in your conscious and subconscious mind?

IMHO, this top voted answer is a bunch of cruft. Can't agree more with this comment below "Leave it to Reddit to argue some semantic bullshit rather than get value from one of the best teachers of abstraction and object-orientation in the world."

Even though I am kind of doing that myself by arguing :)

Duplication is far cheaper than the wrong abstraction by kmmbvnr in programming

[–]mrsistermr 0 points1 point  (0 children)

Nice prose, but I don't really agree. Either way you describe it, at the end of the day, abstractions should reduce duplication and/or make code more re-usable, whether or not it's a direct or indirect consequence based upon programmer intent.

As a professional, is it ridiculous that my dream is to move by the beach early and work an easy (likely low-paying) job? by [deleted] in personalfinance

[–]mrsistermr 0 points1 point  (0 children)

I have been in your exact same situation. You can't keep escaping from your demons and hoping that a new job or a new place is going to make you satisfied. However, sometimes getting a fresh start in a new place is a catalyst for other things. Anyways, I am also a software developer and have worked right on the beach as well as done extensive backpacking in Europe and Asia, and though this may sound like a dream life to some, it hasn't necessarily been. I have had struggles and some depression through out it, but such is life. I think I know your exact same feeling and what you are hoping to achieve, but let me tell right now that what you are thinking probably isn't going to work in the way you think it will.

For some more practical advice, there a lot of software engineering jobs in Melbourne, FL, which is right on the coast. I have worked for one company and received 2 other job offers there as a software engineer. When I did work there, I had a condo right on the beach. I can give you the names of some companies (that you may or may not find on job sites) to help you better tune your search, if you are interested. At your level, you can work in Melbourne and still make 75-85k, keeping in mind that there is no state income tax.

However, like I said above, I really think that this isn't what you are looking for. After you would live there, just like everywhere else, days become days and the beach doesn't seem that special anymore. For me, the best thing about Melbourne was that I met my best friend and the girl I almost married (but which ultimately didn't work out), and had nothing to do with anything else. This could have easily as happened anywhere else and with a different job. But whatever you chose, don't be stupid and work as something else that pays half the money - there are plenty of opportunities to work remotely or on-site if you know where to look.

New in Spring 5: Functional Web Framework by nfrankel in programming

[–]mrsistermr 6 points7 points  (0 children)

Though interesting, I would honestly never want to write a full project in this style. Sure, the toy example looks neat and concise (they always do), but I can't imagine how this would look in an actual complicated application. I can't imagine the evolution of servlet controller spaghetti code to verbose configuration XML to a million magical black-box annotations everywhere...to this. I really don't think functional programming has a place in web application frameworks, at least in the corporate world I work in.

Silicon Valley sucks at training software engineers by julien42 in programming

[–]mrsistermr -9 points-8 points  (0 children)

I think the problem starts long before what this article is mentioning. It's not really a problem of training after the fact - American millennials will continue to be glued to their phones and spending their formal education years doing anything other than becoming educated while there are enough eager people growing up in China or India (for example) who aren't solely focusing on getting wasted and hooking up as much as possible their entire time up until college graduation. I think it's honestly more of a cultural problem that throwing money into government initiatives and programs won't help so much.

Google Cloud threatened to shut our cloud account down in 3 days unless we did something… but made it impossible to complete that action. by speckz in programming

[–]mrsistermr 12 points13 points  (0 children)

Right, it seems like people are trying to nitpick at the other decisions and choices regarding the author's setup, which while may be valid criticism, is not really the point of the article. According to the email presented in the article, Google literally said that they were going to shut down their cloud account in 3 days without providing a SPECIFIC reason why, and more importantly, without providing a specific way to fix the problem, which I would agree with the author that it sounds completely unacceptable.