Results 1 to 24 of 24

Thread: Better code forum

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    525

    Lightbulb Better code forum

    I've been programming for a couple years now on VB, and one thing that I've always wished I could do on this forum (mainly because i'm self taught) is post my code and see if someone could do things better. Maybe someone out there can do what takes my code 100 lines in 10. You know? Sometimes I feel like I'm doing things the long way.

    I propose that a forum or subforum be created for just that purpose: to share with each other our code and see if someone else can do it better. It would give people a chance to sharpen their skills and learn from others. What do you think?

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    wont' that happen naturally in a forum?

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by SteveCRM
    wont' that happen naturally in a forum?
    No, because I won't post working code just to see if someone can do it better.

    Anyway, I was just thinking about the same thing. We do code reviews here at work, and they are great because others suggest better ways to do things. It would be nice to have like a Code Optimization forum here.

  4. #4
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    I would, and I will... I am working on an LZW compressor but I am having issues with optimizing my dictionary..

  5. #5
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Nice idea. I'm currently working on an HTML syntax coloring code which takes a lot of text parsing that could be optimized.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  6. #6

  7. #7
    Member Birth's Avatar
    Join Date
    Jan 2003
    Location
    Montreal
    Posts
    57

    Thumbs up

    I propose "SHARED CODING & EXPERIMENTS" for the group name.

    We could have something like Advance, Beginners and a No Hope kinda thing.

    No, because I won't post working code just to see if someone can do it better.
    This is just plain stupied.

    To bad, that is the point, learn from others is the subject I think. Use existing code and just make it better. Isn't it why we are all here?

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by Birth
    I propose "SHARED CODING & EXPERIMENTS" for the group name.

    We could have something like Advance, Beginners and a No Hope kinda thing.

    This is just plain stupied.

    To bad, that is the point, learn from others is the subject I think. Use existing code and just make it better. Isn't it why we are all here?
    Don't use a degrading word like stupid if you can't spell it please. Let's keep the insults away from this discussion.

    Anyway. My point was I am not going to clog up the normal forums with a bunch of pleas to help optimize code. Everyone of us produces code that isn't fully optimized. I don't care who you are. So are you going to post all your code everyday? No. If it is working at a decent speed, and maintenance isn't an issue, then the code is sound enough to not worry about. What I was thinking was that code optimization would be in one spot, and people can go through it when they want.

  9. #9
    Member Birth's Avatar
    Join Date
    Jan 2003
    Location
    Montreal
    Posts
    57
    Wooo.. Ultra Member spotted a Misspelled word....

    To bad I only speak and write in two languages. Don't correct me.

    I think I get the message here. Post what you think is a good routine and ask or chalenge for a better one. Simple.

    I can go with that!

  10. #10
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213
    I think a code optimization forum would be great. It would be a chance to learn how not to be so potentially sloppy. Especially for us beginners.

  11. #11
    Addicted Member run_GMoney's Avatar
    Join Date
    May 2002
    Location
    Detroit
    Posts
    186
    I am the sloppiest, worstiness, most awful code writinger you'll probably ever see. Well not that bad but I wouldn't mind learning some tricks to fix up my code.
    Place Your VBForums Ad Here

  12. #12
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Suggesting it in the Chit-Chat forum isn't any way to get an idea off the ground. Might I suggest Forum Feedback ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  13. #13
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    Originally posted by Birth
    To bad I only speak and write in two languages. Don't correct me.
    I am guessing VB would be the other language you speak and write, apart from English. In that case, I hope you speak and write VB much better.

    I think it's a waste of time to create another forum just for code reviews and improvements when you can do the same thing by posting directly in any of the technical forums, or add your code to the code database (Marty, it's still there, isn't it? ) and post a link to it in the technical forum and ask for improvements. That's what the technical forums have been there for, fixing code among others....

    .
    Last edited by honeybee; Dec 17th, 2003 at 02:25 AM.
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  14. #14
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Hellswraith, so you'd not be interested if someone did come up with a version of your code that ran 15% faster?



    I'd probably demand to know what it was if it was me.
    I don't live here any more.

  15. #15
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  16. #16
    Addicted Member run_GMoney's Avatar
    Join Date
    May 2002
    Location
    Detroit
    Posts
    186
    You rule, Brad.
    Place Your VBForums Ad Here

  17. #17
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Thumbs up

    Thanks Brad!

  18. #18
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    A set of "rules" or "how to use this forum" needs to be created. This would be a post that would be 'stuck' to the top of the forum. I suggest those of you that wanted the forum work to create this. Once you come up with something, I can post it to a new thread and stick it to the top of the new forum.

    I can help create this too if needed.

    Brad
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  19. #19
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    cheers

  20. #20
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213
    Well...

    I think one of the rules could be that the code posted needs to be working even though it appears bulky.

  21. #21
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843
    Instant mashed potatoes
    Merry Christmas

  22. #22
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033

    Thumbs up

    great, thx Brad...
    Help keep this forum clean: Remember to mark your thread as resolved · Search before you post · Remember to rate posts that help

    VS2010: Visual Studio 2010 Keybinding Posters
    · Service Pack 1
    Tools: GhostDoc - automatically generates XML documentation comments
    · NuGet package Manager · PowerCommands IDE extensions
    Source Control: ankhsvn - integration for SVN
    · Windows Shell Extension for Subversion

    Development Laptop: Intel Core i5 430M 2.26 GHz @ 2.53 GHz
    · 4096 MB, DDR3 PC3-8500F (533 MHz), Kingston · ATI Mobility Radeon HD 5470 · 15.6 @ 16:9, 1366x768 pixel, HD LED LCD

    I follow:
    JoelOnSoftware - A weblog by Joel Spolsky, a programmer working in New York City, about software and software companies
    ScottGu's Blog - Scott Guthrie works for Microsoft as the Product Manager of the .NET Framework
    Portugal-a-Programar - Portuguese Developers Community
    .NET Rocks! - is a weekly Internet audio talk show for .NET Developers.

    Programming Languages:
    C#
    · VB.NET · JAVA · PHP · Javascript
    Other:
    XML
    · HTML · CSS · JQuery · SQL



    *** Proudly Portuguese ***

  23. #23
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    Originally posted by GSIV
    Well...

    I think one of the rules could be that the code posted needs to be working even though it appears bulky.
    Hey! That's copyright infringement !!

    Brad, can you give me sole rights for the use of the word "Well ..." in the subject line of a reply? I can't stand my only distinguished mark being copied by others !
























    OK, for those who may act like I did in my first year here, I am just kidding

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  24. #24

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    525
    Alright! Thanks brad!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width