News for hackers. Stuff that matters.
Re:I found a bug in the .NET framework and fixed it by hand-... by antics on Friday August 01, 2014 @02:18PM (#8121936)
---Author here---

I should disclose that I actually work for Microsoft, and still chose the hard way. Fuck the police!

Re:I found a bug in the .NET framework and fixed it by hand-... by kokey on Friday August 01, 2014 @02:29PM (#8122013)
For sure, those who complain about Microsoft not being open source are obviously trying to cover the fact that they are bad at reading assembly language.
Re:I found a bug in the .NET framework and fixed it by hand-... by notyourwork on Friday August 01, 2014 @03:05PM (#8122206)
Obviously?
Re:I found a bug in the .NET framework and fixed it by hand-... by mpyne on Friday August 01, 2014 @04:08PM (#8122510)
That's the key word that should let you know an attempt at humor was imminent.
Re:I found a bug in the .NET framework and fixed it by hand-... by to3m on Friday August 01, 2014 @03:53PM (#8122433)
Obviously.

That, and they're too poor to buy IDA Pro.

Re:I found a bug in the .NET framework and fixed it by hand-... by Alupis on Friday August 01, 2014 @02:21PM (#8121954)
> and still chose the hard way

Chose? Unless you work on the team that made that DLL, it's likely you'd be jumping through hoops even internally.

Re:I found a bug in the .NET framework and fixed it by hand-... by hyperliner on Friday August 01, 2014 @02:50PM (#8122130)
From good source here:

You don't actually jump through hoops. All you get to do is submit the bug, which gets logged in the bucket of thousands of other bugs.

Then the PMs will gather for bug triage for the next release, which have to compete with the next shiny project features. Nobody wants to fix bugs that only one developer has. It's just not worth it. This bug has existed for years, and it is likely you could modify your code to generate different byte code.

So the bug likely won't be fixed for a while.

I love .NET. I am just describing the reality of the process of bug fixing. Also, if you fix it, who knows what else will regress. That also imposes a bias towards not fixing these kinds of bugs.

Re:I found a bug in the .NET framework and fixed it by hand-... by acdha on Friday August 01, 2014 @03:52PM (#8122431)
> Nobody wants to fix bugs that only one developer has. It's just not worth it. … Also, if you fix it, who knows what else will regress. That also imposes a bias towards not fixing these kinds of bugs.

This is an interesting cognitive hazard: it's relatively easy to measure the cost of paying a developer to fix a bug and possible to estimate the cost of getting it wrong but there's no way to measure the cost to everyone who encountered it but never did the work to reduce it to a testcase and file a bug report.

Worse, it's very hard to measure the cost of people who choose to use something else. Repeat that cycle a few times and a fairly high percentage of the people you will hear from are in the “never change anything less than critical” camp.

Re:I found a bug in the .NET framework and fixed it by hand-... by hyperliner on Friday August 01, 2014 @04:14PM (#8122543)
... Or also never fix anything that we won't be able to sell and make money from (this is, the next shiny thing, whatever it happens to be at the time).

The cognitive hazard is a good observation.

But I think the most important one is the imbalance of interest, which is where open source shines: MS gets zero value from fixing this bug and a lot of value from adding new features, but for this one developer this bug could have been the most important issue on the road to his company's "value" (their own product's ship date).

Re:I found a bug in the .NET framework and fixed it by hand-... by acdha on Saturday August 02, 2014 @08:51PM (#8126614)
I wonder whether we'll see more of a hybrid model where companies either use something like Red Hat's RHEL / Fedora level of support split or a time-delayed OSS release so they can have some period of proprietary advantage while allowing customers access and allowing some chance for major outside contributions or tangents. Arguably Apple is doing something not entirely unlike that but they haven't hit the right balance yet.
Re:I found a bug in the .NET framework and fixed it by hand-... by wwwwwwwwww on Friday August 01, 2014 @02:28PM (#8122000)
i'm glad someone who works at the company like you was able to enlighten us as to microsoft's internal practices

oh wait

Re:I found a bug in the .NET framework and fixed it by hand-... by sjf on Friday August 01, 2014 @02:47PM (#8122111)
Apply some common sense, you think they let MS employees just commit to any codebase they like? And this is leaving aside all the annoying steps of locating their repository, figuring out how to build it, testing, finding out the right person to send the patch to, going through code review.
Re:I found a bug in the .NET framework and fixed it by hand-... by bruckie on Friday August 01, 2014 @06:41PM (#8123218)
"you think they let MS employees just commit to any codebase they like?"

That's pretty much how it works at Google. The code owners have to review and approve your change (and can reject it), but it's common (even encouraged) to commit a bugfix or new feature to someone else's project.

Re:I found a bug in the .NET framework and fixed it by hand-... by EGreg on Friday August 01, 2014 @03:41PM (#8122383)
How is that any different than a central maintainer of Linux accepting patches and reviewing them before they go in?

The only difference is that you can see the source and test on your own machine first.

MS employees don't have to commit to any codebase they like, but they should be able to obtain the actual source, so that "with enough eyes, all bugs are shallow".

Re:I found a bug in the .NET framework and fixed it by hand-... by nightski on Friday August 01, 2014 @04:51PM (#8122745)
Actually anyone can obtain the source, it's publicly available.
Re:I found a bug in the .NET framework and fixed it by hand-... by chrisbennet on Saturday August 02, 2014 @02:08AM (#8124140)
Not sure why you got down voted. I know Microsoft is open sourcing chunks of .net now. Perhaps that chunk wasn't one of them?
Re:I found a bug in the .NET framework and fixed it by hand-... by seanmcdirmid on Friday August 01, 2014 @07:51PM (#8123457)
Actually...I heard Google has developed a lot of infrastructure to allow for this: one repository, you can submit changes that are then automatically routed for review and test and such.
Re:I found a bug in the .NET framework and fixed it by hand-... by Alupis on Friday August 01, 2014 @02:49PM (#8122124)
It's one of the things Nadella has talked about, and plans to address over time (the extreme compartmentalism of and fierce "not made here" attitude a lot of departments/groups within Microsoft have developed over the past few decades.
Re:I found a bug in the .NET framework and fixed it by hand-... by noblethrasher on Friday August 01, 2014 @03:04PM (#8122200)
Re:I found a bug in the .NET framework and fixed it by hand-... by Alupis on Friday August 01, 2014 @03:22PM (#8122294)
There are ways to get rid of NIH without losing code quality, testings, responsibility, etc. Nadella in particular is talking about encouraging collaboration between departments.

PS: While the linked article is very relevant here, I'm getting tired of people always linking to Joel's blog -- he's not the definitive software spokesperson; has strong opinions which have been shaped by years at Microsoft - and a lot of his opinions are boxed into those views.

Re:I found a bug in the .NET framework and fixed it by hand-... by Scuttles on Friday August 01, 2014 @02:37PM (#8122063)
If you pay any attention to Microsoft, their business practices, news, reports, blogs, etc... then you would know the parent comment is pretty much spot on.
Re:I found a bug in the .NET framework and fixed it by hand-... by kyllo on Friday August 01, 2014 @07:07PM (#8123315)
Off topic, but I really enjoyed your post about writing a Python lexer/parser in Haskell. Thanks for that!

http://blog.nullspace.io/obvious-python-parser.html

Re:I found a bug in the .NET framework and fixed it by hand-... by antics on Sunday August 03, 2014 @11:14AM (#8128127)
Thanks! I really appreciate it! :D
Re:I found a bug in the .NET framework and fixed it by hand-... by xpaulbettsx on Friday August 01, 2014 @04:45PM (#8122715)
You chose the really hard way, the reference source is public - http://referencesource.microsoft.com :P
Re:I found a bug in the .NET framework and fixed it by hand-... by antics on Friday August 01, 2014 @08:09PM (#8123514)
---Author here---

It wasn't that hard. It took us about 30 minutes (thanks largely to the fact that Bart is a genius.) Besides, that's not actually the source of this DLL. We are on .NET native, and for that matter, a bleeding-edge build that's only available here at MS.

Re:I found a bug in the .NET framework and fixed it by hand-... by daxelrod on Friday August 01, 2014 @02:31PM (#8122022)
Out of curiosity, would you have been able to read the actual source if you wanted?
Re:I found a bug in the .NET framework and fixed it by hand-... by Lx1oG-AWb6h_ZG0 on Friday August 01, 2014 @02:36PM (#8122051)
Microsoft already publishes the source code for the .net framework (and I think other projects like asp.net and mvc) at referencesource.microsoft.com
Re:I found a bug in the .NET framework and fixed it by hand-... by breischl on Friday August 01, 2014 @02:48PM (#8122122)
They do, but interestingly that particular assembly is not included. Or at least I couldn't find it there.
Re:I found a bug in the .NET framework and fixed it by hand-... by steve-howard on Friday August 01, 2014 @03:07PM (#8122219)
The namespace appears to have changed or something, I found it here:

http://referencesource.microsoft.com/#System.Core/Microsoft/...

Note: also MSFT employee, don't work on .NET though.

Re:I found a bug in the .NET framework and fixed it by hand-... by antics on Friday August 01, 2014 @03:57PM (#8122451)
---Author here---

I work at MS, and we're using a slightly exotic version of this DLL. Please pardon the differences. :)

Re:I found a bug in the .NET framework and fixed it by hand-... by antics on Friday August 01, 2014 @02:59PM (#8122170)
---Author here---

Yeah, I've never tried, but I have a copy of the actual Windows source tree, so I'm guessing the answer is yes.

Re:I found a bug in the .NET framework and fixed it by hand-... by sixothree on Friday August 01, 2014 @04:31PM (#8122640)
And an extension called Ref12 will also allow you to browse to the online code from Visual Studio.
Re:I found a bug in the .NET framework and fixed it by hand-... by diminish on Friday August 01, 2014 @02:22PM (#8121960)
Aren't you allowed to send a git (err tfs) pull request there at least within the company?
Re:I found a bug in the .NET framework and fixed it by hand-... by Alupis on Friday August 01, 2014 @02:26PM (#8121982)
I've read several places that even Microsoft is not standardized on a source control management, some use tfs, some svn, some git, etc.
Re:I found a bug in the .NET framework and fixed it by hand-... by Scuds on Friday August 01, 2014 @05:28PM (#8122922)
Don't think of MS as a single monolith. They're a hundred businesses of various sizes that just happen to share the same HR department.

> use tfs, some svn, some git, etc you can go onto MS's job board and find Rails, iOS, and Node positions. :-D

Re:I found a bug in the .NET framework and fixed it by hand-... by sliverstorm on Friday August 01, 2014 @02:37PM (#8122066)
Different VCS is suited to different things. Perforce is great for gargantuan codebases with strong oversight requirements. Git is a poor choice if you check in lots of binaries. SVN is pretty widespread and supported natively by a lot of tools.
Re:I found a bug in the .NET framework and fixed it by hand-... by seanmcdirmid on Friday August 01, 2014 @07:54PM (#8123466)
I know of some teams even still using visual source safe for legacy reasons.