Difference between revisions of "Software Engineering"

From Jtkwiki
Jump to navigationJump to search
Line 36: Line 36:
  
 
* [[EJB]]
 
* [[EJB]]
* [[Struts]]
 
* JavaScript (aka ECMAScript)
 
** [https://developer.mozilla.org/en/A_re-introduction_to_JavaScript A Re-Introduction to JavaScript]
 
** [http://tools.ietf.org/html/rfc4329 RFC 4329]
 
** [http://www.ecma-international.org/publications/standards/ecma-262.htm ECMAScript specification]
 
** [http://www.cs.bham.ac.uk/~pxc/%28langinf%29/2006/LI-JavaScript.html Introduction to JavaScript for Java Programmers]
 
* [http://dev.w3.org/html5/websockets/ Web Sockets API]
 
* [http://www.w3.org/Submission/wadl/ Web Application Description Language (WADL)]
 
* [http://code.google.com/p/skipfish/ skipfish] is a web application tester by Google, described in [http://www.h-online.com/security/features/Testing-Google-s-Skipfish-1001315.html this article by heise security]
 
  
 
== Other Technologies and Concepts ==
 
== Other Technologies and Concepts ==

Revision as of 05:18, 24 December 2011

Principles

Modelling

Each software system has an application domain, and it models the entities that form the system which constitutes the application domain.

Practices

See also teaching computing

  • Keep a record of the development process
    • Use something like cvs, subversion, git or whatever.
  • Establish a defined and automated build process
    • Use a tool such as make or ant.
    • Distinguish between original and dependent files.
    • Do not archive dependent files.
  • Build automated tests
    • Tests must run non-interactively
    • Tests must return a zero (success) exit code only if successful
  • Choose adequate names for classes, and for items presented to users.
    • A name should be suitable for all values that an object of the class can take, and it should be unsuitable for all values that are not suitable for this class. A name satisfying this condition is maximally expressive. However, expressiveness does depend on the imprecisions of natural language and so cannot always be optimised.

Building Software


Software Architecture

Web Technologies

Other Technologies and Concepts

  • JavaSpaces
  • Hadoop Map / Reduce
  • Business Process Execution Language (BPEL) - "orchestration" of business processes
  • Representational State Transfer (REST)
  • OSGI
  • Scala, a functional and object oriented language, using the JVM
  • Clojure, a functional language with immutable objects and reference types, using the JVM
  • NoSQL databases
  • Jetbrains Meta Programming System (MPS)
  • JavaScript Object Notation (JSON) aims to be a simple but universal notation for objects. While this addresses an important requirement, JSON unfortunately lacks a mechanism for stating the class that an object is an instance of (probably due to its JavaScript origins). This severely limits its usefulness. JSON also requires that names of attributes are quoted, which is perhaps a minor quirk but creates unnecessary scope for specifying attribute names that are awkward or even impossible to map.

Eclipse

Authentication

  • Acegi (now Spring Security) is an authentication framework based on Spring. Acegi Security in one hour seems like a good introduction.

Notes

Agility really is a consequence of adequate modelling. For a system that provides behaviour without internally modelling the problem domain (aka Universe of Discourse etc.), accommodating a change of requirements will likely result in large scale changes in design and implementation. In contrast, if the system is based on a detailed and highly adequate model, the extent of changes in design and implementation caused by a requirements change will correspond closely to the extent of the requirement change itself. Thus, small changes in requirements can be accommodated in an agile manner.

Somewhat metaphorically, a system that provides required behaviour without adequate internal modelling is "brittle" like a hash: If one bit in the requirements (the input) changes, all bits in the system (the hash) are subject to change.

Reusability really reflects the adequacy of a model independently of the purpose (i.e. independently of the current set of requirements).

The real use of prototoypes is that the software developers get to engage with the problem domain in a symbolic manner. It is an added benefit that prototypes provide opportunity for clients (or other non-developer stakeholders) to get to see the developing system, but (contrary to a somewhat popular view), this is not the main benefit.

Rewriting from scratch may be a bad idea, some say it's a thing you should never do or consider it harmful

Requirements Generally, requirements should not be considered as boxes that need ticking by whatever means. They are pieces of information for determining the adequate system design. If a design makes meeting the requirements easy, natural and "intuitive" from the implementors' perspective, that is a good sign that the design captures some of the essence of the application domain.