grauenwolf

- friends
22,520 link karma
33,307 comment karma
send messageredditor for
what's this?

TROPHY CASE

reddit is a source for what's new and popular online. vote on links that you like or dislike and help decide what's popular, or submit your own!

InfoQ: Lock-free Algorithms [1h10m] by dgryskiin programming

[–]grauenwolf -1 points0 points ago

A depressing amount of CS research is nothing more than ham-fisted attempts at applying mathematics to programming language design. It seems like for every person trying to build a better static analysis tool there are 12 spending months trying to prove by induction that a five-line function will work as intended.

Distributed Version Control Systems in the Enterprise by grauenwolfin programming

[–]grauenwolf[S] 0 points1 point ago

That would be nice. Even something as simply as C# can get totally screwed because the merge tool is line based and the code isn't.

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf 0 points1 point ago

Yep, but I can't say I've given it much thought.

It has been my experience that the hardest part of any project is integration with external services. Right now I've got to tie together an XMPP server, a VoIP server, some REST/JSON data feeds, and a local database. All my attention and effort is going towards making those pieces work. And all my testing is centered around verifying those same pieces.

So when someone comes to me professing the joys of unit testing I cannot help but think, "You fucking moron, your mocking out the only thing I care about testing.".

InfoQ: Lock-free Algorithms [1h10m] by dgryskiin programming

[–]grauenwolf -5 points-4 points ago

Most of the time I have little respect for computer science, but this is an area in which I always welcome advances.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 0 points1 point ago

I am a developer, the network admins makes sure the servers I connect to are running.

Dependency Injection: How to sell it - Programmers by yannisrizosin programming

[–]grauenwolf 0 points1 point ago

Silverlight has to be tested in the browser unfortunately. It isn't supported by normal test runners.

And actually it was 14000 tests according to my notes. It wasn't a small application, we had three teams just on th UI.

5 Weeks of Go by urielin programming

[–]grauenwolf -1 points0 points ago

That is going to end badly, with people constantly arguing about when to use panic vs an error code. Like Java's checked vs unchecked exceptions, except with a much, much higher cost if you change your mind.

5 Weeks of Go by urielin programming

[–]grauenwolf -1 points0 points ago

It is just a game of semantics.

In C# we have "contextual keywords". Just like a "predeclared identifiers", they were added in such a way as to not break older code. But since they are called "keywords" they are automatically more "complex".

Dependency Injection: How to sell it - Programmers by yannisrizosin programming

[–]grauenwolf 1 point2 points ago

It all goes back to Java and a misunderstanding about what an "interface" is. Java developers, and later .NET developers, saw the interface keyword and mistakenly believed that's what people meant when they said "program to the interface, not the implementation".

They didn't understand that what people really meant was "use the damn API I gave you and stop using pointers to muck about with my data structure's internal memory".

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf 1 point2 points ago

Non-private code only needs to be tested via the public code. If your public API never passes a 0 to div(x, y) then you can usually assume that nothing will.

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf -1 points0 points ago

Sure, but how do you make that guarrantee?

For .NET that means marking those other classes as "internal" and moving the whole lot of them to a separate library. And I'm not necessarily against that.

Dependency Injection: How to sell it - Programmers by yannisrizosin programming

[–]grauenwolf 0 points1 point ago

Oh no, not at all. In a XAML-based application it is not uncommon to see all of these events fire when the FirstName property changes:

  • PropertyChanged: IsChanged
  • PropertyChanged: FirstName
  • PropertyChanged: FullName
  • PropertyChanged: HasErrors
  • ErrorsChanged: FullName

In WPF or Silverlight the built-in controls will be listening to these events and responding accordingly. So if an event isn't fired, your UI may become out of sync with the underlying data.

I did a write up about writing "comprehensive unit tests" recently that used FirstName as an example.

http://www.infoq.com/articles/Comprehensive-Unit-Test

Dependency Injection: How to sell it - Programmers by yannisrizosin programming

[–]grauenwolf 0 points1 point ago

DI works just as nicely with your separation architecture.

Sure, I love what they are doing with MEF 2 and ASP.NET MVC. Dependency Injection frameworks definitely have a place, but the assumption that you need DI for unit testing is very troubling to me.

So your not using model binding then?

It's psuedo-code, I didn't want the example to be platform specific.

Dependency Injection: How to sell it - Programmers by yannisrizosin programming

[–]grauenwolf 0 points1 point ago

Silverlight and .NET have different interfaces for even basic stuff like validation.

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf 0 points1 point ago

This reminds me of the CSLA framework. In their examples their classes require a specific private method that is only accessed via reflection. Took me a couple hours to figure that one out, and it was just a trivial demo app.

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf 3 points4 points ago

I have to disagree. I would rather have a large class with a small surface area than lots of little classes with a very large combined surface area.

On improving the quality of large legacy codebase by incrementally enforcing encapsulation by unclematin programming

[–]grauenwolf 0 points1 point ago

However moving something to be private is not going to fix any real design problems.

No, but it will make fixing the design issues much, much easier. For me it is just step one of the process.

Announcing WP.NET | PHP compiler for .NET by grauenwolfin programming

[–]grauenwolf[S] 0 points1 point ago

Performance. If the benchmarks are to be believed, you get a significant improvement without giving up your existing PHP-based assets.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 0 points1 point ago

That's nonsense. With the right covering indexes and sufficient RAM, most of your queries can be against the cache.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 0 points1 point ago

You aren't making any sense. If they know that disk I/O is going to be a limiting factor, why would they design the database to be I/O bound? They should be designing it to use less I/O, even if it means a larger CPU cost.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 0 points1 point ago

Link please

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 1 point2 points ago

I/O is important therefore CPUs are not?

Yeah, I'm not buying it. And replication is always going to have a host of latency issues that I would rather not deal with.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 1 point2 points ago

That is a rather bold accusation. Can you offer more details?

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]grauenwolf 0 points1 point ago

Not really, I'm also trying to drive my Karma back down to 1.

How to make a site really freaking fast by sidcool1234in programming

[–]grauenwolf 26 points27 points ago

Pregenerate all of the HTML and serve it from CDNs.

view more: next