java Programming Glossary: principles
What goes into the “Controller” in “MVC”? http://stackoverflow.com/questions/1015813/what-goes-into-the-controller-in-mvc I'm specifically thinking Java but I suppose the same principles apply elsewhere . I organise my code into 3 packages called..
How to draw a clock with JavaFX 2? http://stackoverflow.com/questions/10541738/how-to-draw-a-clock-with-javafx-2 timeline. I created a sample app implementing the above principles. Update In response to criticism of the coding style used in..
Give Java application a Metro Look and Feel in Windows 8 [closed] http://stackoverflow.com/questions/11026487/give-java-application-a-metro-look-and-feel-in-windows-8 Internet explorer. After exploring throught the metro apps principles i want to give my application users an extra benefit of using..
Is there a way to simulate the C++ 'friend' concept in Java? http://stackoverflow.com/questions/182278/is-there-a-way-to-simulate-the-c-friend-concept-in-java he felt that friend was a mistake because it violates OOP principles. Packages provide a reasonable way to organize components without..
How do I call one constructor from another in Java? http://stackoverflow.com/questions/285177/how-do-i-call-one-constructor-from-another-in-java
Unresponsive threading involving Swing and AWT-EventQueue http://stackoverflow.com/questions/2899682/unresponsive-threading-involving-swing-and-awt-eventqueue The reason is fairly straightforward to derive from first principles. Consider a system similar to the one described by the OP having..
GUI not working after rewriting to MVC http://stackoverflow.com/questions/3066590/gui-not-working-after-rewriting-to-mvc of a much simpler game that illustrates similar principles. Note that the Model manages a single Piece chosen at random...
Should you always Code To Interfaces In Java http://stackoverflow.com/questions/3194278/should-you-always-code-to-interfaces-in-java you always Code To Interfaces In Java I understand the principles of Coding to Interfaces to decouple the implementation from..
Java Process with Input/Output Stream http://stackoverflow.com/questions/3643939/java-process-with-input-output-stream at the moment so I replaced bin bash with cmd.exe but the principles should be the same and I found that after typing in two lines..
What is reflection, and why is it useful? http://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful I'm particularly interested in Java but I assume the principles are the same in any language java reflection share improve..
What are the big improvements between guava and apache equivalent libraries? http://stackoverflow.com/questions/4542550/what-are-the-big-improvements-between-guava-and-apache-equivalent-libraries and the developers adhere to very good IMO API design principles having learned from past mistakes of the JDK APIs not their..
Word Wrap in JButtons http://stackoverflow.com/questions/5766175/word-wrap-in-jbuttons when to do a line break. It uses a JLabel but the same principles apply to any component that will render HTML. FixedWidthText.java..
Java Regex Helper http://stackoverflow.com/questions/5767627/java-regex-helper is all Java regexes are. You have to start over from first principles the way Groovy did. Sure it might work for very limited applications..
Runnable with a parameter? http://stackoverflow.com/questions/5853167/runnable-with-a-parameter like the following without violating fundamental OO principles private Runnable mOneShotTask new Runnable String str public..
Mockito: How to mock an interface of JodaTime http://stackoverflow.com/questions/6049777/mockito-how-to-mock-an-interface-of-jodatime classes in your class under test. Have a look at the SOLID principles to understand why this could be a problem especially in this..
How to create immutable objects in Java? http://stackoverflow.com/questions/6305752/how-to-create-immutable-objects-in-java have changed its IMMUTABLE This class adheres to all the principles of good immutable classes. All the members are private final..
Properly closing SSLSocket http://stackoverflow.com/questions/6424998/properly-closing-sslsocket is just that an abstraction. In line with the OOP design principles SSLSocket inherits Socket and tries to stick as closely as possible..
how the subString() function of string class works http://stackoverflow.com/questions/704319/how-the-substring-function-of-string-class-works not affect the newly created string. Following good OO principles no method of String actually requires that it is implemented..
How to simulate a DB for testing (Java)? http://stackoverflow.com/questions/928760/how-to-simulate-a-db-for-testing-java you know there are 542 rows in that table One of the main principles in testing is to be able to test the functionality in a way..
|