Results 1 to 7 of 7

Thread: I hate programming..........

  1. #1

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A

    I hate programming..........

    Because I can't figure out the dumbest thing. GSB, why do you no do your job?

    On the other hand, how are y'all doing?

  2. #2

    Joined
    Dec 2011
    Posts
    77
    Userbars
    3
    Thanks
    3
    Thanked
    32/22
    DL/UL
    30/0
    Mentioned
    24 times
    Time Online
    18d 20h 37m
    Avg. Time Online
    6m
    try looking into regular expressions, they're better to use than GSB in most cases

  3. #3

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A
    Yeah... I've tried it all... I must have a hiccup in the code somewhere. *sigh* I'm gonna read it all again.

  4. #4
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    (you need an account to see links)

    We are happy to help

  5. #5

    Joined
    Dec 2011
    Posts
    843
    Pronouns
    she/her
    Userbars
    3
    Thanks
    313
    Thanked
    346/213
    DL/UL
    34/2
    Mentioned
    179 times
    Time Online
    1d 19h 11m
    Avg. Time Online
    N/A
    Quote Originally Posted by Zachafer View Post
    Indeed. I have used this many times... but I don't want to jump straight there unless I am truly stuck. I am slowly fixing the errors. Thank you though.

  6. #6

    Joined
    Dec 2011
    Posts
    488
    Thanks
    303
    Thanked
    559/263
    DL/UL
    13/4
    Mentioned
    34 times
    Time Online
    1h 58m
    Avg. Time Online
    N/A
    Quote Originally Posted by Hexx View Post
    try looking into regular expressions, they're better to use than GSB in most cases
    In most languages regex is slower than string functions. In some cases you can't get around regex, but in this case I think it would be wise to just keep with the standard GSB.

  7. #7

    Joined
    Dec 2011
    Posts
    77
    Userbars
    3
    Thanks
    3
    Thanked
    32/22
    DL/UL
    30/0
    Mentioned
    24 times
    Time Online
    18d 20h 37m
    Avg. Time Online
    6m
    Quote Originally Posted by ./m View Post
    In most languages regex is slower than string functions. In some cases you can't get around regex, but in this case I think it would be wise to just keep with the standard GSB.
    if you're doing manipulation on a single string then basic string functions like InStr and Mid would be quicker but for more complex string manipulation regex is usually much quicker and simpler to implement and use, it's important to be able to recognise when to use each method. either way it's definitely good to learn as an alternative.
    Last edited by Hexx; 03-11-2012 at 02:39 PM.

Posting Permissions

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