Monday, January 31, 2005

Sorry to all... this week will be quite busy for me... so there will be no blog time available for me... maybe some late nite post... but surelly nothing until next week.

Thursday, January 27, 2005

Delphi Installation Organization Part 2

Part2: Level 1 Folders and the _Win32 folder.

Today I will explain in a flash the main purpose of each first level folder, and some of the subfolders of them.
Lets begin with it !

_DotNET
This folder holds all related to DotNET.
_Win32
As you suposed this folder holds all related to Win32.
Component Library
This folder holds all original Component or Component packs sources. It does not matter if Win32 or DotNET.
Documents
All documentation,FAQ, etc.
Experts
Any Expert you may install for Delphi should be located here.
Programs
Any program related to Delphi or needed during developing should live here. As for example resource editors, database managers, etc.
Settings
All settings stored for the Delphi IDE stays in here. This folder is very important because it will hold al registry settings and files stored so you will be able to setup your delphi in a minute.

Ok.. I just explained the first level of the G:_BDS folder. Ok.. some names maybe sound weird to you.. but that is my way for setting folder names, you can of course use your own style of naming but I advice you to mantain the philosophy of each folder. Why the use of underscores "_" in some folders. Well.. underscores are just for sorting. I wanted to appear my both most daily used folders of all this first level at the very beggining of the tree.
I would like to jump out from the DotNET part as I am a rookie on this, the folders created at this level are just a little copy from the used at the _Win32 folder that I will coment stright away.

_bpl
All bpl of all third party component packages are located here.That means that no bpl other than of course installed by Delphi itself should be located outside this folder.This folder should be on the environment path, and should be setup on delphi to be the package output directory, but this will be explained in another post.
_Consts
Well. Depending on the targeting country of your software you may want to have the delphi consts translated in here. Many Delphi related web pages offer the basic consts to be able to be downloaded. This files should be placed here. Of course, this path should be set at the most top level of the library path at the compiler configuration, but this also will be explained in another post.
_dcp
All dcp as with in the case of bpl will be located and placed here. As with bpl this folder should be on the environment path and should be setup om delphi to be the DCP output directory.
_library
Here is where I place all third party components sources. I create inside this folder, subfolders for the diferent component packs as for example and Albert Research folder for my own components, an GraphicEx for the components of Mike Lischke, etc. This folder and each subfolder should be added at the Delphi Options, library path and browsing path.
_library dcu
This folder will hold all dcu files that will be created by compiling any of the packages of the compoment sources of the _library folder. Having in mind this, you have then of course set the Unit output directory of each package you are compiling, to this folder. Doing so we will have allways all our _Library folder clean of the dcu files.
_library test
There is not much to explain about this folder. This folder should be added at the Delphi options Library Path, and browsing path, and I use it to just do fast installs of freeware components I donwload from the internet, to just test them. If I like them then I just move them to a folder Inside the _library folder if not i delete them from here and of course I delete the the bpl's and dcp's generated at the _bpl and _dcp. Whe have to stay always tidy :-).

Well. There are some more folders and Delphi configurations considerations that I will explain in the next post of this blog. Mmm.. today is wednesday so maybe on friday night or saturday I will throw some lines. Have a nice time.

Monday, January 24, 2005

Delphi Installation Organization Part.1

Part 1: Introduction
Since long time ago, I wanted to explain to other "delphiers" how I have organized my Delphi and how I store the settings so when I reinstall my OS.. I have set my Delphi in a few minutes as it was before reinstalling the O.S., so time has come and I will explain.
Let's start from the very beggining that is the partitioning of the Hard Disk,
I have partitioned my hard disk in serveral partitions... (one thing I recomend to everyone to do) . Normally I have C,D,E,G,X partitions. Let me explain the uses I do for the Partitions.
C= OS.. In this partition is where the OS is installed. Nothing else.
D=Programs. All programs are installed in here.. (Delphi for expample would be installed on D:\Program Files\Borland\...)
E=Internet. Small partition for Internet server ftp...
G=Data. This is the most important for me. All my Projects, Data, Documents are in here.
X=BackUps. Entire partition is Compressed. All Backups go to here.

Why the Use of diferent partitions for diferent purposes? Quite easy.. Everyone surelly know about this... after some months.. about half a year your OS get "dirty" and messed up and you start beginning to think to reinstall it. For me it is as easy as chewing a gum.. Because of all this partitioning I only need to copy my "documents and Settings" data to another folder and reinstall the os by deleting completely the C partition where it is only the OS data... all other data is safelly stored in the other partitions.
Well after explaing all this.. I start with my Delphi folder organization. My Delphi settings "live" in the G: partition... so you can substitute this G: with the letter of the partition you may use.
I have Two folders in the G: Partition for Delphi, and just to finish this Article (Part 1) I will enumerate the most important and explain both:

