Tuesday, January 31, 2012

On Software Craftmanship

Software Craftsmanship is really the one thing that I stress them most when writing code.  I'm really big into making the code as readable, flexible, easy to use, neat, and easy to understand.  I do think of coding as a craft, an art.  I take it as my responsibility to spread my passion for good coding to everyone, and leave only my best code behind.

Since this article is really short, I decided to add another little fact.  This article (and all the previous covered in this class) satisfy the XKCD phenomenon of wikipedia:

http://xkcd.com/903/

The text I'm referring to is when you hover over the comic with your mouse, and the message box pops up.

Proposal Reviews

That's right! Plural!

Review on Daniel Illescas:
http://www.cs.unm.edu/~bkraus/460/propReviewDanielIllescas.pdf

Review on Jan Monterrubio:
http://www.cs.unm.edu/~bkraus/460/propReviewJanMonterrubio.pdf

Thursday, January 26, 2012

On Agile Software Development

Here are the things I do like about Agile development:

  • Pair Programming
  • Sustainable development, able to maintain a constant pace
  • Close, daily co-operation between business people and developers
  • Face-to-face conversation is the best form of communication (co-location)
  • Projects are built around motivated individuals, who should be trusted
  • Continuous attention to technical excellence and good design
  • Simplicity

I've never really believed that a project can be defined from start to finish before any actual development takes place, and this development style takes to that belief well.  Since close contact and constant communication with the customer is embedded in this design, there will not be much room for error in the ways of the developer thinks it should work this way, and the customer really wanted it that way.  I feel that keeping the distance between customer and developer smaller is better.  There will be less obfuscation and motives to interfere with the project.  This reminds me of a joke by Michael Aulia on 22 November, 2007 in Jokes & Funny Stuffs:

http://www.cravingtech.com/software-development-joke.html

What I don't like about it:


  • Customer satisfaction by rapid delivery of useful software
  • Welcome changing requirements, even late in development
  • Working software is delivered frequently (weeks rather than months)
I love the idea of code that can handle changing requirements, I just don't like it when the requirements change.  This makes it feel to easy for the customer to change their mind halfway through, and I don't
want to have done work for nothing.  The rapid delivery doesn't sound too bad, but I always like to make
sure I'm done with something before I send it off.  Being pressured to deliver something on a weekly
basis sounds a bit fast for me.

Tuesday, January 24, 2012

On Use Case

I think that a Use Case as described in the Wikipedia article is a natural way to think about how a system works.  It lends itself to easily be described in the terms of interface, actor, and system.  These concepts can easily then be translated into a program.  I could easily imagine the use case image on the wiki page as a program.  The Client is a class that takes an instance of a Restaurant and the Restaurant interface describes methods like enter, pay, and make food.  There is a pool of Waiters that when a Client enters the Restaurant a Waiter is picked out with respect to load and work hours, and is then attached to the Client.  I'm not going to detail the whole image, but you get the idea.  I think this will be a useful resource for any developer, since it relates to how humans think of a system.

TrollQuest Timeline

This is the overall timeline for the full development of the TrollQuest game.  This timeline will span 12 weeks, and will give a guideline to the hopeful developers.

Week 1: Requirements:  What is expected in the final product?  How should the development process take place?  Come up with some ideas on how to make the game stand out from other MMORPGS.

Week 1.5: Modeling:  Come up with the plan on how best to implement the game.  This can follow the typical structure of the server to client based system, as many online games implement.  This includes what style of programming (agile pair ....) and what type of paradigm to use (MVC...).

Week 2: Begin Development: Create an XML converter and the basic framework for network communications (UDP).  Information about the XML converter and UDP will be detailed later in the spec.

Week 3: Development:  Create Models for the game, meaning items, characters and the such.  Create server controls for those who run the server to modify the game state while it is running.

Week 4: Development:  Create game engine.

Week 7: Development:  Create client GUI, game interface, and Scriptable Quests. (Also detailed later) Feature freeze date.

Week 9.5: Development:  Wrap up final stages of the game.

Week 10: Send out the game for user testing, and do documentation.

Week 11: Implement/fix due to user feedback from week 10. Market the game.

