14
thestr
5y

A friend came to me whether i want to do a project on c++(someone asked him to find a c++ guy).
Me needing money didn’t refuse. Even though i am a Java developer with 0 skills on c++, but wanted to give it a try.
So project started, and it was about a plugin for rhinoceros app(3d graphics app).
The plugin was simple, had some views and some services to upload a file into s3 and some api calls, not something complex..
So i ended up working on the project together with my friend(web dev).
So long story short, we had a lot of issues, but considering we both had no knowledge on c++, we were really lucky to finish the product almost on time(3 days after).
Did no memory management even though i’ve read that we have to do that by our selfs and that c++ doesn’t have garbage collector.
But the plugin worked great even without garbage collector.
Had a lot issues with string manipulation, which almost drive me crazy.

PS: did a post here before taking the project, to ask whether it is a good idea to take the project or not, had some positive and some negative replies, but i deleted the post since i thought i was breaking the NDA i signed πŸ˜‚πŸ˜‚

PS2: just finished OCAJP 8 last week with a great scoreπŸ˜ƒ

Comments
  • 4
    I hope you at least used STL containers to allocate memory and not malloc directly
  • 1
    Idk what you did, but no garbage collection normally means leaking memory. It does work well, for 5 minutes if you're lucky, then it crashes with an out of memory error.
  • 4
    If you have normal instances and do not allocate memory yourself, the destructors will take care of everything. No need for a garbage collector at all.
  • 0
    @Lor-inc then we can only hope working for longer than a few minutes wasn't a requirement
  • 0
    @sWaT It could also be a CGI type application, that runs once to return something.
  • 1
    @beegC0de @Lor-inc The app was an MFC application, which was just a few simple dialogs with the options to go back back at the beginning, which was also developed using threads and events to change the dialogs, so you could use the plugin for more than a just few minutes.
    @beegC0de if by that you mean, if i used new or i didn’t, i have to say there are places i did, and there are some i didn’t. Most of when i used was to instantiate dialog views.
    I tested the app many times, specifically to see if there were any leaks, but it worked great..
    Only thing i know is that they checked the code and they didn’t say anything, even though there are two things i know i did terrible.. memory management and string manipulations, but if they are happy then i don’t have to worry about that πŸ™‚
    Also they want to collaborate in the future, so that’s a good sign πŸ˜ƒ
Add Comment