Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Getters and setters considered harmful.

Name: Anonymous 2010-05-26 14:10

Getters and setters considered harmful.
Or: How do i broked encapsulation?


Discuss.

Name: Anonymous 2010-05-26 16:06

Actionscript has syntax for getters and setters, which, along with E4X support, makes it possibly the most ENTERPRISE language this side of Java:

package org.4chan.dis.prog {

    public class ScalableEnterpriseSolution extends Solution implements IScalable, IEnterprise {

    private var enterpriseXML:XML = <scalable>
                                          <enterprise>
                         <solution>
                          <spoiler>/prog/</spoiler>
                          leverages core skillsets
                          and world-class team
                          synergy through SICP to
                          provide clients
                          worldwide with robust,
                          scalable, modern turnkey
                          implementations of
                          flexible, personalized,
                          cutting-edge
                          Internet-enabled
                          e-business application
                          product suite e-solution
                          architectures that
                          accelerate response to
                          customer and real-world
                          market demands and
                          reliably adapt to
                          evolving technology
                          needs, seamlessly and
                          efficiently integrating
                          and synchronizing with
                          their existing legacy
                          infrastructure,
                          enhancing the
                          e-readiness capabilities
                          of their e-commerce
                          production environments
                          across the enterprise
                          while giving them a
                          critical competitive
                          advantage and taking
                          them to the next level.
                        </solution>
                      </enterprise>
                                        </scalable>;
   
    public function set enterpriseXML(enterpriseXML:XML) : void {
        this.enterpriseXML = enterpriseXML; }
   
    public function get enterpriseXML() : XML { return
        enterpriseXML;
    }
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List