|
Wait!
I need to debug that!
Believe Yourself™
|
|
|
|
|
The quick way[^] to find out.
Anna
Tech Blog | Visual Lint
"Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"
|
|
|
|
|
If I find myself back in C++ land (and writing something the suits won't freak about sending across the net) I'll try to keep that in mind.
I did encounter one oddity in the results though. Instead of reporting a warning when it first encountered line 14, it showed line 15, then 14 a second time and displayed the error there, after which it continued by showing line 16. My input:
/* Enter your C++ code here (you can delete this line) */
#include <stdio.h>
#include <string.h>
struct X {
char *p;
X() { p = new char[100]; strcpy( p, "hello world" ); }
X( const X & x )
{ p = new char[ strlen(x.p) + 1 ]; strcpy( p, x.p ); }
X &operator=( const X & x )
{ delete[] p; p = new char[ strlen(x.p) + 1 ];
strcpy( p, x.p ); return *this; }
~X() { delete[] p; }
};
void g( X &x1, X &x2 ) { x1 = x2; }
int main()
{
X a;
g( a, a );
printf( "%s\n", a.p );
return 0;
}
The output:
FlexeLint for C/C++ (Unix) Vers. 9.00h, Copyright Gimpel Software 1985-2011
--- Module: diy.cpp (C++)
1 /* Enter your C++ code here (you can delete this line) */
2
3
4 #include <stdio.h>
5 #include <string.h>
6
7 struct X {
8 char *p;
9 X() { p = new char[100]; strcpy( p, "hello world" ); }
10 X( const X & x )
11 { p = new char[ strlen(x.p) + 1 ]; strcpy( p, x.p ); }
12 X &operator=( const X & x )
13 { delete[] p; p = new char[ strlen(x.p) + 1 ];
14 strcpy( p, x.p ); return *this; }
15 ~X() { delete[] p; }
_
14 strcpy( p, x.p ); return *this; }
diy.cpp 14 Warning 1529: Symbol 'X::operator=(const X &)' not first checking for assignment to this
16 };
17
_
18 void g( X &x1, X &x2 ) { x1 = x2; }
diy.cpp 18 Info 1764: Reference parameter 'x2' (line 18) could be declared const ref
19
20 int main()
21 {
22 X a;
23 g( a, a );
24 printf( "%s\n", a.p );
25 return 0;
_
26 }
diy.cpp 26 Info 783: Line does not end with new-line
--- Global Wrap-up
Info 1714: Member function 'X::X(const X &)' (line 10, file diy.cpp) not referenced
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
No worries. CppCheck is getting more and more capable these days, too.
PC-lint & Flexelint do not generate interleaved output of the form displayed by the demonstrator (they usually just show the offending line in the output stream) so I'm guessing the hiccup you saw is down to the page implementation rather than anything specifically related to the tool.
Anna
Tech Blog | Visual Lint
"Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"
|
|
|
|
|
I found a blog post about Improvements in Windows Explorer for Windows 8[^]. The post goes to great lengths to make the argument that Windows Explorer in Windows 8 is going to be a vast improvement over the previous versions. The new improvement is the Ribbon API. If you're not aware, the Ribbon API basically takes the file menu and places all of its items as pictures. There is no longer a drop down to display the individual items. See the left side of the image below to see it. The blog goes on to elaborate about the greatness of the Ribbon and all of its advantages. As a power user, I consider the ribbon to be a waste of valuable screen space that could be used for something else. It is interesting to note that Windows 8 is being designed for tablets and phones. But when I look at how much space the ribbon takes up on my large monitor, I can't imagine how little space I would have left to do any actual work if this was on my netbook's 10 inch screen.
I find it interesting that the Windows Explorer group is going with larger menus that take up valuable screen real estate while the Internet Explorer group is minimizing the space on the screen that the browser takes up and maximizing the space that the web page can display its content. Maybe the Internet Explorer team could lend their design people to the Explorer group for a few months...
To the heart of my point, I took three screen shots of Windows Explorer, one in Windows 8, one in Windows 7, and the final in Windows XP. Each screen shot has 13 files highlighted on the screen to demonstrate how efficient Explorer was at doing what it was designed for. All images were taken at 1600x1200 resolution and placed next to each other for comparison. I didn't modify the size of any of the pictures other than cutting out the relevant piece for viewing. It appears to me that we're going in the wrong direction for efficiency and space to complete actual work!
Side by side comparison of Windows 8/7/XP Windows Explorer[^]
Hogan
|
|
|
|
|
+5
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Wow, your post is half an article ! A propos, the subject has already been debated in the Lounge a few hundredth threads ago.
The comparison says it all, IMO ... Well done !
|
|
|
|
|
The size of the ribbon has been what most people has complained about when it comes to the ribbon in the new Windows Explorer. And I simply don't understand why, you can minimize the ribbon and thus free up the valuable space.
|
|
|
|
|
|
_beauw_ wrote: Configurability can mitigate a flaw's negative impact, but it cannot eliminate it. Beyond the cost of writing the code for the configurability, there is the cost imposed on the end users, who must re-configure around unreasonable defaults.
In this case, the default is probably reasonable for most users.
Kevin
|
|
|
|
|
Working with a fresh install often cannot be taken into account by Microsoft, you represent such a small group.
And I'm sure you could ease up some of the configuring by either using an image instead of installing windows or making a .reg file which can probably change 80% of the defaults you do not like.
I just played around with the developer preview yesterday and from what I saw Windows 8 offers me absolutely nothing and I will be staying with Window 7 until I know of a way to turn that metro thing of, which I personally hate. And that's just fine I know Microsoft ain't developing an OS aimed at developers, and they never will.
|
|
|
|
|
Yourt inability to see why others, many others, are unhappy with the Ribbon does not automatically disqualify it as being a valid complaint. I imagine there is one or 2 things you find botehring or annoying about some software (not necessarily Windows) that others have no issue with; should that disqualify the validty of your complaint?
Remeber, to each his own. Just because you don't see anothers side of things that does not mean they are wrong nor that you are right but that both are simply different.
|
|
|
|
|
I probably will do the same what I’m doing with MS Outlook 2010 – closing the ribbon and relay on context menus and key combinations.
There is only one Vera Farmiga and Salma Hayek is her prophet!
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
The way I "see" it (nice screen shot comparison BTW) is that as the staff at MicroSoft get older they nedd everything to be bigger so they can still see them.
Or it's more that everyone has bigger monitors at higher resolutions so for the items to appear the same size, the spacing is larger to make them easier to see.
I'm probably wrong...
It was broke, so I fixed it.
|
|
|
|
|
I agree 100%, more if it were possible.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
You must understand that Windows 8 isn't about managing files. It's about updating your status on facebook, sharing photos, and downloading MP3's.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You forgot Twitter (and I'm glad you did)...
Hogan
|
|
|
|
|
You can use SMS for Twitter, so size doesn't really matter on cell phones...
Steve
_________________
I C(++) therefore I am
|
|
|
|
|
Steve Mayfield wrote: so size doesn't really matter on cell phones...
Size always matters, or so I have been told. . .
“Reality is merely an illusion, albeit a very persistent one." ~ Albert Einstein
|
|
|
|
|
Or perhaps better stated, Windows 8 is for consumers, and that isn't necessarily a slam. MS is making Windows friendly to regular, non-nerdly types. Consumers don't like file systems. So it's largely hidden from view.
I remember back in the late 1990s, a tech futurist had predicted that file systems would disappear from the consumers view eventually. At the time I thought he was a little crazy, but now I see the wisdom in what he was saying: only nerds care about file systems. We have good reason to care about file systems. But most end users don't, and in fact, letting non-nerdly types futz with the file system might actually be a bad idea.
Even the whole Metro environment aligns with this idea that, unless you know what you're doing, all your apps should be isolated and safe by default. Want an app that does something outside that box? Ok, open the car hood, crack open the full Windows desktop, install that bad boy. But for everything else, and for most apps, and for most people, you don't need that, and in fact, having that power is detrimental as non-nerds tend to install dubious apps that crap all over their systems.
I hope all my relatives and friends who call me to fix their systems, I hope they all install Windows 8 when it's out. And I hope they never have to crack open the hood and futz with their file systems, or need to install "classic" Windows apps. If they stay in their walled Metro garden, they won't need me to bail them out every few months.
Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon
Judah Himango
|
|
|
|
|
+5! Well said.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun
|
|
|
|
|
+5
That is probably the best argument I have heard for Windows 8 and the interface. You're basically politely stating that most end users are stupid. I believe you're right.
Now there just needs to be an easy pseudo secret way to let power users get to the power and I'll be happy for the hopefully few times we have to fix mistakes.
Hogan
|
|
|
|
|
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."
Many people are extremely adept at not understanding technology, no matter how simple it is.
|
|
|
|
|
agree +5 ... but I'll be one to turn it off or probably skip to Win9 ...
|
|
|
|
|
Unfortunately, Windows 8 won't keep your users from getting viruses. You will still be needed.
|
|
|
|