 |
|
 |
Else: Shut the f*ck up.
To hell with circumstances; I create opportunities.
|
|
|
|
 |
|
 |
I suggest that if you want a solution to your problem, you take it up with one of the admin staff members, and stop posting angry comments in the lounge and other forums - this won't help anyone and will just annoy other members.
Regards, --Perspx
Don't trust a computer you can't throw out a window -- Steve Wozniak
|
|
|
|
 |
|
 |
Message Automatically Removed
|
|
|
|
 |
|
 |
Please stop feeding the trolls. He doesn't care what you say he just craves attention and will go away in boredom as soon as people start ignoring him. He's not serious about any of this and is simply trying to get attention and be disruptive. Report his messages or simply ignore them.
"It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson
|
|
|
|
 |
|
 |
Message Automatically Removed
|
|
|
|
 |
|
 |
So if a message gets reported by enough users it gets automatically deleted - huh cool I've never bother until now.
Never underestimate the power of human stupidity RAH
|
|
|
|
 |
|
 |
You can't just comment out any particular line, you need to comment out a whole balanced block of tags. No commenting out just an attribute, nooo. For that you just gotta delete it and hope you remember you did.
Oh and if you want to comment out a block that already has a comment? Forget it! XML doesn't allow the string fragment '--' within comments!
Another reason XML was not the best choice to base a language on.
“Time and space can be a bitch.” –Gushie, Quantum Leap{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’) Built with home-grown CodeProject components! -”-”-
|
|
|
|
 |
|
 |
chaiguy1337 wrote: Another reason XML was not the best choice to base a language on. It is what it is. Try commenting out the top half of a function in VB, see how well that works. At least XML has multi-line comments...
XAML is still ugly as sin, but that's only partially the fault of XML.
---- You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
 |
|
 |
VB Rulez...long live REM! :P ' ' ' ' ' '
|
|
|
|
 |
|
|
 |
|
 |
Click the period.
---- You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
 |
|
 |
Ah, leave it to Pete to whip up a good one
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
 |
|
 |
Sweet. I didn't recognise it as one of mine. You're right, and thank you for finally letting me hear this. Ironically, when I saw your sig, I wished I'd been the one to say it.
|
|
|
|
 |
|
 |
Yet another reason XAML is complete and utter garbage. I do a lot of programming and I still can't believe MS thinks this is a good idea.
My favorite 'feature' of xaml though is how easy it is to do loops.............
|
|
|
|
 |
|
 |
chaiguy1337 wrote: Oh and if you want to comment out a block that already has a comment? Forget it! XML doesn't allow the string fragment '--' within comments!
You can't do this either in C# (or any other C based language), where the /* */ tags are used.
chaiguy1337 wrote: You can't just comment out any particular line, you need to comment out a whole balanced block of tags.
Hmmmm. Interesting. I'm following Karls lead and producing a PowerToy which contains features that I wish Cider had - I might just add this to the wishlist (if you don't mind).
|
|
|
|
 |
|
 |
Pete O'Hanlon wrote: You can't do this either in C# (or any other C based language), where the /* */ tags are used.
True, but C++/C# has // and VS has Ctrl+E Ctrl+C block commenting, which DOES support (and preserve) inner commented blocks.
Pete O'Hanlon wrote: (if you don't mind)
Be my guest, if you can figure out how to do it! (Let me know what you come up with.)
“Time and space can be a bitch.” –Gushie, Quantum Leap{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’) Built with home-grown CodeProject components! -”-”-
modified on Thursday, September 11, 2008 11:46 AM
|
|
|
|
 |
|
 |
