Page 28 of 293 FirstFirst ... 182425262728293031323878128 ... LastLast
Results 541 to 560 of 5859
  1. #541
    Community Member doomboyv2's Avatar
    Join Date
    May 2014
    Posts
    0

    Default

    Quote Originally Posted by Missing_Minds View Post
    *snip*
    ooh, i never thought of doing that.
    while it is quite above my level right now, i'll have to worry about this in the future anyways, so better now than never.

    in terms of replacing modulus, i do have an idea, though i'm not too sure if it's less CPU intensive.
    how about converting the digit to a string, finding the length of said string then converting the last character into a single digit?
    it's more roundabout but it bypasses modulus, and has the same effect.
    Doppelganger? Whatever are you talking about, my dear?

  2. #542
    Community Member doomboyv2's Avatar
    Join Date
    May 2014
    Posts
    0

    Default

    Quote Originally Posted by Missing_Minds View Post
    I agree 100%.


    Comments that are worth a kitten any way.

    i++; // adds one to i.

    Comments like that are so worthless, I bloody hate them. Teachers always said "comment your code". They really should say "Explain what your code is doing, the why it is doing it in comments. I can do math, but why are you doing it?"

    i++; // i is a temp variable only used in this section to be used to count the number of jellybeans in the jar.
    Quote Originally Posted by Aeryyn View Post
    Missing, I don't see this as "showing him up" as much as your experience automatically taking the next step. I think DB did a great job figuring out how to shorten it up as much as he did. <kudos to DB>

    Oh, and what CD said. As a Tech Writer, I can interpret and document the code much quicker with copious /*comments*/.
    thanks guys
    i'll be sure to comment my code well.
    just to be on the safe side, i like to be overzealous with the comments, but in the future it'll be easier, of course.
    Doppelganger? Whatever are you talking about, my dear?

  3. #543

    Default

    Quote Originally Posted by doomboyv2 View Post
    in terms of replacing modulus, i do have an idea, though i'm not too sure if it's less CPU intensive.
    how about converting the digit to a string, finding the length of said string then converting the last character into a single digit?
    it's more roundabout but it bypasses modulus, and has the same effect.
    I thought about that, but then the issue is of course libraries you are using. Is it worth the additional of string libraries and token checking? Unless you have an additional reason to convert the number to a string I really don't see the value added for a conversion. I'd rather take the mod hit.

    Just keep in mind I was looking at it from a much more top down level. This low level of what snipit you shared it is really hard to say where the costs of the various methods really come into play so it is more of a mental exercise than anything.

  4. #544

    Default

    Quote Originally Posted by doomboyv2 View Post
    ooh, i never thought of doing that.
    while it is quite above my level right now, i'll have to worry about this in the future anyways, so better now than never.
    I figured which is why I told you the questions that were going through my head.

    Now the next trick/lesson... writing code that is efficient but still easy to understand/maintainable.

    Between the two which is easiest to understand at a glance. Yours is. So while it can be fun to challenge yourself to go "I can do that in 5 lines of code." is it better to do the short way or keep it long to make it easier to maintain for other people that come along and see your code? This is where a lot of people absolutely FAIL in object oriented coding. They modularize it to the point you can't easily maintain it.
    Last edited by Missing_Minds; 09-19-2015 at 03:57 PM.

  5. #545
    Community Member
    Join Date
    Apr 2013
    Posts
    0

    Default

    Quote Originally Posted by Missing_Minds View Post
    I figured which is why I told you the questions that were going through my head.
    .
    I'm with everyone here in the *Kudos to you DB* statements.

    That part above from Missing is imo pretty paramount to anything tech we do (and even non tech) if you wish to be more efficient. The moment we stop asking ourselves why am I doing this this way type of questions, is the moment we will fall behind in the tech field. I face this each day in the construction/ electrical/ hvac field and am always looking for a better/ easier/ more cost effective way to do things so am always asking myself endless questions as I work. It's getting pretty competitive and margins are shrinking over here so if I'm not smart in how I work we wont go far.

    Trying to get that into my apprentices is the hard part as it seems the younger folk these days (and some of us older ones!) seem to switch the grey matter off while working. It's not about second guessing oneself, but rather about looking for easier ways to make life simpler for us the tech doing the job.

  6. #546

    Default

    Quote Originally Posted by IssianasGhost View Post
    Trying to get that into my apprentices is the hard part as it seems the younger folk these days (and some of us older ones!) seem to switch the grey matter off while working. It's not about second guessing oneself, but rather about looking for easier ways to make life simpler for us the tech doing the job.
    beer, not being a boss, being a poor leader, and in general not caring seem to be the prime reasons for such.

  7. #547

  8. #548
    Community Member doomboyv2's Avatar
    Join Date
    May 2014
    Posts
    0

    Default

    Quote Originally Posted by Missing_Minds View Post
    http://www.thinkgeek.com/product/iqht/

    Saw that and thought of you, Doom.
    6 figurines for 20$ is quite a steal.
    most figures cost a lost more here o.o
    Doppelganger? Whatever are you talking about, my dear?

  9. #549
    Community Member
    Join Date
    Apr 2013
    Posts
    0

    Default

    Quote Originally Posted by doomboyv2 View Post
    6 figurines for 20$ is quite a steal.
    most figures cost a lost more here o.o
    That site would be US$ so add in exchange rate, local import taxes etc and it might be similar to local prices maybe?

  10. #550
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    *Bekki wanders in...
    *Heads to the bar....
    *Sets up and restocks...
    *Preps the food and drinks for the day...
    *Pours morning drinks for all...



    Morning All !!!
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  11. #551
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    *Yawn...
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  12. #552
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    *Stretch...
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  13. #553
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    Late night last night...
    Let the kid talk me in to watching the WWE Pay per view...
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  14. #554
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    Wasn't too bad but not too many surprises...
    Went about as I expected...
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  15. #555
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    Oh well; let me clean up this
    /Nabby while I'm here...
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  16. #556

  17. #557
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    Quote Originally Posted by Missing_Minds View Post
    heard this, this morning.

    Very fitting of my day so far.

    https://www.youtube.com/watch?v=N0i9yCZ5D8E
    Yup, know the feeling. Sorry to hear that MM.
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  18. #558
    Community Member Bekki's Avatar
    Join Date
    Aug 2006
    Posts
    0

    Default

    *Bekki wanders in...
    *Heads to the bar....
    *Sets up and restocks...
    *Preps the food and drinks for the day...
    *Pours morning drinks for all...



    Morning All !!!
    Official Muskateers Bartender
    Proud Officer of Acme Fighting Co.
    "It's a dangerous business, going out of your door, Frodo my boy." He used to say. "You step into the road, and if you don't keep your feet, there is no telling where you might be swept off to." ~ Frodo Baggins (Quoting Bilbo Baggins)

  19. #559
    Founder & Hero cdbd3rd's Avatar
    Join Date
    Jan 2006
    Posts
    0

    Default

    Patrick Stewart being Patrick Stewart, I had to start DVRing his new show, Blunt Talk. It's... different. Kinda like that last go Robin Williams had with The Crazy Ones.

    So anyway, this last episode had him sitting in a bar where he was soon joined in a short conversation by this other bloke who had been sitting at a nearby table...




    Last edited by cdbd3rd; 09-23-2015 at 05:55 AM.
    CEO - Cupcake's Muskateers, Thelanis
    Collectibles

  20. #560
    Founder & Hero cdbd3rd's Avatar
    Join Date
    Jan 2006
    Posts
    0

    Default

    Burning off a couple more vacation days, so this is my Friday this week.

    Started off last night stopping for gas and finding that some baconhead had stolen my gas cap. Was on a tether, so didn't just fall off or anything. Always a good way to start a w*** night.
    CEO - Cupcake's Muskateers, Thelanis
    Collectibles

Page 28 of 293 FirstFirst ... 182425262728293031323878128 ... LastLast

Posting Permissions

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

This form's session has expired. You need to reload the page.

Reload