Author Topic: AutoCAD DevBlog  (Read 19890 times)

0 Members and 1 Guest are viewing this topic.

kaefer

  • Guest
Re: AutoCAD DevBlog
« Reply #15 on: April 20, 2012, 10: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.

LE3

  • Guest
Re: AutoCAD DevBlog
« Reply #16 on: April 20, 2012, 10: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?

TheMaster

  • Guest
Re: AutoCAD DevBlog
« Reply #17 on: April 20, 2012, 02: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, 06:22:25 PM by TheMaster »

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: AutoCAD DevBlog
« Reply #18 on: April 20, 2012, 02: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 )

TheMaster

  • Guest
Re: AutoCAD DevBlog
« Reply #19 on: April 20, 2012, 06: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, 06:28:58 PM by TheMaster »

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: AutoCAD DevBlog
« Reply #20 on: April 20, 2012, 06: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.

SGP2012

  • Guest
Re: AutoCAD DevBlog
« Reply #21 on: April 24, 2012, 10: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

Arizona

  • Guest
Re: AutoCAD DevBlog
« Reply #22 on: April 25, 2012, 05:59:03 AM »
Thanks Stephen!
I'm sure I will be a frequent visitor :-)

twdotson

  • Mosquito
  • Posts: 17
Re: AutoCAD DevBlog
« Reply #23 on: April 25, 2012, 11: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 !!!

vegbruiser

  • Guest
Re: AutoCAD DevBlog
« Reply #24 on: April 27, 2012, 11: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

  • Needs a day job
  • Posts: 6150
Re: AutoCAD DevBlog
« Reply #25 on: May 03, 2012, 02: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
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: AutoCAD DevBlog
« Reply #26 on: May 04, 2012, 04:42:10 AM »


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

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

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: AutoCAD DevBlog
« Reply #27 on: May 04, 2012, 10: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?
Revit 2019, AMEP 2019 64bit Win 10

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: AutoCAD DevBlog
« Reply #28 on: May 17, 2012, 06: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 :) )
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

TheMaster

  • Guest
Re: AutoCAD DevBlog
« Reply #29 on: May 17, 2012, 08: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, 08:42:39 PM by TheMaster »