Welcome, Guest. Please login or register.

Author Topic: potential PPC Amiga REAL CHEAP  (Read 140046 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline koaftder

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 2116
    • Show only replies by koaftder
    • http://koft.net
Re: Time to celebrate!
« Reply #674 from previous page: February 05, 2006, 08:47:44 PM »
Quote

Failure wrote:
Quote

adolescent wrote:
Sorry, you forgot the quotes which made quite a difference.


I'm afraid I have to disagree.  Quotes are useless crap which take up space in source code files.  I suppose you'll be wanting to throw semicolons and braces in there too?  My implementation is much cleaner and easy to read, whereas your implementation leads to confusion.

My point remains uncontested!

 :lol:


and you need that extra space in your source files too when half of your statements look like:

blah = system.IO.omg.wtf.somewhereinhereforsure.openfile
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #675 on: February 06, 2006, 03:50:11 AM »
Quote

koaftder wrote:
Quote

Failure wrote:
Quote

adolescent wrote:
Sorry, you forgot the quotes which made quite a difference.


I'm afraid I have to disagree.  Quotes are useless crap which take up space in source code files.  I suppose you'll be wanting to throw semicolons and braces in there too?  My implementation is much cleaner and easy to read, whereas your implementation leads to confusion.

My point remains uncontested!

 :lol:


and you need that extra space in your source files too when half of your statements look like:

blah = system.IO.omg.wtf.somewhereinhereforsure.openfile


if you hade put a:

imports System.IO.omg.wtf.somwhereinhereforsure

at the top of the module, you could have just typeD:

blah = openfile

from then on and any other function contained withing the library "System.IO.omg.wtf.somwhereinhereforsure"  :P
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #676 on: February 06, 2006, 04:03:10 AM »
@Waccoon

My poorly formatted code was because I didn't specify it as code so the tabs weren't processed by this PHP-based (C for the web) forum.

Code: [Select]
  char keystroke = getch();
   switch( keystroke ) {
     case 'a':
     case 'b':
     case 'c':
     case 'd':
       KeyABCDPressed();
       break;
     case 'e':
       KeyEPressed();
       break;
     default:
       UnknownKeyPressed();
       break;
   }            


vs. VB's

Code: [Select]
Dim keystroke as char = getch()
Select Case keystoke
    Case "a", "b", "c", "d"
        KeyABCDPressed()
    Case "e"
        KeyEPressed()
    Case Else
        UnknownKeyPressed()
End Select


Just another simple example of why C is ugly and not as simple to read...  Did I format it to your acceptable levels?  Oh I hope I did.   :crazy:
 

Offline adolescent

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: Time to celebrate!
« Reply #677 on: February 06, 2006, 06:05:32 AM »
@lou

It's all preference.  You like BASIC, everyone else likes C.  You say C sucks, everyone else says BASIC sucks.  Get it?

Time to move on.  Bye Amiga.org.  :(
 

Offline Waccoon

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1057
    • Show only replies by Waccoon
Re: Time to celebrate!
« Reply #678 on: February 06, 2006, 06:35:34 AM »
Quote
My poorly formatted code was because I didn't specify it as code so the tabs weren't processed by this PHP-based (C for the web) forum.

It was also because you intentionally put brackets in the wrong places.  You missed that part.

BTW, BBcode is a standard applicable to all languages, not just PHP.  Why point out that this forum is written using "C for the web" when your inability to use BBcode is to blame?

And, yes, the switch construct is a much better example.  Probably the best example, as everyone hates writing all those breaks.  However, if you need a fall-through structure, VB doesn't support that.  You have to write the same code several times over.  I use fall-through a lot to handle version control.
 

Offline koaftder

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 2116
    • Show only replies by koaftder
    • http://koft.net
Re: Time to celebrate!
« Reply #679 on: February 06, 2006, 09:28:57 AM »
Quote

lou_dias wrote:

Just another simple example of why C is ugly and not as simple to read...  Did I format it to your acceptable levels?  Oh I hope I did.   :crazy:


Why did you bother to do this? We all know your oppinion, most of us do not agree with it. C was not designed to cator to a programmer of your skill level.
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #680 on: February 06, 2006, 11:28:54 AM »
Quote

koaftder wrote:

Why did you bother to do this? We all know your oppinion, most of us do not agree with it. C was not designed to cator to a programmer of your skill level.


Because Waccoon is a pest.  Hence I wrote "@Waccoon".  I never said not liking C had to do with anything about skill-level just that it's prone to more logic errors that aren't as easy to find due to it's inherent fugliness...

Now then...

@Waccoon
How did I put brackets in the wrong places if that was all perfectly legal C?  You're reaching again.
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #681 on: February 06, 2006, 11:32:10 AM »
Quote

adolescent wrote:
@lou

It's all preference.  You like BASIC, everyone else likes C.  You say C sucks, everyone else says BASIC sucks.  Get it?


LOL

Quote
everyone else


"Everyone in this forum" - yes.  Well, when it comes to "real" Amiga programming, there isn't much of a choice but to program in C.  For the rest of the world - C sucks.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Time to celebrate!
« Reply #682 on: February 06, 2006, 11:47:17 AM »
Quote

lou_dias wrote:
@Waccoon

My poorly formatted code was because I didn't specify it as code so the tabs weren't processed by this PHP-based (C for the web) forum.

Code: [Select]
  char keystroke = getch();
   switch( keystroke ) {
     case 'a':
     case 'b':
     case 'c':
     case 'd':
       KeyABCDPressed();
       break;
     case 'e':
       KeyEPressed();
       break;
     default:
       UnknownKeyPressed();
       break;
   }            


vs. VB's

Code: [Select]
Dim keystroke as char = getch()
Select Case keystoke
    Case "a", "b", "c", "d"
        KeyABCDPressed()
    Case "e"
        KeyEPressed()
    Case Else
        UnknownKeyPressed()
End Select




Personally I don't think the VB one is easier to read. For a start, why can't  it just be "keystroke as char = getch()" and why does it have to be "Select Case keystroke" and not just "Select keystroke" ? Why "Case Else" instead of just "Else" ? That would be even easier, wouldn't it? Then you think, "why do I even need this 'as' in keystroke as char = getch()?", when "char keystroke = getch()" is even easier still...

The only nice thing I see in the VB script is the case range concatenation, which saves space. Oh but wait, it was exactly the space saving leading to compressed up gnarly looking code on terminals you were lambasting C for, wasn't it? :-P
int p; // A
 

Offline koaftder

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 2116
    • Show only replies by koaftder
    • http://koft.net
Re: Time to celebrate!
« Reply #683 on: February 06, 2006, 12:39:08 PM »
Quote

lou_dias wrote:
Quote

koaftder wrote:

Why did you bother to do this? We all know your oppinion, most of us do not agree with it. C was not designed to cator to a programmer of your skill level.


Because Waccoon is a pest.  Hence I wrote "@Waccoon".  I never said not liking C had to do with anything about skill-level just that it's prone to more logic errors that aren't as easy to find due to it's inherent fugliness...

Now then...

@Waccoon
How did I put brackets in the wrong places if that was all perfectly legal C?  You're reaching again.


All i'm saying is that nobody cares... This is the kind of thread that after reading, it's quite possible for one to know less than they did before they started reading it.
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #684 on: February 06, 2006, 05:36:57 PM »
Quote

koaftder wrote:

All i'm saying is that nobody cares... This is the kind of thread that after reading, it's quite possible for one to know less than they did before they started reading it.


Yes and all I'm saying is that he/it repeatedly goes out of his way to critic anything I say and take me out of context and twist what I was really trying to say in another direction.  Hence, I will post simply to spite him.

PS,
Reading this thread is OPTIONAL...so is posting in it.
 

  • Guest
Re: Time to celebrate!
« Reply #685 on: February 06, 2006, 07:11:09 PM »
Quote
"Everyone in this forum" - yes. Well, when it comes to "real" Amiga programming, there isn't much of a choice but to program in C. For the rest of the world - C sucks.


When it comes to to real programming there is no choice but C, full stop.

For the real world BASIC is a little noddy language for people who have learning difficulties.
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #686 on: February 07, 2006, 03:47:27 AM »
Quote

mdma wrote:
Quote
"Everyone in this forum" - yes. Well, when it comes to "real" Amiga programming, there isn't much of a choice but to program in C. For the rest of the world - C sucks.


When it comes to to real programming there is no choice but C, full stop.

For the real world BASIC is a little noddy language for people who have learning difficulties.


I'm assuming you mean as opposed to fake programming...
That or you fall into the category of never experiencing .NET.
 

Offline coldfish

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 731
    • Show only replies by coldfish
Re: Time to celebrate!
« Reply #687 on: February 07, 2006, 07:21:43 AM »
by koaftder:
Quote
All i'm saying is that nobody cares... This is the kind of thread that after reading, it's quite possible for one to know less than they did before they started reading it.


Yeah, but the pocket-protector rattling is almost entertaining.

Keep it up fellas!
 

Offline Louis DiasTopic starter

Re: Time to celebrate!
« Reply #688 on: February 07, 2006, 05:12:58 PM »
Quote

coldfish wrote:
by koaftder:
Quote
All i'm saying is that nobody cares... This is the kind of thread that after reading, it's quite possible for one to know less than they did before they started reading it.


Yeah, but the pocket-protector rattling is almost entertaining.

Keep it up fellas!


LOL, exactly my point about the only people that prefer C!  :lol:
 

Offline justthatgood

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 579
  • Country: us
    • Show only replies by justthatgood
Re: Time to celebrate!
« Reply #689 on: February 07, 2006, 05:16:03 PM »
But Geeks rock though.

And I'm still getting a XBox 360 over a Revolution, unless they give me one for FREE.
[color=008000]Pluto[/color]:Amiga4KD- 64040/16megs/1GB WD/PAR 2150/1942/WB3.0,3.1,3.9
[color=800080]Amanda[/color]:Amiga2KHD/A2620/8MegSupraRam2k/A2091/VLab