Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are we going backwards?
Message
De
03/12/2009 11:17:42
 
 
À
03/12/2009 10:22:50
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01436966
Message ID:
01437457
Vues:
52
>>>>>>>True. But three words jump out of your message -- "cut and paste." Personally I am never going back there.
>>>>>>>
>>>>>>>Congrats on the first paying C# job.
>>>>>>
>>>>>>You may not want to go back, but when I asked in this forum about visually designing classes this was what was suggested to me - to visually design the class as a component and copy and paste the generated code into my class.
>>>>>>
>>>>>>Besides in Visual Studio you are encouraged to do that. Copy and paste I mean. Why else would they boast having "snippets" that you are supposed to paste into your code?
>>>>>
>>>>>You are mis-understanding the intended use of code snippets. They are primarily for the insertion of skeleton progarmming structures (such as constructors or for loops) rather than pasting code implementations.
>>>>>Regards,
>>>>>Viv
>>>>
>>>>Viv
>>>>
>>>>If I am not mistaken it was you who suggested designing copying and pasting of generated code when I asked about trying to design classes visually.
>>>
>>>IIRC, that was for a specific WPF case - but what's that to do with code snippets? I'm sure everyone uses cut/paste occasionally - but to infer that code snippets were added to VS because it requires more cut/paste than any other platform is silly. Have you ever written a C# code snippet? Of course, for FWIW, VS does have the simple facility to store code fragments in the toolbox - maybe that's what you were referring to?
>>>
>>>Regards,
>>>Viv
>>
>>What really impressed me was the ability to use snippets as templates by using the snippet editor. Recalling a large block of code and having an interface that easily substitutes multiple variables is pretty powerful.
>
>I find the the NetFX/DependencyProperty one the most useful....
>It's a pity that creating your own is a bit fiddly - but there is this :http://www.codeplex.com/snippy (although I haven't tried it).
>Also a bunch of additions available here : http://gotcodesnippets.com/
>Best,
>Viv

Thanks for sharing these. My code snippet editor is pretty much just a VB thing, but as I do more C# I have been looking around for an equivalent. I'll dig in ...


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform