Monday, June 18, 2007

Cut hair


I never touch my hair for a long time because my living without aim.

http://www.cbf107.com.cn/images/longhair200706181.jpg http://www.cbf107.com.cn/images/longhair200706182.jpg

This half year , I'm still busying but nothing created or completed . At the same time ,time not stopped for waiting me -_- ~ sometimes, I could not expect to the further .

This time, i 'll back LanZhou for training the team of LanZhou office .So I cut my hair ,I want to pluck up my spirits and tidy the life of my own .

In this time .also ,i 'll spend more time for thinking the way of my future and i want to carry out the single journey when i back LanZhou .

Some friends as the same confuse as me .Any way, i think we have to deal with it by ourself .Maybe every thing will be fine measurable future~

Wednesday, June 13, 2007

Seven

This week i went to Metro Chengdu for studying english , i hope i can promote myself on english .

It's a long time that i used "Bing" for my english name .
(It is as same as my chinese name)

but the word is not existed in the west world .


The first thing ,i gave myself a new english name .

"Seven" ——"7"

Yes, you can call me "Seven Gao" right now and i like this name .

Many people ask me the same question "why is 7, why not 8 or others.
"

I have no idea .just love 7 ,May the week has 7 days , May be 7 is my luck number and May the website named "CBF107" .....

^_^

so there is no reason for the name , just remember it .

ok that's all .

You'll have to share

This is from Noah's google talk message for a long while .
What's the meaning?

From 2005

We did the Ajax classes , framework via ourself.(QJAX)
We did ORM via manual .(DataObjManage)
We also did users management and rights management alone . (WTSS)
...

Right now
Ajax.net 、Nettier 、Membership can do the same thing . and these are more easy and more credibility.

Of course , I can find the same segment
of ours ,but why ours' growth so slowly .

The world is open for everyone today , we must together others' idea,suggestion and different sound. Sometimes , i think we have to get others' helping .

Wow, what's i want to say ! Maybe that is the answer ~

That's all .

Saturday, April 28, 2007

Some advice for Nettier or other ORM framework


There are many ORM (
Object Relational Mapping) framework , e.g. Nettier ,Hibernate etc

We can use them very clear for building our DB layer
.and then CodeSmith can generate all of the code according to the database structure very easy.

Our going project used Nettier as DB Layer , but i in addition to another Layer named "Adapter" . VersaTran's developer can't understand the reason . so I throw my view below:

This is the Framework for our project.

http://www.cbf107.com/images/LayerAdapter20070428_1.gif

  1. Nettier DBLayer is generated via CodeSmith according to Data Base design.
  2. Adapter wrap NettierDBLayer providers’ function and it’ll be extend other function which belong to DBLayer and can’t generate by CodeSmith.NettierDBLayer and TripTrackerAdapter will accomplish the Data Object convert to Database (ORM)
  3. BusinessLayer will provide Business requirements for the concrete operation (e.g. budget calculate , schedule conversion)
  4. TripTrackerUI is the package for user interfaces and bound classes, the classes will direct invoke the functions from BusinessLayer.

This is the develop workflow:


http://www.cbf107.com/images/LayerAdapter20070428_2.gif

1. The UI developers work for user interface, they need be familiar with HTML, Javascript, CSS and some knowledge about UE (User Experience).

Also the developers have to know how to invoke the interface (function) which business layer provided.

(Of course, the simple, the better for the interfaces and functions)

Notice: The UI developers maybe didn’t know anything about Nettier, even what is Database, they just need know which entity and interface will be used.

2. The same as UI developers, the business layer developers will pay more attention to business realization (e.g. how to calculate budget according the condition from user entered ) , they don’t care about how to insert the data to database , they just need know which function(/interface) can store objects. (The function or interface is provided by DBLayer)

The DBLayer interface need clearly and simplify.

3. DBLayer developers must implement the objects (Entity) to database; they’ll provide the functions to business layer.


But Netter had provided the interfaces and the functions for database operations. Why we add adapter layer to gild the lily.

http://www.cbf107.com/images/LayerAdapter20070428_3.gif

At present:
  • Simplest interface for business layer

We used Netters for interact with database, but Netters includes multiple functions, the DBLayer developer need wrap them and provide the simplest interface which business layer need.

  • Extend by ourselves

Also, Netters db codes can auto generated via CodeSmith, but sometimes we need ourselves functions for directly operate the database.

E.g. (We add the procedure for query by one column, which column not indicated index, pk, fk)

In addition, from the community we know the netters also have some bugs; it’s hard to say we’ll be happened. So the Adapter will help us Flexible deal with it .

See http://community.codesmithtools.com/forums/30/ShowForum.aspx for a list of 501 bugs that need to be worked around. Or here for 149 features not implemented by NetTiers http://community.codesmithtools.com/forums/31/ShowForum.aspx.

Why not add ourselves function to Nettier DBLayer:

One day we change the database structure and then auto generate the code via CodeSmith, the code maybe also not include the function we added. So the extend is better than modify.

By the way, we can’t just put our extends function on the folder (package), because the function not just a function, they live relate with the entity. (OO)

On the other hand: The UI developers and Business developers needn’t know how to implement the Database operations.

  • To the further

One day maybe the newest Nettier or other ORM can be done and the database operations more effective. We need promote our DBLayer .we just do the fix for Adapter and not involve Business Layer and UI.

So if you also use Nettier or others framework for your project , i suggest use a Adapter to release coupling

Thursday, February 22, 2007

Fifth day in shanghai

Today, ding ding small b and me went to Old Temple of Town God.What a busy place, with so many people coming and going .

What a pity that small b had to go to his friend house for install Mac OS X halfway.

In the end ding ding and me went to Best Buy that is the first shop in shanghai.

Our back ticket is tomorrow morning and we'll finish our vacation .There are many opinions for this travel and I'll write these when i back Chengdu .


图像 “http://farm1.static.flickr.com/127/398689364_03221748d5_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/132/398689362_d3c88c287a_m.jpg” 因其本身有错无法显示。

Wednesday, February 21, 2007

Forth day in shanghai

We(ding ding and me) have very nice day in Zhou Zhuang .We took rowboat, eat a small fish,( it's very delicious), special we bought logical wine for small b ^_^.

 图像 “http://farm1.static.flickr.com/143/397714854_54c15dfa11_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/151/397714849_bbc60b4fef_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/168/397707226_7461fe8ac2_m.jpg” 因其本身有错无法显示。 

Tuesday, February 20, 2007

Third day in shanghai

We have a bad day in shanghai ,we had to buy the computer for my father's friend and we spent too much times to we hadn't times for playing .

In any event , we put down the big meals in Pizza Hut.

图像 “http://farm1.static.flickr.com/174/396514492_f5319782ac_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/170/396514501_dad858d2f0_m.jpg” 因其本身有错无法显示。

Monday, February 19, 2007

Second day in shanghai

Today we went to XuJiaHui (went to IKEA) and Shanghai Science Hall .we also had a grand time in Xin Tian Di .

I've really come to love shanghai deeply.

图像 “http://farm1.static.flickr.com/168/395343112_c12e9c36be_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/179/395352470_2fc931e1aa_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/187/395352453_95c8021afc_m.jpg” 因其本身有错无法显示。

图像 “http://farm1.static.flickr.com/158/395352465_b072b9cb6e_m.jpg” 因其本身有错无法显示。 图像 “http://farm1.static.flickr.com/183/395352456_d0caf6ae10_m.jpg” 因其本身有错无法显示。