Yes! I once developed windows mobile app for my ex job (a food wholesales agent) The app was an inventory / shop system. Anyway, one of the features was that they could send orders from the phone to the companys webshop. The web orders could have a custom comment attached. So for debugging reasons I made the comment from the phone app "Tord is a small horse" tord was my co-worker, older humorless guy. Time passed and the app was deployed. One day a sales guy from our company called Tord and asked, "why do our weborders say that you are a small horse?" Apparently every sales person had been seeing the small horse comment for quite some time. And Tord was pretty pissed :)
Roger Alsing 0
Posts
-
I have done a stupid!!!!! -
Why WPF sucks todayActually, you can assign values to "this" in c# ;-) Try it inside the constructor of a struct.
-
Aspect Oriented Programming for Beginners>> What's the use of doing it this way? By using AOP you can model cross cutting concerns and apply these to the rest of your model. Think about how how inheritence works for OOP. Inheritance in OOP makes it possible to reuse code from a baseclass to a subclass. In a similair way you can reuse code via AOP. Lets say you need logging in all your business methods. Then you can apply the same logic onto all of them via AOP. So you can think of it as inheritence at method level, you let a method inherit logic. These magic fragments of code are called an "interceptor" or an "advice" The most naive and obvious usages of AOP is logging and security. But there are lots of other usecases. Personally I used AOP (using my own framework NAspect) to apply things like data binding support and dirty tracking onto ordinairy classes. One common argument against AOP is that it makes it hard to see what happens. e.g. you can not see that the logging code will execute when you look at the code. This is true, and could be a problem. This is ofcourse a very simplified view on AOP, but I hope it gives some idea on what it can do.
-
Code Smith opinionsI havent tried CS for quite a while now so this might not hold true anymore, But last time I checked it did a 1-1 mapping between tables and classes. You will get a class model reflecting the database schema instead of a model reflecting the actual domain problem you are trying to solve. I wouldn't use it if its still the same..
-
Mainframe vs .NET/J2EEI'm in such an environment right now so I can relate somewhat. The old mainframe system does what it is supposed to, so there is no immediate benefit of porting anything. The real benefit would come from new possibilities, e.g. the systems where I am were designed some 40 years ago and have been patched and patched over and over and have now become hard to change and maintain. Design decisions from decades ago make it impossible to add new features w/o massive rewrites. (and lack of testability will most likely cause new bugs to surface in the production environment) So a .NET or Java rewrite could make it much easier to add new features and maintain. Due to better tools, testability and easier to model the problem domain in OOP. //Roger
-
Atari ST or Commadore Amiga?Amiga 500 and the king of computers Commodore 64 ;-)
-
Secret of Life one step closerDefine earth-like conditions? Life thrives in alot of strange conditions. There are bacterias eating sulfuric acid, organisms living in boiling underwater vulcanos, bacterias living in and eating solid rock. We are making incorrect assumptions IMO. We look at how life looks on earth, and think -"they would never survive in another environment" Ofcourse they wouldn't, they are adapted to this environement after millions of years. If an envirionment can sustain even the smallest forms of life, I'm sure evolution will find a way to optimize that into larger forms given enough time.
-
Secret of Life one step closerFor who? Creatures that evolved on earth?
-
Good UML diagramming tools?Anyone know any _good_ UML diagramming tools? Visio is a joke when it comes to UML. Altova UModel is decent, but not optimal when it comes to sequence diagrams. The best I've found so far is some shareware app "TraceModeler" which is awesome for sequence diagrams. But it does not support any other diagram type at all. So, anyone know of any tool that is as good as tracemodeler but that can handle other diagram types too? (It should be intelligent enough to understand how each diagram type works, and not just treat everything as free floating shapes on a paper) //Roger
-
Threadsafe propertyAFAIK, "lock" is not recomended since it can result in permanent lockups of an object for ever. Monitor.TryEnter does the same but takes an argument specifying timeout interval. Also, the locker object should be readonly.
-
Blog Recommendations? [modified]Wordpress has a [sourcecode language="csharp"] code [/sourcecode] tag that you can use. (atleast the official wordpress site where I host my blog) You simply paste raw source code into that block. http://support.wordpress.com/code/[^]
-
Easiest way to limit access to a WCF service?What would be the easies way to limit the access to WCF services hosted in IIS? The intended consumers are other sites on the same server. Do I need to use client credentials for this or can it simply be solved by only allowing local users to access the svc files in IIS or something like that? The service site also expose other asp.net resources that needs to be accessible from remove users... (I know that I've could have used pipebinding if it wasnt hosted in IIS, but thats not up to me to decide) So what are the options here?
-
Evolution of Mona LisaDalek Dave wrote:
I understand the principal, but if it could paint new and interesting pictures, that would be something else!
That is a matter of how you see it :-) The "source image" in this case the Mona Lisa, could be seen as "the environment" And the generated image should be seen as "the adaption", how fit the organism is, not how the actual organism itself looks. Also, this is not intended to be used as some sort of "god does not exist" propaganda. I'm well aware that this only proves that; evolution works in a designed environment with designed rules. I can never similate evolution w/o me myself beeing a parameter in the simulation. But this might lead into soapbox material quite fast , so I'll shut up now :)
-
Evolution of Mona LisaIncase anyone likes genetic algorithms and art, I tried to combine the two topics just for fun this weekend :-) http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/[^] (And sorry if this looks like some self promotion post, I don't do that normally but I just thought the topic might be lounge worthy)
-
Accessing a parent class' methodsIt does not work in C# , but it is possible at IL level. So I guess its simply a rule that prevents you to skip layers of abstraction in C#.
-
Passing DTO to client from serverHi, Maybe this should go under ASP.NET instead, I'm not sure. I'm well aware that I can create a lib of DTO objects that are [DataContract]s and pass them to the client and the client knows about them as the _exact same type_ as the server when using WCF. While interacting with an old WS normally results in auto generated proxy objects. So my question is: is it possible to make a normal WS client use the same types as the server? (the types that are DataContracts in a WCF scenario that is...)
-
What's the big deal with ALT.NET, anyway?My guess is that there are multiple reasons why ALT.NET exists. * People are not pleased with some of the MS technologies and thus want to use something else * It's a bit hip and elite'ish to be in that kind of group * Some OS devs are affraid that their own beloved frameworks will die out if people start using MS frameworks, so they try to push their own stuff in this channel in order to not lose their fame and glory * They are making a statement, "hey MS, you have to improve your stuff"
-
facing problem while encryptionThus the " ;P "
-
facing problem while encryptionhuffman encryption :P
-
Rotation of cubeTake a steady grip with both your hands around the monitor. Lift it up and move it closer to your face while twisting it from side to side.