Author Topic: AutoCAD DevBlog  (Read 2903 times)

0 Members and 1 Guest are viewing this topic.

kaefer

  • Swamp Rat
  • Posts: 535
Re: AutoCAD DevBlog
« Reply #15 on: April 20, 2012, 09:39:47 am »
I think your readers
could really do without the line numbers in code, which prevents them
from copying/pasting it into an IDE.

That charge could be leveled at this forum too, and it's a minor inconvenience at that (think ALT-SHIFT-Arrow). On the other hand, a reference to a line number can be handy in case someone is actually commenting on a piece of code.

LE

  • Water Moccasin
  • Posts: 1552
Re: AutoCAD DevBlog
« Reply #16 on: April 20, 2012, 09:51:37 am »
some 2cts...

- Navigation is not easy - every time i click on the code area or anywhere it goes to the top of the page.
- Can you guys provide a file download too?
- Or add a 'Select code' or something similar, to be able to grab it?

TT

  • Swamp Rat
  • Posts: 807
Re: AutoCAD DevBlog
« Reply #17 on: April 20, 2012, 01:47:48 pm »
I think your readers
could really do without the line numbers in code, which prevents them
from copying/pasting it into an IDE.

That charge could be leveled at this forum too, and it's a minor inconvenience at that (think ALT-SHIFT-Arrow). On the other hand, a reference to a line number can be handy in case someone is actually commenting on a piece of code.

Nope, here when I right click on code with line numbers (code=csharp)
and Copy, there's no line numbers when I paste it as plain text.

I can't remember the last time I saw annotation referring to line numbers
in code here.  So, WRT the AutoCAD DevBlog, it's a bit silly to inconvenience
readers with line numbers that are copied and pasted, when they serve no
purpose (I don't recall seeing any references to line numbers in the articles
I read there).

Line numbers in code isn't a problem on this site, since they aren''t copied
with the code.

« Last Edit: April 20, 2012, 05:22:25 pm by TheMaster »

Lee Mac

  • Needs a day job
  • Posts: 8785
  • AutoCAD 2013 Windows 7 London, England
Re: AutoCAD DevBlog
« Reply #18 on: April 20, 2012, 01:55:26 pm »
That charge could be leveled at this forum too, and it's a minor inconvenience at that (think ALT-SHIFT-Arrow). On the other hand, a reference to a line number can be handy in case someone is actually commenting on a piece of code.

FYI, you can forgo line numbers and colour formatting by omitting the language tag from the bbcode code tags, i.e.:

[code]
(defun c:helloworld ( )
    (princ "\nHello World!")
)
[/code]

Will produce:

Code: [Select]
(defun c:helloworld ( )
    (princ "\nHello World!")
)

