Visit the U.S. Politics Online Discussion Forum Archives!
![]() |
|
|||||||
| Science and Technology A forum for discussion on Science and Technology |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Re: FIRST Robotics Competition
No, this information is from a software engineer. I asked him a question and this is what he told me.
__________________
"Hard work without talent is a shame, but talent without hard work is a tragedy." -fortune cookie |
|
||||
|
Re: FIRST Robotics Competition
Sounds like someone who is miffed because his boss is mandating use of a language that he doesn't like.
__________________
"Government big enough to supply everything you need is big enough to take everything you have... The course of history shows that as a government grows, liberty decreases." -Thomas Jefferson |
|
||||
|
Re: FIRST Robotics Competition
Quote:
__________________
"Hard work without talent is a shame, but talent without hard work is a tragedy." -fortune cookie |
|
||||
|
Re: FIRST Robotics Competition
Quote:
But I believe there was some truth in what he said. I forgot the exact conversation, but he told me that C++ only started to pick up around 1995 even though it was created years before. I asked him why it took years for people to start using it, and he told me programming languages in a workplace in general takes a long time to pick up. I asked him why C# is used and he said something like, "because it was created by microsoft". It seems to me that unless you can afford a multi-million dollar campaign a programming language must suffer the test of time before it's ever appreciated by the business world.
__________________
"Hard work without talent is a shame, but talent without hard work is a tragedy." -fortune cookie |
|
||||
|
Re: FIRST Robotics Competition
Quote:
To be clear, a good rule of thumb with OOP is that you create classes that are nouns and give them methods that are verbs. If you create a "Dog" class, you would give it methods like "WagTail()" and "Fetch()". This applies in C++. In C, however, there is no way to create a Dog class because it would only be a structure with attributes. So you might actually create a file called "DogActions.c" and define those functions in that file. Then, you wouldn't define some kind of object "dog" but rather you would have some other file called "dog" that would reference the "DogActions" file as if it were just an extension of the calling file. In general, C code is broken up into individual files to make them more manageable to view, but it could usually be written in one gigantic main. C++ with good design precludes this. And, I'd adjust your ratio of syntax and logic to have syntax be almost at nothing. The syntax of a language is almost irrelevant unless it's so arcane or counter-intuitive as to turn people off of the language. And, a lot of what you think of as 'syntax' is also probably defined libraries and packages that are ubiquitous enough to be considered part of the library, like the C standard library, for instance.
__________________
"Government big enough to supply everything you need is big enough to take everything you have... The course of history shows that as a government grows, liberty decreases." -Thomas Jefferson |
|
||||
|
Re: FIRST Robotics Competition
Quote:
Quote:
Quote:
__________________
"Government big enough to supply everything you need is big enough to take everything you have... The course of history shows that as a government grows, liberty decreases." -Thomas Jefferson |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|