• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

What's your programming style???

MrSeanKon

New Member
Joined
Nov 14, 2006
Messages
267 (0.04/day)
Location
Athens in love with Anna :)
Post statements to clarify:

Code:
j=5;
k=4;
for (i=1; i<=10; i++)
{
      j++;
      k=i+j;
}
 

d44ve

New Member
Joined
Apr 16, 2007
Messages
2,520 (0.41/day)
Processor Intel E6600 @ 4.2GHZ Wo0t!
Motherboard ASUS Striker Extreme & eVGA 680i A1
Cooling Phase Change !!
Memory OCZ SLI 1066MHZ (2GB)
Video Card(s) EVGA 8800 GTX
Storage Western Digital 320 GB
Case Antec 900
Power Supply Lian-Li V2000
Software Vista Ultimate
I usually am in shorts and a t-shirt, but it all depends..... sometimes just my boxers.


Sorry, lame joke :)
 
Joined
Sep 27, 2005
Messages
2,481 (0.37/day)
Post statements to clarify:

Code:
j=5;
k=4;
for (i=1; i<=10; i++)
{
      j++;
      k=i+j;
}

Umm that really doesnt look like a style to me.
Just a simple For Loop.

Unless you mean your organization style.
Then mine is very similar to yours.

For (int i = 0; i <= 100; i++)
{
if (i = 0) Then
int k = i;
else
int k = 100;
}

I like to have my code organized and comments are a must; otherwise it is hard to debug and know exactly what is going on (esp. when you only do 1 or a few modules).


I usually am in shorts and a t-shirt, but it all depends..... sometimes just my boxers.


Sorry, lame joke :)

Damn you are lucky. I am in dress clothes doing this stuff (well now its Crystal Reports - which has a crappy Basic backend that is half assed).
 

d44ve

New Member
Joined
Apr 16, 2007
Messages
2,520 (0.41/day)
Processor Intel E6600 @ 4.2GHZ Wo0t!
Motherboard ASUS Striker Extreme & eVGA 680i A1
Cooling Phase Change !!
Memory OCZ SLI 1066MHZ (2GB)
Video Card(s) EVGA 8800 GTX
Storage Western Digital 320 GB
Case Antec 900
Power Supply Lian-Li V2000
Software Vista Ultimate
I hate Crystal Reports =\
 
Joined
Sep 27, 2005
Messages
2,481 (0.37/day)
I hate Crystal Reports =\

Agreed.
I dislike it for many reasons, but my biggest problem with it is how it links multiple stored procedures (known as Commands). The left and right joins dont work the way they should (lol).

Also, when you write back end logic, your very limited to what you could do.
I am suprised that you could use a switch statement, but I miss my for each loop :(
 
Joined
Jul 1, 2005
Messages
5,197 (0.76/day)
Location
Kansas City, KS
System Name Dell XPS 15 9560
Processor I7-7700HQ
Memory 32GB DDR4
Video Card(s) GTX 1050/1080 Ti
Storage 1TB SSD
Display(s) 2x Dell P2715Q/4k Internal
Case Razer Core
Audio Device(s) Creative E5/Objective 2 Amp/Senn HD650
Mouse Logitech Proteus Core
Keyboard Logitech G910
Code:
<html>
<head>
<title>meh.</title>
</head>
<body>
<p>BLAH</p>
</body>
</html>

Thats usually as far as I get in notebad before I get bored from lack of content to actually build a web page around. :banghead:


You'd love my VB code though.

I made like a 65 line if then statement. It was cool.
 

MrSeanKon

New Member
Joined
Nov 14, 2006
Messages
267 (0.04/day)
Location
Athens in love with Anna :)
Umm that really doesnt look like a style to me.
Just a simple For Loop.
Let me be more specific.
Instead of
Code:
for (i=1; i<=50; i++)
{
    statements
}

some programmers prefer this:

Code:
for (i=1; i<=50; i++){

    statements
}

or this one:

Code:
for (i=1; i<=50; i++)
    {
          statements
     }
 
Top