The World's Simplest Code Generator
secretGeek .:dot Nuts about dot Net:.
home .: about .: sign up .: sitemap .: secretGeek RSS

The World's Simplest Code Generator

Are you a programmer? Meet your new best friend.

Update! New version out now: the World's 2nd Simplest Code Generator

the worlds simplest code generator

Enter comma separated data into the first box. Type a 'Pattern' into the second box. Press 'Calculate' and Voila! The data and the pattern are merged.



Merge These Rows

Into This Pattern



Result


If you use this generator, you might find it useful to store your Patterns in the comment area below...





'locus' on Thu, 28 Apr 2005 21:30:58 GMT, sez:

In the first box, put details of a table,
e.g.
UserId, Long
UserName, String
Password, String
etc...

Then use patterns like this:

Dim _$1 as $2

and

_$1 = .Item("$1")

or

isNull($1,0) as '$1',



'secretGeek' on Thu, 28 Apr 2005 21:34:36 GMT, sez:

Create property Getters and Setters with this pattern:

Public Property $1() As $2
Get
Return _$1
End Get
Set(ByVal Value As $2)
_$1 = Value
End Set
End Property

(Where the first box has, for example:
UserId, Long
UserName, String
)



'secretGeek' on Thu, 28 Apr 2005 22:17:11 GMT, sez:

Pattern for generating Insert statements from data:

Insert into tblMasterCombo (TypeID, Binary, Description) values('$1',$2,'$3')



'Strikes' on Fri, 29 Apr 2005 07:28:23 GMT, sez:

Very handy. Thanks for that.

Also, have you seen QuickCode?: http://www.dvxp.com/en/QuickCode.aspx.
To use your default $1 loves $2 pattern, "I,Quickcode"... Man does it save me some time...



'blameMike' on Fri, 29 Apr 2005 09:38:11 GMT, sez:

Awesome!



'aa' on Tue, 03 May 2005 01:36:56 GMT, sez:

I'm,you're,ok


$1 $3 $2 $3
$2 $3 $1 not $3
$1 not $3 $2 not $3
$1 $3 $2 not $3



'Overlook Hotel Ballroom Waiter' on Wed, 04 May 2005 08:25:46 GMT, sez:

properties in C#:

private $2 _$1;
public $2 $1
{
get { return _$1; }
set { _$1 = value; }
}

Input:
Number,int
Name,string



'comparing similar records' on Wed, 11 May 2005 02:53:50 GMT, sez:

Select
:foreach
h1.$1 as '1:$1', h2.$1 as '2:$1',
:end
from $Table h1
inner join $Table h2
on h1.$matchcol = h2.$matchcol
where h1.$keycol <> h2.$keycol
and
h1.$timecol > h2.$timecol



'Paul Stovell' on Fri, 13 May 2005 02:23:43 GMT, sez:

I needed to add columns to 90+ tables in a database but ignore others. I ran sp_tables, copied the list of table names as the input, and used

alter table $1
add [columnName] datetime not null

As the pattern. Woohoo!



'Harry' on Fri, 17 Jun 2005 17:50:42 GMT, sez:

--------------------------

string,Username
string,Password
long,ID

--------------------------

private $1 m_$2;

public $1 $2
{
get {return m_$2;}
set {m_$2 = value;}
}

--------------------------

private string m_Username;

public string Username
{
get {return m_Username;}
set {m_Username = value;}
}
private string m_Password;

public string Password
{
get {return m_Password;}
set {m_Password = value;}
}
private long m_ID;

public long ID
{
get {return m_ID;}
set {m_ID = value;}
}



'Harry' on Fri, 17 Jun 2005 17:52:47 GMT, sez:

This is really brilliant.




name


website (optional)


enter the word:
 

comment (HTML not allowed)


All viewpoints welcome. But the right to delete any post for any reason is reserved. Don't make me do it. Comments may be republished, emailed to your loved ones or printed and used as toilet paper. Who reads this legal bit anyhow?

TimeSnapper is a life analysis system that stores and plays-back your computer use. It makes timesheet recording a breeze, helps you recover lost work and shows you how to sharpen your act.

TimeSnapper won last year's Developer Competition at Larkware.com, and is used by over 10,000 people.

Articles

Alan Kay on 'The Camel has Two Humps' Alan Kay on 'The Camel has Two Humps'
is the music inside the piano? is the music inside the piano?
The Bluffer's Guide To Yegge: Business Requirements R Bullsh*t The Bluffer's Guide To Yegge: Business Requirements R Bullsh*t
Prototype Ready for Launch Prototype Ready for Launch
Idea: a poor man's eye-tracking heatmap for win forms Idea: a poor man's eye-tracking heatmap for win forms
'The Register' seems to have plagiarised Mary Jo Foley 'The Register' seems to have plagiarised Mary Jo Foley
A magic goal for software businesses A magic goal for software businesses
A to Z of Software Methodologies A to Z of Software Methodologies
TimeSnapper in Music! TimeSnapper in Music!
Fixing problems can give you a glimpse of something terrible Fixing problems can give you a glimpse of something terrible
Web Tablet: Toward Less Complexity Web Tablet: Toward Less Complexity
Do they store the code for TFS in TFS? Do they store the code for TFS in TFS?
Sudden TimeSnapper Discount! Sudden TimeSnapper Discount!
How Can Microsoft Beat Google? How Can Microsoft Beat Google?
TimeSnapper 3.1: Attack of the the Red/Green Stripes TimeSnapper 3.1: Attack of the the Red/Green Stripes
21 tools used in our MicroISV 21 tools used in our MicroISV
Lost Treasures of the DOS World: tree! Lost Treasures of the DOS World: tree!
The Virtual Machine Machine and the Virtual Virtual Machine The Virtual Machine Machine and the Virtual Virtual Machine
Should Linq To Sql Go Should Linq To Sql Go "Open Source"?
Redux: New Synchronisation Idea Overlooked By Microsoft Redux: New Synchronisation Idea Overlooked By Microsoft
New Synchronisation Idea Overlooked By Microsoft Live team New Synchronisation Idea Overlooked By Microsoft Live team
Visual Studio UX Taskforce, Office UX Taskforce... etc. Visual Studio UX Taskforce, Office UX Taskforce... etc.
How to be Jeff Atwood How to be Jeff Atwood

Archives .: secretGeek :: Complete Archives :.
25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Top 10 SecretGeek articles Top 10 SecretGeek articles

Downloads

TimeSnapper -- Automated Screenshot Journal TimeSnapper.com    
Version 3.1: instant productivity profiles

ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Next Action NextAction
Managing the top of your mind



[powered by Google] 


World's Simplest Code Generator (html edition) World's Simplest Code Generator
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker
How to be depressed How to be depressed
You are not inadequate.



Recommended Reading

The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Reginald Braithwaite
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Joel Pobar
Eric Sink
Joel Spolsky
Des Traynor

Aggregated Links

programming.reddit.com
dzone
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
n links today
new and notable
morning coffee
learning .net
weekly link post
(my del.icio.us account)

LinkedIn profile
 
home .: about .: sign up .: sitemap .: secretGeek RSS .: © Leon Bambrick 2003 .: privacy

home .: about .: sign up .: sitemap .: RSS .: © Leon Bambrick 2003 .: privacy