Programming Notes
satya - Sat Apr 07 2012 10:11:54 GMT-0400 (Eastern Daylight Time)
a designers dilemma
i have a thought in mind. I took a notebook and thought through it through a pencil. I think it will work. It is all in my mind. laid out in a map. I just have to implement it.
how can i pass it on to someone that can implement it without loosing the fidelity of my thought! what tools do I have?
satya - Sat Apr 07 2012 10:14:19 GMT-0400 (Eastern Daylight Time)
what if I do this
I create the java classes. roughly. create the methods. describe what should happen in each method.
then, Can someone else fill in the blanks. compile the code, test the code?
satya - Sat Apr 07 2012 10:15:39 GMT-0400 (Eastern Daylight Time)
Perhaps a white paper instead
what instead, if I just take into account all the possible options of the design and their alternatives and lay out a white paper with possible solutions. This should let someone help to implement it!!
satya - Sat Apr 07 2012 10:18:03 GMT-0400 (Eastern Daylight Time)
Here is an example, perhaps
/*
* Take the input post
* the keys are user defined fields
* the keys should be mapped to their storage keys
* use InsertStatement as a conduit to get this done
*/
public List<InsertStatement>
getInsertStatements(Map<String,String> submittedListRow)
{
return null;
}
satya - Sat Apr 07 2012 10:19:07 GMT-0400 (Eastern Daylight Time)
what about pure interfaces? will they help?
what about pure interfaces? will they help?
satya - Sat Apr 07 2012 10:29:35 GMT-0400 (Eastern Daylight Time)
I wonder if a 'crowd' can implement a class simultaneously!
I wonder if a 'crowd' can implement a class simultaneously!
satya - Sat Apr 07 2012 10:35:07 GMT-0400 (Eastern Daylight Time)
'Crystalization' is an important practice in 'work' and as well in 'programming'
ask me if you are curious!!
satya - Sat Apr 07 2012 10:35:38 GMT-0400 (Eastern Daylight Time)
yes I have a twitter account
satya - Sat Apr 07 2012 10:55:40 GMT-0400 (Eastern Daylight Time)
eclipse is just an incredible tool!!!
eclipse is just an incredible tool!!!
satya - Mon Apr 09 2012 09:50:19 GMT-0400 (Eastern Daylight Time)
wonder if there is a better way to put meaning into a map
//Map<StorageColumnName, StorageColumnValue>
private Map<String,String> attributeValues
= new HashMap<String,String>();
satya - Mon Apr 09 2012 12:21:48 GMT-0400 (Eastern Daylight Time)
Here are some notes on eclipse as you program in Java
satya - Mon Apr 09 2012 15:02:42 GMT-0400 (Eastern Daylight Time)
Use asserts for key validations on the state of a class
satya - Mon Apr 09 2012 15:07:06 GMT-0400 (Eastern Daylight Time)
You can do this with eclipse...
In a java function you can start typing
SQL
and then press ctrl-space. eclipse may prompt you that with
SQLQuote
and complete the possible class name for it. that's nice!!!
satya - Mon Apr 09 2012 15:12:26 GMT-0400 (Eastern Daylight Time)
State first Code next principle
write down your function names in your skeleton class. Document in English what each function is supposed to do. Then code it.
even when coding vocalize what you are doing in comments. then code it.
satya - Tue Apr 10 2012 10:48:57 GMT-0400 (Eastern Daylight Time)
The idea of classes help 'Work-Crystalization' idea
The idea of classes help 'Work-Crystalization' idea
satya - Tue Apr 10 2012 11:03:38 GMT-0400 (Eastern Daylight Time)
It will be nice to design classes such a way that MOST are testable through unit test cases
It will be nice to design classes such a way that MOST are testable through unit test cases
satya - Tue Apr 10 2012 11:49:15 GMT-0400 (Eastern Daylight Time)
May be not! look for key boundaries.
Provide test cases at those boundaries and that test should trickle down the lower classes and save you some time.