Announcement

Collapse
No announcement yet.

Using chatgpt to write code? Yes!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    yeh I have been to the mountain ( of programming languages ) and back again. I first cut my teeth on 8080 assembler then Z80 then .... etc etc etc.

    40 years later I mostly use C and the argument over which is better is a forever war.

    There are really only two ( three ) arguments that matter .

    1. In things that matter they ( still ) only use C or assembler .. ferinstance in a car the systems controlling these critical functions.
    • automatic transmission
    • tire pressure detection systems
    • sensors (oxygen, temperature, oil level, etc.)
    • memory for seats and mirror settings.
    • dashboard display
    • anti-lock brakes
    • automatic stability control
    • cruise control
    • climate control
    • child-proof locks
    • keyless entry
    • heated seats
    • airbag control

    medical equipment the same, space equipment the same. ( except spaceX maybe ).

    ​2. C can do most of the C++ stuff using pointer to function.

    3. 99% of programmers dont understand or get taught what a pointer is. ( buffer overflows anyone ? shouldn't happen but it does.)

    4. Did I say there was only three ? .... CPU hardware is not object orientated ... it still uses plain old jump, compare, add instructions etc etc

    the higher level languages allow greatly increased programmer productivity. I am not against that at all. Many tasks could not be completed if they were written in C or ASM.


    moodz.

    Comment


    • #32
      Nothing to disagree with, there.
      My story is similar, but I started with 6502 (6510 later) and 7 years later with 8080.
      In meanitme I also had close encounters with MC6800 and Z80.
      But real deal started with 8080, logically.
      First it was GW Basic, shor period. Than Cobol, long period. Than C and Pascal.
      Today only C and C++.
      But only narrow use for simple and specific tasks.
      Far from being expert.
      Enough to rely on my own and not depending on others.
      I really don't like Linux, I am not saying it is bad. Just don't like it.
      I despise iOS and Android too.
      Those are stuff for younger folks.
      My time is gone.

      Comment


      • #33
        Originally posted by ivconic View Post
        Phew!
        Python!
        I worked with some scripts back in version 2.71 and since then I don't like it at all!
        Is there any AI that is not written in Python?
        Is there a simple installation that does the whole job by itself?
        From 2013 to 2015, I worked in a CH company where they totally tired me out and completely bored me with similar things.
        And since then I have a strong aversion to "clever how to" solutions.
        Not to mention the Eclipse development environment from those years, and its placement in the Android application development system.
        Who has gone through it once and met it... not even hell will be difficult for him.
        I prefer to leave that kind of work to self-satisfied sadomasochists.
        Especially to these new kids who want to prove themselves.
        90% of the time you work on system settings and only 10% of the time you do essential things.
        I got a little carried away and am writing too much off topic.
        Ok, can you explain step by step how to "immigrate" it to your system and run it later as simply as possible?
        I see you're a Linux fan... another big "PHEW" from me!
        I equally despise Linux as well as all "higher" script languages!
        I'm a Windows guy and the only true programming language for me was and remains C++.
        ...

        I don't like command prompt, I don't like endless typing lines with countless meaningless parameters.
        Where is the progress?
        Where is the easier life and easier work with the computer?
        It's enough that I got sick of all that during DOS times, then we had no other choice.



        Here is a video detection AI written only in C. It works really well on linux ( from workstations to raspberry pi ) and I believe it has been ported to windows ... though there might be some python wrapoers involved.

        https://pjreddie.com/darknet/yolo/



        Comment


        • #34
          Anything written in C++ can be written in C.
          ​Anything written in C can be written in assembly language.
          ​It's a matter of using the right tool for the job. If I have super-time-critical code then assembly language is appropriate, but I would never choose it for general purpose programming. And especially not for company work, as it leaves the company with dead-end code. I know of a company that designed all their products using 8-bit PICs coded in assembly language; they are now struggling mightily to get their products to the next level, and amazingly still trying to do it in assembly language.
          For small projects I will still use C as it is plenty good enough, and for some chips (low end PICs) that's all they can support. For my large Cortex projects, using C++ encapsulation (at a minimum) makes planning, writing, and maintaining code way more efficient. The menu system on my walk-through design started out as C until I realized it just wasn't practical for something that big. Re-wrote the whole thing in C++ and it's been smooth sailing ever since.

          Originally posted by ivconic View Post
          Whether the interview is true or false is less important.

          I disagree, truth is always important. The Internet has made the spread of lies so easy that I fear it has become a critical threat to society. It needs to be called out at every opportunity. The next level is that someone will create a deep fake video of Stroustrup saying those very words.

          Comment


          • #35
            Originally posted by Carl-NC View Post
            ...I disagree, truth is always important. The Internet has made the spread of lies so easy that I fear it has become a critical threat to society. It needs to be called out at every opportunity. The next level is that someone will create a deep fake video of Stroustrup saying those very words.
            Unfortunately you are right!
            This is a growing problem.

            ​...
            Let's ban moodz for 2 months!!!

            Comment

            Working...