Week 12: Deployment & Delivery.

Each week the team will meet with the client for ½ hour / week x full group.

Friday, January 20, 2012

On Software Requirements

Software Requirements is a sub-field of Software engineering that deals with the elicitation, analysis, specification, and validation of requirements for software.



I think that having requirements for software is essential in the - what do I need the program to do - sake, and mostly helpful in the - how should I do it - sake.  We all understand how implementing things from a given set of requirements works, but one thing that I haven't seen much of are "non-functional" requirements.  I think that the customer does have some say in the non functional part, but should not have total control over how the code is written.  If the customer doesn't see the source code, then I think it is best left to the developers to come up with standards of code design.  Designers should always push for a design that is flexible given possible future.  There are other standards the designers should enforce, such as code style.  Where I work (unknown) we develop code.  I noticed that a lot of the older libraries have a lot of warnings.  It is my personal goal to have no warnings or errors during compilation and runtime.  So I talked with my boss, and we decided that in future projects we should enforce that all developers have the same warning/error settings on their IDE.  I think that something like that can be very helpful, because then the developers have come to an agreement on what defines and error or warning, and can all work on the same playing field.  If not, then some developers might introduce warnings that to themselves aren't warnings.  To others however they could be.  This was the case with the old libraries that I had.  I tend to have somewhat strict warnings, and follow them judiciously.

Proposition paragraph

There exists many massively multiplayer online role playing games, but none yet have adopted the culture of the troll genre.  I propose a game, that while still retaining the elements of an MMORPG, will add in the flavor of trolling the heck out of the user.  This game will be free to play, and open source.  Free to play, well, because who wants to pay to be trolled?  Unless of course we should have a subscription fee, so that they are being trolled while they play the troll game.  I strongly want it to be open source because the community is the best mind for developing the game, not a set group of individuals - since trolling is a community idea.

Here are some of the possibilities I mean by trolling the user.  For instance, each player can have a troll level.  There can also be merchants that have a suggested troll level, such that if the player does not meet this suggestion, then when "selling" things to the merchant they do not receive money from said merchant.  Also, the merchant could supply glorious items that cost 1 gold more than what the player has, at all times.  This game would be more of a Massively Multiplayer Online Troll Playing Game (MMOTPG).  There will also be many opportunities for the players to troll each other, of course.

The game itself would still be playable in terms of a normal MMORPG.  There will still be quests, dungeons, groups, character classes, and player versus player.  The main idea is to add some flavor into the game without making it unbearable to play.  Trolling will be a constant theme, so it is not unexpected.  If someone wants to play this game, they must be aware of the risks to their well being that lie ahead.

Wednesday, January 18, 2012

In response to reading the wikipedia article on Software Engineering:

You know I never really knew that Software Engineering was thought of possibly being a different degree than Computer Science.  To me SE was an integral part of CS.  I've programmed a lot during my time at UNM, and as a result I've tried to engineer it in the best way possible to my knowledge.  In a sense I've been doing a basic version of SE for almost every project I've worked on for classes, so for me SE is ingrained in everything I do for my degree.  To think of it as it's own degree is new to me, and I imagine it would have a lot of overlap with CS, but less on algorithms maybe.

On the whole subject of certification, I'm kind of worried that I have yet to obtain any of these certificates.  The idea seems popular enough.  Certification has not been stressed in class yet, so I wonder if it is something I should worry about.  I worked at Los Alamos a few summers ago, and one of the members on my team was into the idea of obtaining certificates.  I remember he had just started learning Linux management and in the end of the 9 week course he had a certificate in it.  He held many certifications, one of which was in java programming, and I felt that I was a better programmer.  This leads me to believe that these certificates aren't too hard to achieve, and aren't really worth anything.  I think a Masters in CS is worth more than any number of certificates.  They seem too easy to study hard for a few weeks, pass a test and get certified, then just forget everything - just to get a piece of resume candy.  It wouldn't be hard for me to get certified in a bunch of places, but the value of it has not been emphasized enough for me to care.

On SOPA:  It seems silly to shut down an ocean just because of some pirates.  Who are we to control the ocean of knowledge?