3,117 reputation
11120
bio website mattolenik.net
location United States
age
visits member for 4 years, 3 months
seen Mar 3 '11 at 22:54

Jan
19
comment What arguments are there in favor of weak typing?
@Peter Taylor is correct. Many of the benefits of dynamic typing are available in languages with better static typing systems, like Haskell, Scala or even C# in some cases. I would say the major advantage of dynamic typing is dealing with things that are inherently typeless, like HTML DOM. Why write node["attr"] instead of node.attr? They are always resolved at runtime anyway.
Jan
19
comment For what common problems is functional programming not a good fit?
@Jon Harrop, why make that assumption? That was a long term reach goal for (presumably) rewriting the Unreal engine. No small task, especially when you have to keep up with market demands and improve the product.
Jan
19
comment What arguments are there in favor of weak typing?
Execution speed has little to nothing to do with type safety. C is weakly typed and hardly slow. How does strong typing slow down the programmer? It should increase productivity by catching errors sooner rather than later. It's easy to have an accidental type conversion in JS or PHP go unnoticed. Also, dynamic typing is not the same as weak typing.
Nov
8
comment What's the web framework to use on a front-end web application?
Can I ask why you are using a client side library? Have you considered a RIA framework like Vaadin or Echo? They tend to be much more well suited for "desktop application" replacements than traditional web development (which is great for sites, but not rich apps).
Oct
20
comment Are null references really a bad thing?
@Geek I'm asking if you said that, because it's what it sounds like to me. Hence the question mark :)
Oct
19
comment What do you think of this new if-then syntax
I find then to be a bit confusing. Usually then is implied to occur after an if. I mean, you are saying if condition, then stuff() but then proceed to say then stuff that applies to both
Oct
19
comment Are null references really a bad thing?
So you're saying the type system shouldn't be improved because the mistakes are human error?
Oct
19
comment Are null references really a bad thing?
+1 for unexploded bombs. With null references, saying public Foo doStuff() doesn't mean "do stuff and return the Foo result" it means "do stuff and return the Foo result, OR return null, but you have no idea if that will happen or not." The result is that you have to null check EVERYWHERE to be certain. Might as well remove nulls and use a special type or pattern (like a value type) to indicate a meaningless value.
Oct
16
comment What are the best monitors for programming?
Absolutely. Modern TN film panels are probably good enough if you don't want to spend a lot, but if you look around you can get a really good IPS panel for a reasonable price. They're worth every dollar.
Oct
16
comment For what common problems is functional programming not a good fit?
@sepp2k right, I see what you mean.
Oct
16
comment For what common problems is functional programming not a good fit?
@sepp2k wait, did I miss something? After reading the presentation more closely, it seems Sweeney was arguing for most of the core engine to be written with purely functional code, and most of the game logic to be written imperatively (or at least allow it) and use STM to help with concurrency. This seems very reasonable to me.
Oct
16
comment For what common problems is functional programming not a good fit?
@sepp2k, thanks for the link. I'm glad to see the perspective argued from someone who's made real games.
Oct
15
comment Would this be an effective use of the Subject/Observer pattern, or is there a better way?
What's a "tick of the clock?" Is it an arbitrary countdown timer? Or do you mean the tick of a game loop?
Oct
15
comment What level of understanding should programmers have about OO?
@Jas what fears? That I'm some young student who thinks he knows everything? No, certainly not. I don't have much real world experience. But I do have a reasonable amount of knowledge which certainly allows me to discuss the concepts here. You haven't refuted anything I've said and your entire argument basically boils down to "get off my lawn." It's condescending and highly insulting, and has no place in a community like this one.
Oct
15
comment What level of understanding should programmers have about OO?
@Jas, I'm not twisting anything. And I'd ask that you not make assumptions about the state of my career. I'm a student, yes, but that includes over a year of full time work experience in a real job as well as years of self study. Even still, this has nothing to do with experience. It's entirely conceptual.
Oct
15
comment Is having your own website important?
@Chris well sure. I just mean that you should strive to post meaningful information that isn't obviously redundant. Don't blog for the sake of blogging.
Oct
15
comment Should universities put more emphasis on teaching their students about design patterns?
In principal yes, computer science curriculums shouldn't be teaching software engineering. But let's be practical. Probably 90% of CS graduates move into professional engineering. They should probably be taught a little bit about it.
Oct
15
comment What level of understanding should programmers have about OO?
And while we're at it, no, design patterns really don't have anything to do with OO. Design patterns are a culture. Patterns exists for all programming paradigms, not just OO. I'd agree that yes, being aware of patterns is a good thing, but it's an indication of a good programmer in general, not just familiarity with OOP.
Oct
15
comment What level of understanding should programmers have about OO?
@Jas, I said nothing about design patterns. I mentioned 2 and 5. 2 is user stories and use cases. These are ways of capturing requirements that are completely independent of OO. 5 is UML. UML is a tool often used by people that do OO, but it is not a requirement in any fashion. It can also be used for capturing all sorts of stuff that isn't OO. That's why it's called Unified Modeling Language.
Oct
15
comment What level of understanding should programmers have about OO?
-1 because of #2 and #5. These are good practices but have nothing to do with OOP. UML is a tool often used for capturing OO design, but it is not at all required.