{"title": "C Programming Language is an Interesting Experience", "timestamp": 1785859173.2577336, "description": "I just wrote a functional program in C. It is not doing anything too fancy. But I'm so happy about it because of what it means. For the longest time I didn't know pretty much nothing except of Python. I can use Python for a lot of very interesting stuff. But I want to be able to look at code written in different languages and know what I'm looking at. I want to be able to make changes to the UPBGE game engine for my game [Dani's Race](/games/Dani's_Race) and stuff.\r\n\r\n\r\nI know, I know, UPBGE is a fork of Blender and therefor is written in C++, not C. What am I wasting my time, learning C, for? Well...", "author": {"avatar": "https://blenderdumbass.org/pictures/favicon.png", "bio": "Aka: J.Y. Amihud. A Jewish by blood, multifaceted artist with experience in film-making, visual effects, programming, game development, music and more. A philosopher at heart. An activist for freedom and privacy. Anti-Paternalist. A user of Libre Software. Speaking at least 3 human languages. The writer and director of the 2023 film \"Moria's Race\" and the lead developer of it's game sequel \"Dani's Race\".\r\n\r\n[My Story](/about/who_is_blender_dumbass_)\r\n\r\nMore links to me ( view page source to see how I did those ):\r\n\r\n![internetarchive](https://archive.org/search?query=creator%3A%22J.Y.Amihud%22) ![imdb](https://www.imdb.com/name/nm15214305) ![notabug](http://notabug.org/jyamihud) ![odysee](https://odysee.com/@blenderdumbass:f) ![codeberg](https://codeberg.org/blenderdumbass/)", "invited": ["AngryAlien", "Erwinjitsu", "trueauracoral", "Cricetus", "elban", "Troler", "johny", "RowdyJoe", "adgbeveridge", "doublelion", "alkyilcycloalke", "jedi66", "WanchaiMike", "Trolli123", "ddd", "ByteBlast", "dolphinana", "Madiator2011", "Uriel_Cohen", "mk-la", "TestUser", "Mr._MotherFucker", "MorsMortium", "cptbichez", "dbbs", "Xavi", "test", "Ozoned", "Tcll", "FranzoPow"], "invited_by": "blenderdumbass", "title": "Blender Dumbass", "website": "blenderdumbass.org", "mastodon": "@blenderdumbass@mastodon.online", "username": "blenderdumbass", "email_verified": true, "jami": "", "peertube": "https://peer.madiator.cloud/c/blender_dumbass/videos", "activity_pub": {"pub": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqzwMvWrEKQfGdoyZHn/x\n1XbAxaFagX29NlP7JVC8O7rZWB9jYMzJsn5jWC8+8aWOoBUVDTIY8CZQR+pUiIBc\nBr5XW760pgPGeVCqE50Ts9lhehjr2z+rh0sdeUrNbYyiZ9HB+Wz74M3b08Xde7lj\njzH416uxh1727m+wz04TC4pGOQq4Bzgqyid2RFG44bw150n7QhGwDBqN9vcyS8iR\nJnoUMABFHdu/AhDgoTjHIvXNieNwLKDDfp0a9aWfEEIPxo4SWm9y7azZASZY3KgC\n3JDHvGTtOnGG7nfMSsGSB1gU/vEG0HJ67dOmLt9HQlgkpJCiVYQ4ZuHUWdk1WExA\n7wIDAQAB\n-----END PUBLIC KEY-----\n", "followers": ["https://shark.madiator.com/users/a48b85shv6zk0001", "https://shark.madiator.com/users/a8nizbgfpor600c4", "https://social.dl4ax.radio/users/alexander", "https://mstdn.social/users/lefractal", "https://mastodon.online/users/blendernation", "https://swiss.social/users/rettichschnidi", "https://mastodon.world/users/lesmccann", "https://mstdn.social/users/gwendolenau", "https://sharkey.flauschbereich.de/users/aeeeefmt1fhn0007", "https://mementomori.social/users/levi", "https://mastodon.social/users/schnatterick", "https://mastodon.social/ap/users/115611070628088773", "https://mastodon.social/users/The_Escapist", "https://btfree.social/pub/actors/firesidefedi", "https://cupoftea.social/users/magnetichuman", "https://mastodon.online/users/troler", "https://btfree.social/pub/actors/ozoned", "https://mastodon.social/users/simonwood", "https://mastodon.social/users/rowdyjoe", "https://todon.nl/users/soloojos", "https://mastodon.social/ap/users/116051136211425975", "https://mastodon.social/ap/users/116696538002197507"]}, "css_posts": "", "css_personal": "", "css_user_global_priority": false, "fandomhood_gifts": {"@blenderdumbass@mastodon.online": 80, "@ozoned@btfree.social": 150, "@rowdyjoe@mastodon.social": 47}, "url": "https://blenderdumbass.org/account/blenderdumbass"}, "thumbnail": "https://blenderdumbass.org/pictures/thumbs/c.png", "license": "cc-by-sa", "views": {"amount": 6, "dates": {"2026-08-04": 6}}, "recording": "", "comments": {"comments": [{"text": "> In C print does not exist and you have to define a main() function. So in C a \"hello world\" program is a bit more complicated:\r\n\r\nAnd... your code is going to segfault, you did not provide a return statement.", "username": "Troler", "id": 0, "timestamp": 1785860721.4803662, "p_index": {"2": 36}}, {"text": "> if ( strcmp(text1, text2) == 0 ){ dosomething(); }\r\n\r\nI would write the code as \r\n\r\n```\r\nif ( !strcmp(text1, text2) ){ dosomething(); }\r\n```\r\n\r\nThis is more in style of C, that is, less readable.", "username": "Troler", "id": 1, "timestamp": 1785860966.365077, "p_index": {"2": 74}}, {"text": "c:0\r\n\r\n@Troler I compiled it and tried it and it worked. So apparently it is not that needed.", "username": "blenderdumbass", "id": 2, "timestamp": 1785862535.717867}, {"text": "c:1\r\n\r\n@Troler lol", "username": "blenderdumbass", "id": 3, "timestamp": 1785862566.8513134}, {"text": "c:2\r\n\r\n@blenderdumbass That's because the compiler adds it for you. `main()` is an int function, it requires to return an whole number. Here, the number represents the return code.", "username": "Troler", "id": 4, "timestamp": 1785863413.4868164}, {"id": 5, "activitypub": "https://mastodon.gamedev.place/users/kwramm/statuses/117038423264137602", "username": "@kwramm@mastodon.gamedev.place", "text": "[@blenderdumbass](https://blenderdumbass.org/account/blenderdumbass) the nice thing about both C and Python are that they are nice, concise languages, that yet have a great amount of depth. Now C++, well, there&#39;s also all that sprawl..."}, {"text": "c:4\r\n\r\n@Troler Well I'm greatfull the GCC isn't stupid.", "username": "blenderdumbass", "edited": true, "id": 6, "timestamp": 1785864972.8034172}]}, "collections": [], "languages": {}, "hashtags": ["c", "programming", "clang", "gcc", "python", "c++"], "not_ai_proof": "", "warning": "", "lemmy": [""], "tab": "articles", "url": "https://blenderdumbass.org/articles/c_programming_language_is_an_interesting_experience", "likes": ["blenderdumbass", "https://mastodon.online/users/blenderdumbass", "Troler", "https://mastodon.gamedev.place/users/kwramm"], "boosts": ["https://mastodon.online/users/blenderdumbass"]}