• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle


  • The best book I’ve ever bought on programming, and the second best book I bought for a class in uni, was https://dl.acm.org/doi/book/10.5555/1824214 it may be worth checking out on libgen and buy if it suits your needs.

    Whenever I do low-level programming on the AVR architecture, I’ll make a memory map. As in I’ll map out where I’ll put what. It may not be suitable for more complex programs, but it does the job for me. And it has enabled teamwork in assembly in the past.

    If you want to work in a language that doesn’t offer memory management, but manually mapping memory isn’t feasible either, how about building your own memory management? Or perhaps use an RTOS? I’ve used freeRTOS before on various arm-based micros, and it does take a bit to get started, but after that it’s easy sailing.

    Sorry for the following tangent, all semi intelligent content in this comment is found above this line.
    BTW I tried CoOS once, I wouldn’t recommend it… OK it was 12 years ago, I can’t remember exactly what was wrong other than the documentation was crap, but I don’t need to remember why to hold a grudge.


  • BigDanishGuy@sh.itjust.workstoRetroGaming@lemmy.worldHow hard could it be?
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    3
    ·
    edit-2
    22 days ago

    #include <iostream> // because writing to the console is not included by default.
    int main()
    {
    std::cout << "C++ is simple and fun ... you cretin\n";
    return 0;
    }

    I had a machine language course in uni, parallel with a C++ course. Not a fun semester to be my wife, or a relative of any of my classmates. Best case our brains were in C++ mode, worst case you needed an assembler to understand us.

    And yes I know my code format will piss people off, I don’t care, it’s the way I write when other less informed people don’t force me to conform to their BS “Teh oPeNiNg bracket shouwd bwee on teh sam line ass teh declawation

    Edit: added a \n for the sake of pedantry :)











  • If you think this is bad, then you haven’t tried navigating the MS academic offerings. Over the last 10 or so years, I think it’s been called “dreamspark”, “imagine”, “MSDN Academic Alliance” (I liked this one, it actually made sense), “MSDN AA”, and now “Azure Dev Tools for Teaching” or “adt4t” when talking with support.

    rant mode ON

    Everytime the name is changed, it seems something else changes (OK it’s a new product) and the way to access installers and activate it differs. I just want to teach, but every couple of years I have to spend days trying to figure out how to get my iso’s and how to renew the subscription. A couple of years ago, and mind you this was after I had had an active academic relationship with Microsoft for 8 years, and my predecessor even longer than that before me, we had to submit invoices proving that the school owned the domainname for our emails and website, as well as a letter from the ministry of education that we were licensed to teach this course.

    The support staff is very professional and helpful, and we’ve always been able to resolve renewal issues. But each year we have to go through the process of getting through a maze of support pages linking to chatbots, to find the correct form to contact support. I think the link to support form had the text “Beware of the leopard”.


  • Why not just stick to what we’ve always been doing?

    1. wget something.tar.gz
    2. tar something.tar.gz
    3. man tar
    4. tar xzf something.tar.gz
    5. cd something
    6. ls -al
    7. ./config.sh
    8. chmod +x config.sh
    9. ./config.sh
    10. make config
    11. Try to figure out where to get some obscure dependency, with the right version number. Discover that the last depency was hosted on the dev’s website that the dev self-hosted when it went belly up 5 years ago. Finally find the lib on some weird site with a TLD you could have sworn wasn’t even in latin characters.
    12. make config
    13. make
    14. Go for coffee
    15. make install
    16. SU root
    17. make install