Now.Today



  • I'm maintaining (read re-writing) a not so old application we (and I use the term 'we' to refer to my company... and very loosely at that...) developed for a client. A previous employee worked on most of the current system and also implemented a web service which I had the nightmare of trying to get working recently. I ended up having to rewrite big portions of that...



    It's not so much the fact it's written in VB.NET - I prefer c# for it's readability



    It's not the fact that most of the static stuff is accessed through instances



    [i]Dim someObject As ObjectyThing

    someObject.CalculateSomething(someObject.ID)[/i]



    It's not even the fact that some code is just mental



    [i]Now.Today



    (Once again accessing a static method through an instance allows one to come up with Now.Today!!!?!? which is just insanely stupid code)[/i]



    The thing that annoys me the most?



    [b]Creating a 'base' class for standard 'save/close' form functionality then COPY AND PASTING the code into every other form created....[/b]



    This copy and pasting happens everywhere, it even means that most of the business logic is embedded in forms and the same code is being written time and time again to check if something is valid and savable. Of course none of these saves are wrapped in try/catches and if anything does go wrong you just get a massive unhandled exception.



    Classic one is - a modal popup form that lets you edit an object and change it's values. Of course when you click 'save' on the form, all it does is sends DialogResult.OK back to the caller and does nothing in the form itself - so it's up to the calling form to call the save method on the business object present on the subform - which means in the ten or so places this save is implemented it's slightly different, and has the added benefit of closing the form if an exception is thrown without saving or giving the user the chance to rectify it...



    The client has been dealing with these errors for 2 years, they think it's just the way it's supposed to work.



    I hate it.



  • @Charleh said:

    I'm maintaining (read re-writing) a not so old application .... written in VB.NET ......
    It sounds like this app has its roots in VB6, but you say its "not so old". Do you have any dinosaurs hiding behind the furniture that you are not aware of?



  • @OzPeter said:

    @Charleh said:
    I'm maintaining (read re-writing) a not so old application .... written in VB.NET ......
    It sounds like this app has its roots in VB6, but you say its "not so old". Do you have any dinosaurs hiding behind the furniture that you are not aware of?
    He's merely using the SpectateSwamp programming language timeline.  VB5 is not too old, VB6 is cutting edge, and VB.NET is a fantastical lie propogated by the secret cabal that rules the world.



  • @Charleh said:

    It's not the fact that most of the static stuff is accessed through instances

    Dim someObject As ObjectyThing
    someObject.CalculateSomething(someObject.ID)

     *sigh*

     If only he had made those functions global, he'd only have had to create someObject as ObjectyThing once.



  • @Charleh said:

    Creating a 'base' class for standard 'save/close' form functionality then COPY AND PASTING the code into every other form created....



    This copy and pasting happens everywhere, it even means that most of the business logic is embedded in forms and the same code is being written time and time again to check if something is valid and savable. Of course none of these saves are wrapped in try/catches and if anything does go wrong you just get a massive unhandled exception.
    I did something very much like that with VB6: a 2D game in which the game logic was written in every form, once per level, and copypasted between them when I added stuff. I have no idea why I did it that way but it was one of the first things I made and I was only a kid at the time.
    I got better. And as punishment I have to work with people who do counterintuitive things without asking me for permission (which I wouldn't give) first.



  • So, Mr Density, how is Mass Effect 2? I'm on a PC, and watched some clips on Youtube, and was fairly impressed. Since Half-Life 2 EP3 appears to be total vaporware (we'll have it done by the end of 2007! promise! uhu!), I'm looking for another advanced non-dumb shooter with excellent graphics and an excellent story, when I'm done with Fallout 3.



  • @dhromed said:

    how is Mass Effect 2?
    It starts with extensive redecoration. On the plus side you get a cabrio.



  • @DOA said:

    It starts with extensive redecoration. On the plus side you get a cabrio.
     

    I would play ME2 just to get your joke.



  • @dhromed said:

    @DOA said:

    It starts with extensive redecoration. On the plus side you get a cabrio.
     

    I would play ME2 just to get your joke.

    You should. Half the fun is getting the joke. 

    On a more serious note if you liked the first one you should definitely play the second one. More so if you've kept your ME1 profile as it gets loaded in ME2.


  • Garbage Person

    @DOA said:

    More so if you've kept your ME1 profile as it gets loaded in ME2.
    And if you didn't, GO BACK AND PLAY ME1 AGAIN, FOOL.



  •  I never played ME1.

     

    :|

     :(

    :'(

    :'''(

     

    im notta fool

     

    am not

     

    waah

     

    Also, I never played half-life 1 either, and I'm not going to, because it looks like shit.



  • @dhromed said:

    Also, I never played half-life 1 either, and I'm not going to, because it looks like shit.

    That was the last game I really played (well, I'm including Team Fortress Classic and Counterstrike... and I guess I played quite a bit of Quake III and Unreal Tournament...).  You are an ass, sir.



  • @dhromed said:

    Also, I never played half-life 1 either, and I'm not going to, because it looks like shit.
    Probably wouldn't be too bad if you did HL:Source.  Plain old HL was great for its time, but it had problems.  Funky flashlight anyone?  How come you can make a gun shoot straight but not a beam of light?

    I loved it, played it through twice, got the T-shirt.  Still, not sure I would play it again.  Instead, I'll just watch Freeman's Mind on youtube.  It's like playing, except not.



  • @morbiuswilters said:

    @dhromed said:

    Also, I never played half-life 1 either, and I'm not going to, because it looks like shit.

    That was the last game I really played (well, I'm including Team Fortress Classic and Counterstrike... and I guess I played quite a bit of Quake III and Unreal Tournament...).  You are an ass, sir.

    Did you guys hear that?  He's never played Fallout 3!  Get the firewood mininukes!


  • @morbiuswilters said:

    I played quite a bit of Quake III and Unreal Tournament...
     

    Well, you're that kind of player. The kind who plays with others.

    I don't like arena games like UT or QIII. I played Quake II and thought it was nice but a little void, and I loved Unreal 1 because of its narrative and sequential levels. I haven't played any few-player coop games like Army of Two etc, but I suspect those might be more to my liking in terms of social gaming.

    Other than that, I'm a total single player.



  • @belgariontheking said:

    Probably wouldn't be too bad if you did HL:Source.  Plain old HL was great for its time, but it had problems.
     

    I cheated and jumped straight into HL2, but I'm really looking forward to Black Mesa as a way to play the original.


  • @dhromed said:

    I never played ME1.<snip>Also, I never played half-life 1 either
    I'm adding you to my ignore list



  • I think I have some kind of thread derailment disease



  • @Charleh said:

    I think I have some kind of thread derailment disease
    Ok everyone, let's talk about petunias



  • @Charleh said:

    I think I have some kind of thread derailment disease
    No, it's just that you're stories aren't interesting enough.  Consider spicing them up with Krograns in the future.



  • @DOA said:

    @dhromed said:

    I never played ME1.<snip>Also, I never played half-life 1 either
    I'm adding you to my ignore list

     

    Well, I'm never going to play HL1, but I might be persuaded to part with my money download time and bandwidth to obtain this game. What do you say?

    (actually: I lied. I played HL1 for about 5 minutes but it was long ago and the memory is so damn vague and I had barely any idea of what computer games and FPS meant back then. I remember having a crowbar and going up some stairs in an elevator shaft -- and that's it. So we cool now?)


Log in to reply