( Just in case you weren't aware )
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?

TT

  • Swamp Rat
  • Posts: 807
Re: AutoCAD DevBlog
« Reply #19 on: April 20, 2012, 05:24:16 pm »
That charge could be leveled at this forum too, and it's a minor inconvenience at that (think ALT-SHIFT-Arrow). On the other hand, a reference to a line number can be handy in case someone is actually commenting on a piece of code.

FYI, you can forgo line numbers and colour formatting by omitting the language tag from the bbcode code tags, i.e.:

[code]
(defun c:helloworld ( )
    (princ "\nHello World!")
)
[/code]

Will produce:

Code: [Select]
(defun c:helloworld ( )
    (princ "\nHello World!")
)

( Just in case you weren't aware )

My comments were regarding the AutoCAD DevBlog, since there is
no way to copy the code without getting the line numbers.

As I mentioned in my revised comment, the line numbers aren't
a problem on this site, since they don't get copied (or at least,
not with Chrome).

And, after giving it more thought, I think code line numbers are
not all that useful because you don't know what line you are
referring to in annotations until after you posted the code, and
even worse, if you revise the posted code and insert/delete
lines, references to line numbers are no longer valid.   

So what good are they?

« Last Edit: April 20, 2012, 05:28:58 pm by TheMaster »

Lee Mac

  • Needs a day job
  • Posts: 8785
  • AutoCAD 2013 Windows 7 London, England
Re: AutoCAD DevBlog
« Reply #20 on: April 20, 2012, 05:53:12 pm »
That charge could be leveled at this forum too, and it's a minor inconvenience at that (think ALT-SHIFT-Arrow). On the other hand, a reference to a line number can be handy in case someone is actually commenting on a piece of code.

FYI, you can forgo line numbers and colour formatting by omitting the language tag from the bbcode code tags, i.e.:

[code]
(defun c:helloworld ( )
    (princ "\nHello World!")
)
[/code]

Will produce:

Code: [Select]
(defun c:helloworld ( )
    (princ "\nHello World!")
)

( Just in case you weren't aware )

My comments were regarding the AutoCAD DevBlog, since there is
no way to copy the code without getting the line numbers.

I know, I was replying to kaefer - hence why I quoted his post.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?

SGP2012

  • Newt
  • Posts: 37
Re: AutoCAD DevBlog
« Reply #21 on: April 24, 2012, 09:24:23 pm »
I didn't expect to pop back to TheSwamp and find this thread had morphed into a discussion about line numbering.   :lol:

I agree that the line numbers are an inconvenience if they're not being used to refer to the code from the supporting text. We're still working out the best formats to use right now, but I plan to ask the DevBlog team not to use line numbering when copying code from VS (unless someone persuades me they're important in the meantime).

@LE - Of course we link to TheSwamp from DevBlog - See the 'Useful links' page.  :laugh:

Cheers,

Stephen
Stephen Preston
Autodesk Developer Network

Arizona

  • Water Moccasin
  • Posts: 2337
Re: AutoCAD DevBlog
« Reply #22 on: April 25, 2012, 04:59:03 am »
Thanks Stephen!
I'm sure I will be a frequent visitor :-)
“I am still determined to be cheerful and happy, in whatever situation I may be; for I have also learned from experience that the greater part of our happiness or misery depends upon our dispositions, and not upon our circumstances.” - Martha Washington

User48

  • Mosquito
  • Posts: 11
Re: AutoCAD DevBlog
« Reply #23 on: April 25, 2012, 10:50:52 am »
How about a link to a .CS or .VB text file on each topic so it doesn't matter if it has line numbers or line breaks where code shouldn't break or anything for that matter.

All copy problems solved !!!

AlexF

  • Bull Frog
  • Posts: 247
Re: AutoCAD DevBlog
« Reply #24 on: April 27, 2012, 10:41:40 am »
Here's "An aggregated feed of the various development-related blogs published by Autodesk.":

http://pipes.yahoo.com/pipes/pipe.run?_id=_pwmy5T93RGCMUcmrbQIDg&_render=rss

Thanks to KeanW for updating/including the new DevBlog in the feed.

Jeff H

  • King Gator
  • Posts: 4019
Re: AutoCAD DevBlog
« Reply #25 on: May 03, 2012, 01:58:15 pm »
When I read this at Through the Interface I remember thinking who was Kean replacement going to be.
 
I have not seen a official announcement but it looks like Stephen Preston is now in charge.
 
Reading some of Stephen's recent post at different at forums and  for example the DevBlog(I have no idea how much Stephen did or did not have to do with it being launched) but seems he is doing what he can to make AutoCAD development a better experience.
 
Just wanted to let him know it is not going unnoticed and is appreciated.
 
Thanks and congrads on promotion Stephen
 
 
 
 

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9646
  • class keyThumper<T>:ILazy<T>
Re: AutoCAD DevBlog
« Reply #26 on: May 04, 2012, 03:42:10 am »


I was asked a question today I couldn't answer.

'Why didn't  they do this 5 years ago ??'
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

MexicanCustard

  • Bull Frog
  • Posts: 307
Re: AutoCAD DevBlog
« Reply #27 on: May 04, 2012, 09:25:50 am »


I was asked a question today I couldn't answer.

'Why didn't  they do this 5 years ago ??'

They did, it was called ADN. Which until now was the good ol' boys club.  Now they seem to be opening up to those of us not in ADN.

Why don't they post examples for the vertical products (other than C3D) now?
AMEP 2012/2014 64bit Win 7

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9646
  • class keyThumper<T>:ILazy<T>
Re: AutoCAD DevBlog
« Reply #28 on: May 17, 2012, 05:16:29 pm »

For anyone who isn't already visiting the blog regularly ..... it's becoming a good resource and well worth a regular visit.  (or subscribing to a feed :) )
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

TT

  • Swamp Rat
  • Posts: 807
Re: AutoCAD DevBlog
« Reply #29 on: May 17, 2012, 07:24:48 pm »


I was asked a question today I couldn't answer.

'Why didn't  they do this 5 years ago ??'

They did, it was called ADN. Which until now was the good ol' boys club.  Now they seem to be opening up to those of us not in ADN.

Why don't they post examples for the vertical products (other than C3D) now?

It wasn't really a good ole boys club, it was an attempt to monetize development documentation, code samples, etc. 

While providing support and software for development purposes isn't something we expect for free, charging customers and developers for code samples and all the missing pieces and corrections to errors in the published docs (which are among the worst in the industry) is underhanded, at best.

« Last Edit: May 17, 2012, 07:42:39 pm by TheMaster »