Click here to Skip to main content
Email Password   helpLost your password?

Welcome to the Lounge! RSS Feed     


You must Sign In to use this message board.
 
 
Per page  Date Filter 
 FirstPrevNext
GeneralRe: Now that we've got all the feel good stuff out of the way...
Deyan Georgiev
10:42 8 May '09  
Yes you are right and i know this limitations. But what I was trying to say is that you can use the same syntax with the both pointers and arrays.

The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

Advertise here – minimum three posts per day are guaranteed.

GeneralRe: Now that we've got all the feel good stuff out of the way...
Joe Woodbury
10:04 8 May '09  
There are enough nice things in C++0x, that I'll use them when I'm able (due to run times on the devices I support, I'm still using VC++ 6.0 for most of my work), but some of this stuff really annoys me. The leading contender is not using the keyword foreach for the, well, foreach feature (this one is so dumb, I still can't figure out what they were thinking.)

There are other things that while nice, I have a real problem with from a lean and mean perspective; the improved copy semantics do improve resizing an array of classes, but who makes resizeable arrays of non-trivial classes? I gave that up a few hours into learning C++, favoring arrays of pointers in this situation. Apparently I'm not alone since I can't remember the last time I saw this in real-world code.

(I'm also not a big fan of Boost or STL and dislike them being part of the base language.)

As for the length of an array; this has baffled me for a long time since the underlying construct "knows" what it is. Even C should have had the ability to readily get the length of a malloc'ed block.

And it still doesn't solve the problem of having a switch inside a loop and having to exit both without resorting to a bool or something comparable. (In other words, using the keyword "break" for ending case statements wasn't a very good idea. [Of course, while griping about this, what the heck were the C# people thinking by requiring the stupid keyword?])


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke


GeneralRe: Now that we've got all the feel good stuff out of the way...
PIEBALDconsult
12:51 8 May '09  
Joe Woodbury wrote:
using the keyword "break" for ending case statements wasn't a very good idea


I agree, it's one of the things I'll tell dmr when I get my time machine working. That and that the assignment operator should be :=.

But it still won't help breaking out of an inner nested loop.
GeneralRe: Now that we've got all the feel good stuff out of the way...
Joe Woodbury
22:10 8 May '09  
PIEBALDconsult wrote:
the assignment operator should be :=.


Even before I learned C, but had a PASCAL class, I hated that.


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke


GeneralRe: Now that we've got all the feel good stuff out of the way...
PIEBALDconsult
4:24 9 May '09  
I never minded it in Pascal, just was glad I wasn't doing BASIC anymore.

It only matters in C and its offspring.

It seems that C's grandparent, BCPL, also used := for assignment, but Ken Thompson reverted to = for B.
GeneralRe: Now that we've got all the feel good stuff out of the way...
peterchen
11:17 8 May '09  
There is some really cool stuff I am looking forward to, some cool stuff that I am afraid of, and then there are user defined string literals.

First and second view, that's serious suckage. It's both powerful and insanely limited at the same time. The only nice thing about it: it might be a minor step towards compile-time C++ - at least for simple stuff.

Don't attribute to stupidity what can be equally well explained by buerocracy.
My latest article | Linkify!| FoldWithUs! | sighist


GeneralPolitics and Religion
Christopher Duncan
7:03 8 May '09  
Wow. I've just participated in conversations on both topics, and the dialog is even polite, respectful and civil.

Is Rod Serling hiding in my closet somewhere? Big Grin


GeneralRe: Politics and Religion
Douglas Troy
7:12 8 May '09  
Christopher Duncan wrote:
Is Rod Serling hiding in my closet somewhere?


Why are you asking us? You should remember where you hid the body ...




:..::. Douglas H. Troy ::..

Bad Astronomy |VCF|wxWidgets|WTL

GeneralRe: Politics and Religion
Christopher Duncan
7:21 8 May '09  
Given that I don't even remember the 70s, that's highly unlikely.


GeneralRe: Politics and Religion
Douglas Troy
7:39 8 May '09  
Christopher Duncan wrote:
Given that I don't even remember the 70s, that's highly unlikely.


Emmm ... there are a few cold cases we'd like to ask you about ... We'll need a blood and hair sam ... oh sorry ...

Poke tongue




:..::. Douglas H. Troy ::..

Bad Astronomy |VCF|wxWidgets|WTL

GeneralRe: Politics and Religion
Jim Crafton
7:42 8 May '09  
Ouch, that's pulling him up by the short hairs... oh wait... Smile


¡El diablo está en mis pantalones! ¡Mire, mire!
SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
Personal 3D projects
Just Say No to Web 2 Point Oh


GeneralRe: Politics and Religion
Douglas Troy
7:45 8 May '09  
Jim Crafton wrote:
that's pulling him up by the short hairs.


I don't even WANT to know where he's going to pull those from ...




:..::. Douglas H. Troy ::..

Bad Astronomy |VCF|wxWidgets|WTL

GeneralRe: Politics and Religion
Jim Crafton
7:41 8 May '09  
He lived through the 70's and he's a musician - he's lucky if he can remember his name at the end of the day Smile


¡El diablo está en mis pantalones! ¡Mire, mire!
SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
Personal 3D projects
Just Say No to Web 2 Point Oh


GeneralRe: Politics and Religion
JeffCirceo
10:22 8 May '09  
Big Grin

Take a look at my corner of the net at Code Research Center

GeneralRe: Politics and Religion
harold aptroot
7:21 8 May '09  
"Politics and Religion", the combination is forbidden by the secularity laws in civilized countries, yet there are "religiously tainted political parties". Does that make sense to you? Not to me.


GeneralRe: Politics and Religion
Christopher Duncan
7:22 8 May '09  
Hey, I think it makes sense to write programs in an operating system rather than a web browser, so clearly I'm not a realistic point of reference.


GeneralRe: Politics and Religion
code-frog
7:38 8 May '09  
Is it truly possible to expect someone who's deeply religious to keep that perspective out of their political practice? After I typed that... if I was elected to any office I'd try my hardest to do that very thing so yes I do believe it's possible. You are right to question that the way you have.Rose


GeneralRe: Politics and Religion
Nemanja Trifunovic
7:43 8 May '09  
Christopher Duncan wrote:
Wow. I've just participated in conversations on both topics, and the dialog is even polite, respectful and civil.


Now you can raise the bar and ask a VB programming question in the Lounge.


GeneralRe: Politics and Religion
code-frog
7:48 8 May '09  
I think that the recent and massive shift from Bush (whom I loved) to Obama (whom I just really don't understand) has forced us all to set aside to some degree politics and political affiliations and to realize that if we don't start fixing some of our core rights, and protecting them fiercely for *EVERYONE* who lives here then our country will rip apart and die. I think all of us need to realize that right now our country teeters precariously upon the edge of a cliff and only people can fix the problems. We are asking way to much of our elected officials and I'm only just now realizing it. Why did Bush seem to fail and why when it's over will many think Obama did too? It's because we expect them to do all of the fixing while we watch from the side and call "fair play" or "foul ball" from the quagmire of indecision that has become the life of the individual American life.

I hope more American's are beginning to see what I'm starting to see.

i. If I don't fight tooth and nail to make sure your constitutional rights are protected you will not fight tooth and nail to protect mine. If I fight for yours it's selfless if I fight for mine it's selfish. Nobody wins and it's never enough when we pursue our own interests.

ii. I think homosexuals would better understand how to protect the rights of peaceful Christians than even Christians do and I think they should organize and try to do that very thing. I think that Christians should set aside their own interest and tackle the problems that homosexual people face and fight incredibly hard to solve those problems and help them. In doing so both sides would learn the truth about each other. That truth is really they are not nearly as different as they thought.


America would grow and prosper if democrats fought for the republican interests as hard as possible so they could be rewarded by seeing republicans fight tooth and nail for the rights of democrats. Each of them trying to one-up the other in fighting for their opposites rights. That I'm learning is what being American really is.


GeneralRe: Politics and Religion
Bassam Saoud
11:04 8 May '09  
Wow - Now that makese sense !

Are you sure you not running for office?
GeneralRe: Politics and Religion
thrakazog
8:12 8 May '09  
Interesting. All the arguments I've seen like that tend to go: You're ideas differ from mine.... Wharrgarbl[^]
GeneralRe: Politics and Religion
Mike Hankey
14:06 8 May '09  
That is indeed surprising.
If you really want the conversation to get interesting just add alcohol! Smile

Mike

"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.


Semper Fi
http://www.hq4thmarinescomm.com[^]
My Site


GeneralNot a discussion on religion but on people...
code-frog
6:42 8 May '09  
Last night I had a rare and fascinating treat. Before I get into that I need to explain the last month of my hobbyist activities. I've read "Off Armageddon Reef" and I'm in the process of reading it's sequel "By Schism Rent Asunder" both by David Weber. These are sci-fi books that could be seen as attacking the heart of religion or perhaps advancing it all the further. I need to explain that I am deeply religious. I am in fact a practicing Christian but not in the same capacity that you might be used to. My religion is mine. If you happen to notice it in how I live and *you* ask me about it then fine I'll talk. I'm not one to push but in the true spirit of debate I enjoy conversing at lengths about the merits of my own faith. I will confess my second highest religion is hypocrisy because frankly it just happens. I could explain hypocrisy with humor and somber truth and all of you would understand for no matter what we are human beings are "hypocrites-evolved". I love to read books that challenge my faith. I love to read books that attack my faith. I honestly prefer to be with people who want nothing at all to do with my faith over being stabbed in the back by people who claim to have my faith. Having said that maybe you get the gist that I tend to think no matter what you believe that you believe the absolute truth until events in your life convince you to change your belief. I've never considered, not once that I need to be "that event" in anyone's life. I like homosexuals in most cases more than heterosexuals because they are honest, kind and wonderful people. I say that even though I personally abhor their practice. I am so taken with the opposite sex that homosexuality to me causes a divide by zero error and I crash in a sobbing heap. My wife was designed with me in mind and that's all there is to that. Smile But truly chase whatever turns your crank until you decide to chase something else. Now I'm not a watery "Christian of all flavors" my beliefs are extremely strong and strict but my greatest command is to love and respect. So that means you have to be more important than me and I think that if we all felt that way it would solve a lot of problems. So do you get the idea? If not I'll summarize. At best I'm nice, have consistent beliefs and behavior patterns. At average I'm just a messed up goon but I know that so I don't at all try to push my "goonish" nature on you. You can be your own goon. Smile

So now that I have said that let me explain why I like Weber's books. He leads off immediately with the underlying truth being that in the far distant future men are nearly wiped out by angry aliens that find us by our technology. His books talk of how intelligent men, generals and psychologists invent God and religion in a very interesting way to prevent man kind from total destruction at the hands of these awful aliens. I like the challenge he puts forth. Men invented God and religion in order to protect future generations from destruction at the hands of this alien race. I find the whole idea fascinating and in the second book he painstakingly builds the details and histories in fascinating twists and turns. Many reviews said it was *SLOW* compared to the speed of book one but I love it. He's a fantastic writer.

So religion was invented by men to save us from utter destruction at the hands of a violent alien race. Talk about a punch in the stomach. Try reading the books. Great stuff. So last night I meet this guy that I've never known at all prior to rock-climbing at the YMCA. He tells me his story of faith and it's very powerful. He explains one key part of his faith that matches verbatim my own experience. We had a great chat. I am deeply fascinated to use my encounter with this guy as a contrast to what I've been reading and frankly life is pretty interesting right now.

My point is that if you believe, don't believe or believe that choosing to believe or not believe is all a massive waste of time as it means you've put too much thought to it already. I'm discovering that the world is indeed an incredible place and it's filled with incredible people. If you will take the time to sit and talk, to hear someone else's story and not attack it but to just accept it in the same spirit that they accept it then you can build some great relationships with people. I'm starting to really grasp that no matter what you believe, as long as it's not extremely violent that you must have a fascinating and compelling story to tell (or not). But we as people took more time to just sit down and talk and learn about each other we'd be happier people. I felt fantastic after last nights chat and it was tons of fun. It just felt good to connect with another human being and learn his own story.

I have no other purpose in writing this other than to say that *RESPECT* really could do a lot for the world or at least my world. It was a great conversation. I also don't mean it was a philosophical discussion so removed of anything offensive that it was cowardly. We both shared the depth of our convictions but the respect we each had for the other persons convictions made for a great conversation.

I am not sure that I had a point. If I did I'm not sure I haven't lost it. But I think I'm making some kind of point but what it is I'm not sure for sure. I just enjoyed how just be resolving to respect this person I made new friend and had a great time.

Okay, I've lost my point entirely. The books by Weber are great though.Big Grin


GeneralRe: Not a discussion on religion but on people...
PIEBALDconsult
6:55 8 May '09  
Word.

An appropriate tune.[^]
GeneralRe: Not a discussion on religion but on people...
Christopher Duncan
7:02 8 May '09  
You know, the general belief is that America was founded on the principle that there should be no state supported religion. However, the truth of the matter is that a careful read of the founding documents and a quick glance at the way the country is run show that we do indeed have an official, state sponsored religion:

Tolerance. Smile



Last Updated 9 Feb 2010 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2010