Implementing ADT's

Okay, so I'm going to shame myself here and admit that I am far from being a good programmer, and this is one fine example as to why. I'm currently in university, studying CS, anyway, I've learnt a lot about different ADT's and algorithms, however, for some reason, I seem to be struggling to implement these ADT's, even though I understand how they work well enough.

Has anyone else ran into this problem? - I mean I can implement them, but it would take me longer to do so than what I feel it should. Are there any good readings that have helped you guys? Or do I just need the good ol' fashioned trial and error approach? I know that you get better at programming the more you do it and the more often you do it, just like anything else, but is there anything that you guys can suggest to help me with my specific problem with programming?

I personally think that I just need to practise implementing these ADT's before it becomes second nature, but I thought that if you guys could help me in anyway, then that would be a great start?

I mean I feel that my code styling and layout and all that is 10/10, my lecturer gave me 100% on a piece of coursework because my code was so clean and tidy.

ADTs are messy little bastards to work with, i was allmost on a firstname basis with the null pointer exception during my tour of duty with those ADTs.
Worst part is that once done with the course, all you'll be using is dictionaries, and arrays, lists, and so on, but it's a good way to learn how binary searches works in theory, and so on.
Programming is a craft, basically just keep practicing, and don't sweat it that you're struggeling with the ADTs specifically, they are some of the worst implementations you'll ever do, cause there is just so much that can go wrong to the point where you just grit your teeth at times.

1 Like

Well I'm certainly very glad to hear that in all honesty! I'm getting there, it's just a very slow process with me, I keep trying to base everything off of a linked list, because I can make a linked list quite easily. It's the one ADT that I don't seem to struggle with in terms of implementation.

I actually found someone else's implementation of a graph online, which is what I'm currently working on and it actually seems to be quite simple, and quite effective.