G:\BDS Projects is the folder where I store all my delphi projects. No need to explain the folder hierarchy as it is not important.


G:\BDS is the folder where I have stored all relative to Delphi. Folder hierarchy is as follows:

|-- G:\BDS
|
| |-- G:\BDS\_DotNET
| |
| | |-- G:\BDS\_DotNET\_library
| | |
| | |-- G:\BDS\_DotNET\_library dcuil
| | |
| | |-- G:\BDS\_DotNET\_library test
| | |
| |-- G:\BDS\_Win32
| |
| | |-- G:\BDS\_Win32\_bpl
| | |
| | |-- G:\BDS\_Win32\_Consts
| | |
| | |-- G:\BDS\_Win32\_dcp
| | |
| | |-- G:\BDS\_Win32\_library
| | |
| | |-- G:\BDS\_Win32\_library dcu
| | |
| | |-- G:\BDS\_Win32\_library test
| | |
| |-- G:\BDS\Component Library
| |
| | |-- G:\BDS\Component Library\Albert Research
| | |
| | |-- G:\BDS\Component Library\GraphicEx
| | |
| | |-- G:\BDS\Component Library\KBMMemTable
| | |
| |-- G:\BDS\Documents
| |
| |-- G:\BDS\Experts
| |
| | |-- G:\BDS\Experts\GExperts
| | |
| |-- G:\BDS\Programs
| |
| |-- G:\BDS\Settings
| |
| | |-- G:\BDS\Settings\Bin
| | |
| | |-- G:\BDS\Settings\Delphi 2005 Examples
| | |
| | |-- G:\BDS\Settings\Objrepos
| | |
| | |-- G:\BDS\Settings\Patches
| | |
| | |-- G:\BDS\Settings\Path
| | |
| | |-- G:\BDS\Settings\Registry
| | |
| | |-- G:\BDS\Settings\Settings Profile

and that was it for today. Tomorrow or after tomorrow I will explain the main purpose of some folders in Part 2 of this article. See you then...



Friday, January 21, 2005

Another Day...

Yep... another day has passed... and today I am quite sad... Delphi 2005 is not what Delphi was before... Before everything was great.. Delphi worked fast and fantastic... now it is buggy and unstable. Nothing works as it was before... I am reading posts at many newsgroups and blogs... and only see the borlanders not adminiting the truth... D2005 needs an urgent remake... They are many interesting new features compared with D7... but quite a lot of them doesn't work.. refactoring is Buggy... very buggy and yes... with Sp1 installed (Borlanders always like to ask if the buggs are after Sp1 installed... they think that a 25Mg update would fix this... funny..).
Working with D2005 has turned to be a pain in the a***. Many codeinsight well.. what ever is named the think that appears when you press CTRL+SPACE.. doesn't work anymore.. with D7 you allways got all constants declared all units that where on the uses clause of the unit you where editing/coding showing up with it.. now if it finds a 60% you could be happy. Many features have been lost... it could be a so big list that I don't want to type it because I love Delphi...
Please Borland... I only expect you to love Delphi as I do... it deserves a better shape than you have given it at the 2005 version.

Thursday, January 20, 2005

A little introduction

Well... now it is quite late... but I could not resist today to make a post to my blog. It is something new that amazes me.
First of all... let me introduce myself. I am a Programmer since 1985.. those old days with assembler with my beloved Z80... how easy live was those times... :-). I am a Delphi Programmer since 1997, I really started from a scratch.. I had no Idea of Pascal... oh... I remember those days where I did not know If I had to put a begin and a end to my code. I have developed some components and published them to some Delphi portals. ARCalendar,ARStoreForm,ARMVEdit are some of them.... yes all starting with AR (Albert Research)... my beloved Nick since the very begging. So that will be it for today... Anyway I rather think I am writting all this for my own because surelly nobody will read my blog...

Wednesday, January 19, 2005

My First Blog Entry

Well... maybe this will be te typical "HelloWorld" stuff... but this is a must. :-) My very first blog Entry... Hello World
I am a Delphi Programmer interested in many things I will try to explain to all of you around the world that would dare to read my bad english.
So there it is... I will sincerelly try to be updated every day... let's se what happens..
My first thank you should go to Mrs/Miss Gloria Ho that Blogs here at http://gloriaho.blogspot.com/ , who was really nice and fast to give away one of her invites for gmail.. thank you very much again gloria.