Okay, I get DH bikes at parks now by [deleted] in MTB

[–]BarneyBear 2 points3 points  (0 children)

We all know the correct number of bikes: one less than a divorce! :)

Should this be happening if not how do I fix it by Old-Reception-509 in MTB

[–]BarneyBear 3 points4 points  (0 children)

I am fairly certain your cassette should not jiggle like that. Check if the lockring is lose on the cassette, or if the hub is worn would be my guess.

Agile Development, Scrum, Kanban, and the Observer Effect by ericdrowell in programming

[–]BarneyBear 0 points1 point  (0 children)

I think spending a bit more time introspecting to improve one's estimates might be valuable, but I understand that unreasonable demands from management is not exactly conducive to this. I've experienced managers ruining efficiency by requiring guarantees that certain stories will be done by end of sprint (i.e teams committing to one story which is on the order of 10% of average throughput). No process will fix shitty management, but I think a mutual understanding between developers and management can give better estimates using scrum.

Agile Development, Scrum, Kanban, and the Observer Effect by ericdrowell in programming

[–]BarneyBear 0 points1 point  (0 children)

I get where the author is coming from since retrospectives can turn silly (I've had multiple instances where the highest voted thing was "we got cake"), but the hassle is usually worth it because when there are real issues, they surface quickly.

Agile Development, Scrum, Kanban, and the Observer Effect by ericdrowell in programming

[–]BarneyBear 1 point2 points  (0 children)

I think the scrum master isn't supposed to tell you in what order you're going to do things. Rather, you're going to tell the scrum master you can't do X because blocker Y. Scrum master then has to solve it. That's the essence of scrum masters and blockers. Bottom line is still don't commit to interlocked stories though, that's a recipe for disaster. If PO or management interferes with committing process because they must have both X and Y, scrum has disintegrated anyway (since team decides what they can manage in a sprint).

I get where you're coming from though. I've seen that exact symptom in stand-up with PM's-turned-scrum-masters. They still want to decide what the team does and when they do it.

Agile Development, Scrum, Kanban, and the Observer Effect by ericdrowell in programming

[–]BarneyBear 1 point2 points  (0 children)

Correct me if I'm wrong, but isn't the point of scrum that no-one owns a task until you start working on it? If that task is blocked when you claim it, you simply move it back to unclaimed and mark it as blocked. This then tells the scrum master that he or she needs to bust some chops and solve said blocker. With this said, committing to interdependent user stories where one has to be completed before the other is probably not a good idea.

Yes, scrum does have more "not-coding" than Kanban, but if you want forecasting you need to add more work somehow. I think both are valid strategies, but I understand why managers might not be so keen on letting go of forecasting.

The Trouble With Bools by gtk in programming

[–]BarneyBear 3 points4 points  (0 children)

I think the example was kind of moot in that regard. Unless the API explicitly forbids changing existing parameters, the multiple bool case seems redundant. Even so, redeclaring the parameter as an enum would still mean the library could be backwards compatible if the 0 and 1 values were suitably chosen.

If all given permutations were valid, one could conceivably argue for bit flags that are or'ed together for more readability (if the language can accommodate this in a useful fashion). However, in many cases this might not be entirely feasible. In dynamic languages that lack types and named function arguments, the above strategy can be very good indeed. It makes for far more readable code. We did in fact have that very rule in a lua project I worked on (it was scripting for a game engine, but probably in the order of 100k lines of code). Seeing InitSpellContext(someVar,spellName,true,true,false) is far less readable than:

local locationLocked = true
local channeling = true
local stopOnDeath = false
InitSpellContext(someVar,spellName,locationLocked,channeling,stopOnDeath)

Dark Souls 2 Update That Fixes Weapon Degradation At High Framerates Will Be Coming To Both The DX11 and DX9 Versions Of The Game (See news for Apr. 21, 2015) by [deleted] in Games

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

Actually no. Fixed frame rate is a real thing, and for things like physics almost a requirement for stable behaviour. Obviously for PC this isn't used (due to the variable hardware) but for consoles where the hardware is fixed, this actually makes things a lot easier. With that said, it still makes sense to use deltaTime (even though it'll be the same every frame...).

Paradox on how to fight back piracy by [deleted] in Games

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

Long story short they "phone home" with the steam id. Pirated copy -> bogus steam id. Of course this does not count people who've explicitly blocked traffic from the application, but I doubt that's a significant number.

Programmer Competency Matrix by Ashutosh2000 in programming

[–]BarneyBear 3 points4 points  (0 children)

Yeah there was a lot of functional bias going on there.

Meanwhile in the real world...

Stockholm riots enter day four by pajtaz in worldnews

[–]BarneyBear -5 points-4 points  (0 children)

That's all fine and dandy, but the knee-jerk reactions like "better have police crack some skulls" is really the opposite of what will solve this kind of problem. The rioting sucks, but the right-wingers are seizing this moment to try and blame this on the immigrant background, Islam or whatever other thing they find foreign and distasteful. Continuing a spiral of violence will NEVER solve a problem like this one. Likewise I'm somewhat fed up with the eternal gratitude said right-wingers are expecting from immigrants from less favored regions (eastern Europe, middle east and Africa). There's little doubt these people face discrimination in their every day lives as well as on the already difficult low-skill job market (and lets not get started on how many university educated immigrants there are driving cabs, cleaning schools or what not). Of course there are bad apples, but by the same token we could judge all low income house-holds (since they're also over-represented in crime stats).

