Categories
- Food (2)
- Investing (11)
- Kids (3)
- Programming (61)
- Thoughts (55)
- Uncategorized (1)
Tags
action android Argentina bond book Book review code code generation complexity craft delek nadlan Discworld donate eclipse editor EMF framework funny GEF graph help internals Investing investing guidelines israel java JGraph JUNG management mauldin novel opm passion programming research review Science fiction software software development style tase terry pratchett tutorial UML visual programmingFeeds
Author Archives: admin
Factory Method Design Pattern – Sequence Diagrams
As defined by the GOF, the Factory Method Design Pattern is used to ”Define an interface for creating an object, but let the classes which implement the interface decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses”. Factory methods can be used in place of constructors to create objects, doing so in a more elegant and controllable way (Joshua Bloch said in an interview that only classes that were designed for subclassing should have constructors). In its most simplest form, a factory method simply replaces the constructor: And we can show how this works using … Continue reading
Posted in Programming
Tagged Design Patterns, Factory method pattern, Sequence diagram
Leave a comment
Creating an OPM GEF Editor – Part 21: Adding Keyboard Shortcuts
Previous Tutorial: Creating an OPM GEF Editor – Part 20: Creating a Context Menu and Adding Custom Actions Keyboard shortcuts are very useful for activating actions. There are many shortcuts that are common in all environments – and for better usability, enabling this shortcuts give the user a better user experience. In my case, I wanted to let the user edit the name of a thing (or state) using the F2 key, which is commonly used for this purpose. Adding keyboard shortcuts to GEF is fairly easy. You only need to define a <code>KeyHandler</code> and attach it to the graphical viewer. … Continue reading
Book Review – Neuromancer
Neuromancer, by William Gibson, is an EXCELLENT book. I always though that the ideas behind the movie “The Matrix” were a complete creation of their creators. How wrong I was. This book is the prequel to The Matrix. Or at least its the place where many of the ideas came from. The book portrays the story of a punished “console cowboy” – a computer hacker who know how to navigate the plains of the matrix, the global computer network. After wronging his employers, and his talents to “ride” taken from him, he is suddenly given the option to regain them by performing a special … Continue reading
Singleton Design Pattern – Sequence Diagram
Last semester I taught an undergraduate course on system analysis and design using graphical modeling (UML and OPM). I decided that one important subject the students should learn (and was not taught in previous semesters) was design patterns. Although I already knew some of them, I searched for some place where there is a full reference of the most popular design patterns, what are their uses and how they should be implemented. I found some sources, one of them obviously Wikipedia, but the best one (in my view) is sourcemaking, which gives good explanations and examples. Another great source was the … Continue reading
Posted in Programming
Tagged Design Patterns, programming, Singleton, UML, Unified Modeling Language
Leave a comment
What is Wrong with being a Software Engineer?
We nave rock stars, super stars, luminaries, evangelists, trolls, hackers, craftsmen, … what else? Why can’s software engineers be software engineers? Do you know of more names that I forgot?
