Source Headers

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Source Headers

Post by Killswitch »

I usually start all of my programs with a small header, like this:

Code: Select all

;\\------------------------------
;\\-Name-------------------------
;\\------------------------------
It's not done me any harm, but I'm looking to change to a format that's more descriptive and a little better looking. Any suggestions?
Last edited by Killswitch on Mon Jun 18, 2007 5:02 pm, edited 4 times in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Code: Select all

; ________________________________________________
;    Name
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Thats what I use...

Code: Select all

;##############################################
;## milan1612 ## milan1612 [at] gmx [dot] de ##
;##############################################
Windows 7 & PureBasic 4.4
User avatar
Demivec
Addict
Addict
Posts: 4267
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

Code: Select all

;// PureBasic Source File
;// File:  3dGame working 17d.pb
;// Vers:  4.10 beta2
;// Desc:  Action packed 3D-game with multiple levels and perspectives
;// Date:  04/18/2007
;// Auth:  Demivec
The information in the example is hypothetical by the way.

As regarding "style" I think it just needs to catch your attention. The above is given a different format and font because of the ";/" at the beginning (I'm using jaPBe v3.6.5.510). Otherwise take your pick of border punctuation lines (###,:::,---,***,___,!!!,...,<<<,>>>,===,^^^,%%%,+++.\\\.///). :wink:

Yea, I know the example is a few fore lines than what you'd typically use but it sure saves the memory when looking at a file.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Why not drop it alltogether?

Apart from that, I always use a space after ; because I think it looks less cramped.
Post Reply