Hey Pete I came up with a way for your PowerToy to allow embedded comments in XAML, which is definitely something I would use.
What you need to do is scan the block of text being commented for existing comments, and turn them into something non-commenty but that the tool can recognize later during an uncomment (and turn it back into a real comment).
So the idea is if it's already commented, it won't matter that it's not legitimate xml, and only if the block is uncommented manually (without your tool) will it potentially pose an annoyance. In that case though it's probably better to have an error in the xml than to compile fine, because you don't want to inadvertently reinstate a piece of xaml that should otherwise remain commented-out.
A secondary concern is to make it obvious an inner block is commented, perhaps by using visual obvious syntax like [/*[ comment ]*/] (something that's not likely to occur anywhere normally), or hey here's an even better idea: treat comments on a line-by-line basis like C#, then wrap any consecutive series of lines in a regular <!-- xml comment, but then at the beginning of each "inner" commented line, put a good ole C# // so that it LOOKS just like C# comments, and you can even have embedded comments that can be preserved just like C# by stacking up the //'s. Here's an example:
Suppose you have some xaml like this:
<DockPanel DockPanel.Dock="Top" Margin="3,2,3,0"> <Controls:KeyLink FontStyle="Italic" HotKey="Ctrl+T" Text="Add a title." /> <TextBlock Opacity="0.4" FontSize="14" DockPanel.Dock="Right" HorizontalAlignment="Right" Margin="0,0,8,0"><Bold>New</Bold></TextBlock> </DockPanel>
...and suppose you want to comment out that KeyLink thing. Either select the appropriate lines, or your tool could even figure out what the smallest balanced block would be just from where the cursor is, and the result would look like this:
<DockPanel DockPanel.Dock="Top" Margin="3,2,3,0"> <!-- //<Controls:KeyLink // FontStyle="Italic" // HotKey="Ctrl+T" // Text="Add a title." /> --> <TextBlock Opacity="0.4" FontSize="14" DockPanel.Dock="Right" HorizontalAlignment="Right" Margin="0,0,8,0"><Bold>New</Bold></TextBlock> </DockPanel>
Looks much better already don't you think! Now suppose you select the whole block and want to comment out the whole DockPanel. Well previously this would be impossible, but now I'm suggesting it should result in something like this:
<!-- //<DockPanel // DockPanel.Dock="Top" // Margin="3,2,3,0"> // //<Controls:KeyLink // // FontStyle="Italic" // // HotKey="Ctrl+T" // // Text="Add a title." /> // <TextBlock // Opacity="0.4" // FontSize="14" // DockPanel.Dock="Right" // HorizontalAlignment="Right" // Margin="0,0,8,0"><Bold>New</Bold></TextBlock> //</DockPanel> -->
Notice that the embedded comment is still preserved, but without the extraneous <!-- and --> tags, which are now moved to the outside of the outer comment.
You should theoretically be able to support unlimited levels of embedding this way, and the result would be much more familiar to C# users. Users shouldn't even have to worry about selecting the <!-- --> tags when performing a comment (they should be completely ignorable) and your tool could handle them automatically, placing them where needed and removing them from inner comments as appropriate.
Do you think you might be able to/want to implement something like that? I'd totally be behind you if you did. 
As for commenting-out just an attribute, I still haven't figured this one out.
Logan
|
|
|
|
 |
|
 |
Good idea. It shouldn't be too hard (theoretically), and could be fairly easy to implement. But I certainly would want to implement something like this - it's something missing that should be there. I'll give the commenting out of the attributes some thought - there are a couple of ways that I can think of doing this, but they are hacks; nasty dirty hacks.
|
|
|
|
 |
|
 |
Lol yeah, I'm probably thinking some of the same things you are... like attached properties and "fake" attributes. 
Anything is better than nothing though. Let me know if you come up with anything.
Logan
“Time and space can be a bitch.” –Gushie, Quantum Leap{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’) Built with home-grown CodeProject components! -”-”-
|
|
|
|
 |
|
 |
ABBOTT: Super Duper Computer Store. Can I help you? COSTELLO: Thanks. I'm setting up an office in my den and I'm thinking about buying a computer. ABBOTT: Mac? COSTELLO: No, the name's Lou. ABBOTT: Your computer? COSTELLO: I don't own a computer. I want to buy one. ABBOTT: Mac? COSTELLO: I told you, my name's Lou. ABBOTT: What about Windows? COSTELLO: Why? Will it get stuffy in here? ABBOTT: Do you want a computer with Windows? COSTELLO: I don't know. What will I see when I look at the windows? ABBOTT: Wallpaper. COSTELLO: Never mind the windows. I need a computer and software. ABBOTT: Software for Windows? COSTELLO: No. On the computer! I need something I can use to write proposals, track expenses and run my business. What do you have? ABBOTT: Office. COSTELLO: Yeah, for my office. Can you recommend anything? ABBOTT: I just did. COSTELLO: You just did what? ABBOTT: Recommend something. COSTELLO: You recommended something? ABBOTT: Yes. COSTELLO: For my office? ABBOTT: Yes. COSTELLO: OK, what did you recommend for my office? ABBOTT: Office. COSTELLO: Yes, for my office! ABBOTT: I recommend Office with Windows. COSTELLO: I already have an office with windows! OK, let's just say I'm sitting at my computer and I want to type a proposal, what do I need? ABBOTT: Word. COSTELLO: What word? ABBOTT: Word in Office. COSTELLO: The only word in office is office. ABBOTT: The Word in Office for Windows. COSTE LLO: Which word in office for windows? ABBOTT: The Word you get when you click the blue "W". COSTELLO: I'm going to click your blue "w" if you don't start with some straight answers. What about financial bookkeeping? You have anything I can track my money with? ABBOTT: Money. COSTELLO: That's right. What do you have? ABBOTT: Money. COSTELLO: I need money to track my money? ABBOTT: It comes bundled with your computer. COSTELLO: What's bundled with my computer? ABBOTT: Money. COSTELLO: Money comes with my computer? ABBOTT: Yes. No extra charge. COSTELLO: I get a bundle of money with my computer? How much? ABBOTT: One copy. COSTELLO: Isn't it illegal to copy money? ABBOTT: Microsoft gave us a license to copy Money. COSTELLO: They can give you a license to copy money? ABBOTT: Why not? THEY OWN IT!
A few days later: ABBOTT: Super Duper computer store. Can I help you? COSTELLO: How do I turn my computer off? ABBOTT: Click on "START" ....
Jon Smith & Wesson: The original point and click interface
|
|
|
|
 |
|
 |
Nice twist...who's on first
One of my favorites is when Abbott talks Costello into loaning him some money but Lous only got half of what he asks for so he tells him to give him what he's got and he can owe him the other half, etc.. A classic team!
Thanks for the memories...oh wait a minute wasn't that Hope, I hope what....oh never mind. Mike
|
|
|
|
 |
|
 |
I hope that was a copy/paste, otherwise you have WAY too much time on your hands, GET A LIFE.
Sorry thing is I read it all, enjoyed it and just feel like beig a bitch.....
Never underestimate the power of human stupidity RAH
|
|
|
|
 |
|
 |
Awesome! The funniest thing I've read in a while.
|
|
|
|
 |
|
|
 |
|
 |
Top Notch Old Chap!
I gave a five, as indeed did many others!
------------------------------------
Credit is a system whereby a person who can not pay gets another person who can not pay to guarantee that he can pay. - Charles Dickens
|
|
|
|
 |