Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
b3b343777yYeah. Pointers can be quite confusing in the beginning. But if you understand wtf is going on it should be no problem anymore :)
C btw can be really useful imo so I guess it didn't really hurt. I wish I could be in school at 2am too 😮 -
Voxera115857y@b3b3 if for no other reason than to understand more how it works behind all nice to have in Java or C#.
-
@b3b3 I’m happy that I got it working because coming from a java background I was quite nervous about how I would do with a non object oriented language.
I always knew I was gonna have to learn it, and tbh this has just taught me that I will do way better if I try and learn a bunch of languages by doing ‘simple’ projects like this one 🙂
If I have basic knowledge in a bunch of languages then when I get asked to do a project in them I won’t get caught out like I did this time. 👍🏼 -
Voxera115857y@b3b3 ok. On memory or performance limited platforms I can see the advantage of c or c++.
C# has the option to go all the way and compile to native even if you rarely do it and with the coming boom of IOT I expect MS to go further in that direction.
Also mozilla rust looks interesting there :D -
@Lahsen2016 I’m sure you could :P all you have to do is give it a file greater then that if the teachers specs. Because we weren’t allowed to dynamically allocate memory all you have to do is feed it a word longer then 34 letters and down it goes 😅😝!!
-
@Lahsen2016 that’s what the second assignment is. Same output but with dynamic memory allocation :) this was our first time using this language so I think she wanted to teach us slowly...... but I do wish teachers didn’t restrict us like that.
I’m a bit ahead of my class because I took some algorithm courses in the summer, so while most people were thinking about how to do it all with arrays I immediately went for a dynamic algorithm.
So I guess she didn’t want to put too much pressure on people who didn’t know about the algorithms which I think we learn next week. -
@Lahsen2016 but I do agree that specifically saying that we weren’t allowed was a bit odd. Why stifle peoples creativity and self learning? I love teachers who encourage you to try to think outside the box and learn stuff on our own 😄
-
TobyAsE28447yOne of the first things the makers of java said was: Fuck pointers for the user, they only cause chaos and confusion. I think they are right, you can do almost everything you can do with pointers in another way. On the other hand I think that pointers are one fundamental principle of computers and you feel a lot more "intimate" with your computer (mainly how CPU and ram works) if you understand them.
Well after 3 days of fighting with C I finally got my assignment done ✅ :D the assignment was simple and would have taken me like 5h max to do in Java( which is my first and most proficient language).
However I was away from class for a while and subsequently had to code the project while teaching myself about C and pointers .🤖
This is why we don’t skip school kids 😄
P.S It surprised me how many other people were in the schools lab at 2AM to push the assignment to the local git 😮
rant
school late night git c