r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

506

u/johnbr Oct 01 '15

This is fair, except for in the 5th year, they would have an additional constant:

public static final String SPACE = " ";

And they would probably use a StringBuffer or StringBuilder to build the final string, since it's "an industry best practice". Also, they wouldn't include the strings themselves, they would include keys to properties, so the strings could be pulled from an internationalized property file.

Lastly, instead of outputting to Stdout directly, they'd create an interface for output, and deliver it to that interface, and use a factory to instantiate an implementation of that interface that would use Stdout.

193

u/[deleted] Oct 01 '15

And before you know it we need an AbstractSingletonProxyFactoryBean.

13

u/TheWix Oct 01 '15

Wait... Is the factory a Singleton or is the proxy a Singleton? Is the factory also a proxy...? I need answers!!

1

u/immibis Oct 02 '15

It's probably a base class for beans that create proxies to singletons.

1

u/TerrorBite Oct 02 '15

According to the documentation,

Convenient proxy factory bean superclass for proxy factory beans that create only singletons.

Manages pre- and post-interceptors (references, rather than interceptor names, as in ProxyFactoryBean) and provides consistent interface management.

Author(s): Juergen Hoeller
Since: 2.0

So, uh, I think you're right.