POV-Ray : Newsgroups : povray.off-topic : Coding in ___ is like ___ Server Time
5 Sep 2024 01:19:12 EDT (-0400)
  Coding in ___ is like ___ (Message 7 to 16 of 66)  
<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Darren New
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 17:58:58
Message: <4b8700b2$1@news.povray.org>
Kevin Wampler wrote:
> evidence for the need for better error messages 

I was actually pretty impressed by the C# IDE from MS. I wrote

void do_it(int a, int b, int c = 0) { ... }

and the error message wasn't ") or , expected" or "syntax error", but rather 
a pointer to the = and the message "C# does not support default arguments."

I was also impressed when I started up my program under test in full screen 
and the IDE bumped its debugger windows over to the second screen and put 
them back when the program exited. Cool attention to detail.  Not that this 
has anything to do with the current thread.

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

From: Kevin Wampler
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 18:03:33
Message: <4b8701c5$1@news.povray.org>
On 02/25/2010 02:58 PM, Darren New wrote:
> Kevin Wampler wrote:
>> evidence for the need for better error messages
>
> I was actually pretty impressed by the C# IDE from MS. I wrote
>

How have you liked C# so far?  I last tried it when it was a pretty new 
language and it came across as a slightly altered version of Java, but I 
imagine it's changed a fair bit since then.


Post a reply to this message

From: Warp
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 18:21:16
Message: <4b8705ec@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> I was actually pretty impressed by the C# IDE from MS. I wrote

> void do_it(int a, int b, int c = 0) { ... }

> and the error message wasn't ") or , expected" or "syntax error", but rather 
> a pointer to the = and the message "C# does not support default arguments."

  But is that kind of message the rule or the exception?

  And it's not like gcc didn't have similar-sounding error messages:

error: ISO C++ forbids declaration of 'x' with no type

-- 
                                                          - Warp


Post a reply to this message

From: Jim Henderson
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 20:20:47
Message: <4b8721ef$1@news.povray.org>
On Thu, 25 Feb 2010 13:39:25 -0800, Darren New wrote:

> One of the better ones I've seen.
> 
> http://web.mit.edu/~axch/www/writing_rant.html

He missed "Pseudocode", which I'd write as:

Coding in pseudocode is like a metaphor.

;-)

Jim


Post a reply to this message

From: Kevin Wampler
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 22:15:40
Message: <4b873cdc$1@news.povray.org>
On 02/25/2010 05:20 PM, Jim Henderson wrote:
>> http://web.mit.edu/~axch/www/writing_rant.html
>
> He missed "Pseudocode", which I'd write as:
>
> Coding in pseudocode is like a metaphor.

I like it! (although given your sentence construction shouldn't that be 
"simile", or alternatively "Coding in pseudocode is a metaphor"?)


Post a reply to this message

From: Darren New
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 23:03:26
Message: <4b87480e$1@news.povray.org>
Kevin Wampler wrote:
> How have you liked C# so far? 

I do. I've been using it on and off from early on.

> I last tried it when it was a pretty new 
> language and it came across as a slightly altered version of Java, 

Well, at first glance it looks like that, but deeper in it has a whole lot 
of good stuff Java doesn't. Until you start going into complex stuff, it's 
just "Java, fixed."  Once you start trying to do something difficult (like 
access to native languages, deployment, web scripts, generating code at 
run-time, etc) it's way better.

> imagine it's changed a fair bit since then.

Indeed it has. C# 1.0 was sort of "Java, improved."  C# 3.x by now has all 
kinds of goodies in it that Java lacks.

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

From: Darren New
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 23:06:45
Message: <4b8748d5$1@news.povray.org>
Warp wrote:
>   But is that kind of message the rule or the exception?

The error messages are all good, but I usually don't get an error at compile 
time because the IDE puts a red squiggly under compile-time errors and a 
green or blue squiggly for warnings, as you type. The IDE is really an order 
of magnitude better than anything else I've ever used.

That was just surprising, because MS anticipated that someone would do that 
and special-cased the parser just to handle a common error message.

>   And it's not like gcc didn't have similar-sounding error messages:
> error: ISO C++ forbids declaration of 'x' with no type

I've gotten a few of those and not understood them, actually. I don't 
remember what I had, but having something more along the lines of "you 
forgot an #include" would be a better error message, I think. :-)

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

From: Jim Henderson
Subject: Re: Coding in ___ is like ___
Date: 25 Feb 2010 23:34:45
Message: <4b874f65$1@news.povray.org>
On Thu, 25 Feb 2010 19:15:40 -0800, Kevin Wampler wrote:

> On 02/25/2010 05:20 PM, Jim Henderson wrote:
>>> http://web.mit.edu/~axch/www/writing_rant.html
>>
>> He missed "Pseudocode", which I'd write as:
>>
>> Coding in pseudocode is like a metaphor.
> 
> I like it! (although given your sentence construction shouldn't that be
> "simile", or alternatively "Coding in pseudocode is a metaphor"?)

Technically, I guess "simile" would be correct there - I always get the 
two mixed up.  :-)

Jim


Post a reply to this message

From: Kevin Wampler
Subject: Re: Coding in ___ is like ___
Date: 26 Feb 2010 02:11:43
Message: <4b87742f$1@news.povray.org>
Jim Henderson wrote:
> On Thu, 25 Feb 2010 19:15:40 -0800, Kevin Wampler wrote:
> 
>> On 02/25/2010 05:20 PM, Jim Henderson wrote:
>>>> http://web.mit.edu/~axch/www/writing_rant.html
>>> He missed "Pseudocode", which I'd write as:
>>>
>>> Coding in pseudocode is like a metaphor.
>> I like it! (although given your sentence construction shouldn't that be
>> "simile", or alternatively "Coding in pseudocode is a metaphor"?)
> 
> Technically, I guess "simile" would be correct there - I always get the 
> two mixed up.  :-)

At least I have something to show for all the effort my teachers spent 
hammering the difference into my head!


Post a reply to this message

From: Kevin Wampler
Subject: Re: Coding in ___ is like ___
Date: 26 Feb 2010 02:13:49
Message: <4b8774ad$1@news.povray.org>
Darren New wrote:
> Kevin Wampler wrote:
>> How have you liked C# so far? 
> 
> I do. I've been using it on and off from early on.
> 
>> I last tried it when it was a pretty new language and it came across 
>> as a slightly altered version of Java, 
> 
> Well, at first glance it looks like that, but deeper in it has a whole 
> lot of good stuff Java doesn't. Until you start going into complex 
> stuff, it's just "Java, fixed."  Once you start trying to do something 
> difficult (like access to native languages, deployment, web scripts, 
> generating code at run-time, etc) it's way better.

Makes sense.  I think the runtime code generation was what I was 
particularly interested in, and I'm pretty sure it didn't have much in 
the way of that when I last looked at it.  Now that I have Visual Studio 
maybe I'll take a look at it again sometime.


Post a reply to this message

<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.