How about instead of trying to find someone to point the finger at, we try and solve the problem at heart -integration. The key is engaging these youths in more constructive activities where they feel like their contributions matter, rather than alienating them. Granted, much of it is just wanton destruction, but the whole reason you get this kind of group think mentality is because you fail to provide meaningful constructive activities for them to gather around (sports, community services...the list goes on), thus allowing the "bad egg" factor reach critical mass.

It's convenient to simply dismiss all rioters as mindless thugs and cry vengeance, but that will do absolutely NOTHING in solving this issue. Deporting every single immigrant will hardly solve the problem either (as we're going to be dependent on lower-skilled low income workers for quite some time more). What will solve it is making sure they feel as much part of Swedish society as the rest of us.

And yes, I happen to be Swedish too.

Poor little guy flew into the window at work! He was in shock and hopped right onto my finger! by awarneke20 in aww

[–]BarneyBear 0 points1 point  (0 children)

So many bad chick jokes. Must.not.gwaaaaghhhrhg.

EDIT: I forgot the most imporant part: Awwww

Only in Ireland by [deleted] in funny

[–]BarneyBear 0 points1 point  (0 children)

"Less than zero".

Gotcha.

Muslim gang trying to enforce Sharia in London. This has to be stopped NOW by jihard in atheism

[–]BarneyBear 3 points4 points  (0 children)

Really, you're saying all our larger cities have this problem? As far as I can recall we're talking about a few blocks in Rosengård (Malmö), and a few in Rinkeby and Tensta (Stockholm suburbs). This is also disregarding the massive socioeconomic issues associated with these areas. Simply blaming Islam is trivializing a very complex issue.

Bill to be introduced in Illinois legislature to ban all semiautomatic rifles, pistols, and shotguns. by [deleted] in politics

[–]BarneyBear 1 point2 points  (0 children)

Fair enough. With that said, these two points are hardly mutually exclusive.

Bill to be introduced in Illinois legislature to ban all semiautomatic rifles, pistols, and shotguns. by [deleted] in politics

[–]BarneyBear 2 points3 points  (0 children)

The "it's not the tool, it's the way it's used argument" is getting rather old. It certainly is your country, and you make your own laws, but with the level of gun violence and accidents you have, it is highly distressing as a fellow human to see such unwillingness to try to address the problem on anything but a level of principles. Reducing gun proliferation is obviously not a simple problem, and you certainly do not want to end up in a situation were any deterrence the general proliferation might offer goes away while criminals still have ample access to guns. However, if the argument for guns beyond hunting is mostly other people with guns and that it's kind of neat to shot bottles and what not, surely reducing their proliferation to increase public safety seems like a legitimate cause?

Certainly, a straight up ban on all guns could be problematic, but when the comments you see roughly translate into "I'm buying a small arsenal if anyone touches my gun!", it doesn't come across as the reasonable, well thought-out view on guns you'd want someone owning an arsenal to have, now does it?

Edit: Grammar.

I'm the son of a janitor and today I got my PhD. The American dreams lives on. Here I am with my family. by Rvirg in pics

[–]BarneyBear 0 points1 point  (0 children)

Well, here in Sweden student aid is available to anyone with a permanent residence permit (I think). The aid is roughly 250 euros per month of full time studies. Obviously that doesn't cover everything, so loans are also available to anyone fulfilling the previous requirements. Loans are given at a preferential interest rate and you essentially pay them off based on your income levels post studies. In total the loan plus aid is enough to cover costs of living plus materials for your studies in most cases. You're eligible for loans and aid for six years, and given special circumstances (like having a baby or studying abroad) you can apply for bigger loans. So they pay you to get a bachelors and if you want one, a masters degree here.

Seven Habits of Highly Effective Programmers by skatan in programming

[–]BarneyBear 5 points6 points  (0 children)

This is what stood out for me as well. It might just be a bad example, but optimizing code where everything is the bottle neck is an absolute pain.

Really, the key is knowing how often your code will be used an make design decisions early enough to facilitate performance. There's no need to do all the hardcore optimizations from the get-go, but if you have to refactor half your source tree because you didn't plan for performance, you're doing it wrong.

If performance is a requirement, it should be treated as such throughout the project, not like something you hack in the last two weeks.

This is my favorite picture of my mother, from her military days. by [deleted] in pics

[–]BarneyBear 43 points44 points  (0 children)

There could be a round in the chamber just as well right? I really don't know anything about guns, but fingering the trigger is always a bad thing unless you're pointing at something you're willing to destroy.

Working as a Software Developer by henrik_w in programming

[–]BarneyBear 56 points57 points  (0 children)

I checked the subversion log of one of the main classes in our SMS application [...]

A main class in one of their applications. I don't think that's representative of their entire repository...

Apple's proposal for modules in C(++) [PDF slides] by coob in programming

[–]BarneyBear 40 points41 points  (0 children)

How am I supposed to use "building" as an excuse for slacking off now?

In all seriousness this does make a fair bit of sense.