• Inspriation
    • Tips
    • Conventions
    • Life Hacks
    • Science
    • News

    Conventions

    2 posts

    Private attribute accessors ( private getters and setters). Do we need them ? (Ruby version)

    Published by: Gaurav Narra on 7 Sep 2016 | Subject: Programming language, Ruby, Conventions

    I tend to use a lot of attribute accessors to my ruby class’s. They basically add getter and setter methods to my class, for example suppose we have a Snake class, with public method grow, shrink & reputation. Where grow would increase the length of snake by a unit,

    … Read More

    What are side effects (computing)? Ever wondered about i++ and ++i output when in printfs. I know they suck !

    Published by: Harshit Yadav on 23 Jul 2016 | Subject: Conventions, Code Style

    Side Effects to me came into existence when interviewer asked me "What will be the output of printf("%d",i++ + ++i + i++ + ++i ..."

    This goes to infinity :'( ) when i=5 and we continuously argued on the concepts, and the result was both of us were not aware of the

    … Read More

    Page 1 of 1

    Join Thousands

    of subscribers who get fresh content from us once per week.

    Subscribe Now

    Featured Posts

    1. 0
      I didn't qualify the interview? Why?
      Published on 23 Jan 2017
    2. 1
      What should be the team size ?
      Published on 18 Jan 2017
    3. 2
      Why i hate programming sometimes ?
      Published on 3 Nov 2016
    4. 3
      Why programming is fun?
      Published on 8 Oct 2016
    5. 4
      Why is it good to be jack of all trades and master of none in Tech industry.
      Published on 23 Sep 2016
    Like us on facebook:
    I can be a Coder
    Follow us on Google Plus:
    or Follow us on Twitter:
    Follow @TwitterDev

    Must read books:

    • The Art of Computer Programming
    • SQL Antipatterns
    • The Mythical Man-Month
    • The Pragmatic Programmer

    Advertisement

    WEBSITE
    • Home
    DEVELOPERS
    • Slack (Invitation only)
      Sign In here to get access to developers forums
    GET SOCIAL
    • Facebook
    • Twitter
    Copyright 2016.
    Under GNU Public License.
    Powered by Digital Ocean and Ghost CMS

    The latest content, once per week.

    x

    Privacy policy: No spam. No jibber jabber.