|
This is a general thread reply, not an original post reply.
Seeing the C++ / C# discussion, coming from a BASIC / FORTRAN / VB background, it is VERY humourous...
|
|
|
|
|
Always a good tool for your toolbox.
If you ever do any embedded you will need C/C++!
|
|
|
|
|
C++ Embedded? I always thought the size too large, mind you I have seen a couple of C++ compatible compilers from TI and Atmel, not Microchip though...
|
|
|
|
|
With the memory footprint on uControllers increasing the need for shoehorning code on some of the chips is not necessary, mind you it all depends on what you're doing.
I've used C++ on a couple of large projects on the ATMega1280/ATMega2560 boards and not had a bit of problems. There are limitations; you can't do a lot of dynamic memory allocation because the memory management on them is pitiful, if timing is an issue you have to use assembler but you have to do that in C also and interrupts are a bit tricky.
I don't use uChip so can't comment on there platform but for AVR I've had no problems and have written many libraries using C++.
|
|
|
|
|
I've done a lot of programming over the past 25 years (started with Fortran for mainframes, C for 8 bit microcontrollers, and C++ with some VB for Windows apps). Now I use C# almost exclusively precisely because of the .NET framework.
I have also done some C++/CLI for interoperating .NET DLLs with native applications.
My point?
Language and tools are just that.... Tools to get a job done. Pick the best one for the job at hand.
Having said that, if I were doing cross platform work I would use Mono and avoid the parts of the .NET framework not supported by Mono. Frankly, it takes me a lot fewer lines of code to do the same thing using C# and .NET versus C++.
|
|
|
|
|
Hi All,
I feel suitably humbled I know I should "ask the duck" as Richard Deeming suggested on Tuesday.
I just find the syntax more awkward that I should. I really only have done this style of program in VB6 and not VB.Net, C# is preferred for this kind of job but I can't use it as the end customer only has a VB kiddie (who I bet wears a base ball cap backwards, doesn't believe in belts & says "Dude" every five minutes). I am suitably humbled by asking the most obvious questions & offer thanks to CPallini & Griff (sorry!!!)
|
|
|
|
|
You didn't read the warning at the top of the file -
Option Suspicious
speramus in juniperus
|
|
|
|
|
What's funny back in my C dos days I had a header file that was used for debugging hardware called
Whiskey mostly as It was easy to spot #include "Whiskey" (and yes before you ask it had a function called Soda!)
|
|
|
|
|
Zerothly, it is a rather amusing show on the Home Service.
What got me was the following choice, you may have one of these:
- Miley Cyrus as your daughter, or
- Bono as your dad.
It's a hard call.
speramus in juniperus
|
|
|
|
|
No brainer: Bono.
At least when he dies, you stand to inherit a fortune.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
And Miley Cyrus is just going to wreck your.... eh, never mind. Just remebered: This is the Lounge, not the Soapbox!
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Wise choice...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I'm not sure, you'd have to put up with Bonio's sanctimonious drivel. At least with Miley there's *something* to look at...
speramus in juniperus
|
|
|
|
|
Nagy Vilmos wrote: At least with Miley there's *something* to look at...
...who is your daughter, and all the boys are lusting over...
And you got even a tiny amount "excited" that would be just horrible!
As your daughter, it's a lose/lose situation.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: ...who is your daughter, and all the boys are lusting over...
Well, it's not such a big deal to everybody;
-What's the definition of an Arkansas virgin?
-A girl that can run faster than her brothers!
C'mon Ollie - let's move to the Soapbox after all...
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Meh, she'll be working long after I'm a doddery old fool and so the money keeps coming in. Bonio is finished once Larry hangs up his sticks.
speramus in juniperus
|
|
|
|
|
What's wrong with Bono ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
To the best of my knowledge, there are only two reasons to wear sunglasses indoors at night -
[0] You are blind.
[1] You are a cu sunshine.
speramus in juniperus
|
|
|
|
|
|
But, it's "fashion"
speramus in juniperus
|
|
|
|
|
2) You are very sensitive to light, which apparently he is.
In his own words: "So it's part vanity, it's part privacy and part sensitivity."
|
|
|
|
|
Rage wrote: What's wrong with Bono ? Tinted glasses, and sucking up to politicians.
|
|
|
|
|
At least with Miley frequent spankings might be therapeutic.
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
Would that be Sonny Bono [^]?
!bVagadishnu
|
|
|
|
|
I guess it is an sp-am for me
|
|
|
|