Friday, January 8, 2010

C or C++ for programming biped robots/ robot on wheels?

I am completely new in robotics and would like to know which of these is better to learn, C or C++?





C or C++ for programming biped robots/ robot on wheels?
Bette learn artificial intelligence programming language like lisp ,etc .C or C++ for programming biped robots/ robot on wheels?
C compiles to a smaller file and faster code, but C++ is better because it's object-oriented, which can help organize code (which is better for larger projects).





Basically, C is faster to learn, but requires many more lines of code since it is lower level.





C++ takes longer to learn (unless you are already familiar with object-oriented concepts), but makes maintaining the code easier.





The two are actually pretty similar, only C++ has more to it. So if you learn C first, it will make easing into C++ easier. But if you learn C++ first (takes longer), then the time to learn C would be trivial.





Another thing you might consider is what kind of, if any, API (Application Programming Interface) is available for your robot and the language it uses.
  • blonde highlight
  • oil offshore
  • printer ink
  • pink highlight
  • Anyone with any BASIC programming experience?

    Hello, I have made a few applications for the TI-84 Plus Graphing Calculator and I wrote them in c++. I need to make them into BASIC so I can transfer them. I have an idea how to do it but, I don't know how to make a basic program. I know some of the commands, but I need to know how to start and save a project. If someone could point me in the direction of how to start the project, that would be nice...!!!!Anyone with any BASIC programming experience?
    Hi. Like most people I my experience with basic goes back to when it was one of the most advanced things you could do on your computer. Basic is still an interpreter though. You don't compile it, you feed it a program which is a text file and it executes it one command at a time. So, here is a tutorial which definitely covers BASIC for the TI calculator -- the TI-83 rather than the TI-84 but it should be doable easily.





    You might consider getting ahold of chipmunk basic for your operating system to practice working with an interpreter. It is NOT the same as TI-BASIC but it will make you more confident about putting programs on your calculator (which is considerably more complicated that the multi-million dollar mainframe my sister got her Masters Degree working on back in the sixties).

    Anyone with information of programming instructions for keyless entry remote for Hyundai Santa Fe 2004.?

    Programming intruction for keyless entr remote for 2004 Hyundai Santa fe.Anyone with information of programming instructions for keyless entry remote for Hyundai Santa Fe 2004.?
    It has to be taken to a Hyundai dealership to be hooked up the their High Scan Tool. They will need both remotes (if you have two) it usually takes about 3 minutes to do.Anyone with information of programming instructions for keyless entry remote for Hyundai Santa Fe 2004.?
    i agree with the hyundai service manager








    a Hyundai Tech

    Hey, what's the difference between object oriented programming language and function(al) programming? thanks!!?

    More specifically, I need to be able to differentiate between C programming language and the Java programming languageHey, what's the difference between object oriented programming language and function(al) programming? thanks!!?
    Reusability of code





    Polymorphism


    Inheritance


    encapsulation





    also: java doesnt allow you to mess with memory adresses directly. (thank god)Hey, what's the difference between object oriented programming language and function(al) programming? thanks!!?
    An object oriented language is a language that expresses things as ';objects'; which contain data and the code that acts on that data. OO languages support concepts like encapsulation, polymorphism, and inheritance.





    In functional languages each function is completely self contained. You pass data in and the function passes results out with not side effects outside the function.





    Neither C (or c++) nor Java are functional languages. Plain C (not C++) is not object oriented, but Java is object oriented.



    Ok here we go:


    Differences between functional and objected oriented programming can


    be summed up as follows:


    In object oriented programming everything (or almost everything) is


    treated as an object that can be modified and that can perform tasks,


    or in OOP speak one might say objects have state and behavior. What it


    buys you (among other more advanced things) is: modularity,and data


    hiding.





    Here is an example: You might have an object that models a ball, from


    above the ball can be modified (i.e. you can change its state) for


    example you may be able to change the color of the ball. It can also


    perform tasks (i.e. it also has behavior) for example the ball can


    roll, or be thrown. As an object it is bundled neatly in a package


    that provides methods to change the state of the ball, and to make the


    ball perform actions. This package is usually called a module, in


    addition to the methods used to change state, and perform actions, the


    module also has data that is used to store any state information


    needed.





    Because this module is a complete package that models your object


    competely, the module can easily be reused in many different


    applications. Once it is wirtten and working anyone should be able to


    use the module without fully understanding internals. For examplea all


    one needs to know is that they want a red ball to throw. :)





    Here is a good resource on OOP:


    ';Object-Oriented programming concepts';


    http://java.sun.com/docs/books/tutorial/鈥?/a>








    In functional programming what you have basically are a set of


    functions each of which performs a task. Selectively executing these


    function results in the solution to the problem at hand.





    For example you might have a function that takes the coords. of a


    square computes the area, and you may have another function that


    computes the area of a triangle. By executing the square function 6


    times you could compute the area of a cube. Or by executing a


    combination of the square and triangle functions you could compute the


    area of a rhomboid. As you can see you can build quite complex systems


    based on simple functions.





    Technically choosing OOP of FOP (or vice versa) you can always


    accomplish the same results in either paradigm, however what may be


    very easy to do with an OOP approach may prove to be very difficult in


    FOP, and the converse may also be true depending on the problem.





    Which leads to: Why has the whole world moved from FOP to OOP...


    Welp this one is simple, it hasn't (in my opinion). Much of the world


    is moving to OOP, and OOP is getting all the press of late. But there


    is still a TON of work going on in the FOP world. But I digress, that


    is a different debate.





    I think the examples above may have already shed some light on this


    question, but simply put OOP makes it easier to conceive very large


    complex systems. Because it gives the developers the ability to break


    the system down to small tangible.. uhh.. objects... :) which can be


    designed, developed, and tested independently.





    In a functional paradigm what invariably happens as a large system


    grows: it becomes a huge pile of functions. All of which are


    interconnected, and dependent on each other. Which means if you change


    one function you break 10 others, it becomes impossible to manage. A


    *good* large program written in a functional language is usually


    designed with OOP principles in mind. (i.e. it is designed as a set of


    modules that are not inter-dependent on other modules)



    Doeas nay1 know a good site where i can get good programming questions in c or c++ or java?

    http://3dbuzz.com has some real nice free c++ video tutorials (that amount to around $2000 in schooling) and their c++ programming forum has a bunch of very good programmers. They will also help with C and Java if you ask.





    Thats the community that i use for my programming right now.

    What is the best Programming Language and Why?

    Detailed Answers PleaseWhat is the best Programming Language and Why?
    You see... my friend...





    I have been told by the Behavians, and, in particular, my extra-terrestrial friend Tan, that the Best programming language is APL. Because... APL is close to Apple, and, you know, the BASTARDS are not paying me enough money to eat food!





    So, when I was in the hospital, Tim didn't even call me once! I understand, but they don't even know how to keep livestock, let alone deal with people. And, in the hospital, I had a revelation. One of the lizard people visited me, while I was in the hospital, and told me that the best programming language was Scheme! That one sounds like it could help me to make plans. You know, Tim should really throw me a bone; those people making MILLIONS, and I only get a measly 400 dollars for a show... I really need to have a scheme.





    Howard, Robin and Artie didn't even call, and I could be living like a king on the money Howard spends on clothes. I think that there is a SNOBOLs chance in hell that the jew bastard is going to ever give me enough money to eat!





    So I think the Best programming languages are APL, Scheme and SNOBOL. Because, well, you know, a fellow's got to take care of himself, right?





    Yours Sincerly


    Riley Martin.What is the best Programming Language and Why?
    Best programming language for *what*?





    Flash+Action Script is the best language for creating web animations, but it's useless for driver development.





    SQL is the best language for database retrieval but its useless for graphics development.





    Assembly is the best language for programming microcontroller interrupt handlers, but its useless for web development.





    PROLOG is the best language for solving constraint logic, but it's useless for iPod app development.
    C++


    =


    Why?


    -


    Object-oriented programming


    The possibility to orientate programming to objects allows the programmer to design applications from a point of view more like a communication between objects rather than on a structured sequence of code. In addition it allows a greater reusability of code in a more logical and productive way.


    -


    Portability


    You can practically compile the same C++ code in almost any type of computer and operating system without making any changes. C++ is the most used and ported programming language in the world.


    -


    Brevity


    Code written in C++ is very short in comparison with other languages, since the use of special characters is preferred to key words, saving some effort to the programmer (and prolonging the life of our keyboards!).


    -


    Modular programming


    An application's body in C++ can be made up of several source code files that are compiled separately and then linked together. Saving time since it is not necessary to recompile the complete application when making a single change but only the file that contains it. In addition, this characteristic allows to link C++ code with code produced in other languages, such as Assembler or C.


    -


    C Compatibility


    C++ is backwards compatible with the C language. Any code written in C can easily be included in a C++ program without making any change.


    -


    Speed


    The resulting code from a C++ compilation is very efficient, due indeed to its duality as high-level and low-level language and to the reduced size of the language itself.

    Attention all Americans, I am British in my final year of Computer Programming, will be graduated in Sept.2010?

    Any website for Employment Agency in USA without asking me my zipcode as I live in Europe and don't have an address in USA but would like to try my luck searching for a java programming job for newly graduate in the states.Attention all Americans, I am British in my final year of Computer Programming, will be graduated in Sept.2010?
    There are plenty of graduate schemes in Europe the Helsinki institute of technology is a good place to go, though maybe you should think about Canada there are good roles in Vancouver or Toronto.Attention all Americans, I am British in my final year of Computer Programming, will be graduated in Sept.2010?
    Generally, a good website is going to provide an alternative to the ZIP code requirement for out-of-States workers -- usually its a country code.





    There's a few job-search websites (not employment agencies) that you could look into. Many of these include listings made by employment agencies, however, so if you see a collection of jobs that interest you that are all coming from the same agency, you can follow that lead.





    A national job-listing site that would fit this description is monster.com





    It would help to know where you are planning to live: are you looking to relocate into the States to work, and if so, where? Look up contacts for major hubs in the regions where you are interested in working -- generally, most major cities have a .gov website (to my knowledge, anyway) that can point you the way to local employment agencies that can help you further.





    If an agency really interests you, but their website requires a zip, give them a call over the phone during normal business hours (for them).





    I live near Phoenix, Arizona, and this place is almost crawling with programming jobs. California is a good place to start shopping for jobs, too, but there are jobs in every single state and every single major city, so be sure to do your research -- the cost of living here can be DRAMATICALLY different across state lines. Heck, a 20-mile difference here can leave you paying $500/mo. for rent vs. $1500/mo. for the same basic space.
    Hello,








    I suggest that you simply use the zip code in an area of the U.S. that you might consider residing in. Or try zip codes for several areas for a broader range of income. Different areas will also have different cost of living.
    You can't randomly go and work in the USA. No-one will employ you if you don't have the right work permits etc - which you obviously don't.
  • blonde highlight
  • oil offshore
  • printer ink
  • pink highlight
  •