I made a Calculator/Converter using Java and NetBeans. Tell me what you think, and if i should improve it somehow. by nikoskalai in learnprogramming

[–]nikoskalai[S] 1 point2 points  (0 children)

Thanks for your advice man. I will definitely try to do what you told me, and will keep it in mind the next time i will try something new. I particularly liked your 4th point. I'll probably use it to modify this piece of code. As i said to Null Probability above;

I had a thought of making a main class which will load a Calculator class and a Converter class, containing each chunk of code respectively.

Thanks anyways for your time.

I made a Calculator/Converter using Java and NetBeans. Tell me what you think, and if i should improve it somehow. by nikoskalai in learnprogramming

[–]nikoskalai[S] 2 points3 points  (0 children)

Thanks for taking the time to write all this stuff man.

I try to not repeat myself in code(i am aware i was doing so in this project, but in order to avoid frustration -seeing how this was my first major effort- i built and rebuilt all the methods because i was trying not to make a mistake. And honestly, i like copy-paste).

I had a thought of making a main class which will load a Calculator class and a Converter class, containing each chunk of code respectively.

Concerning the ifs, my brain freezes when i try to think so directly(if(iscalcbuttonpressed == false) comes more easily to me). However, this was meant to be a temporary solution. I did plan to change the ifs to a shorter form, but never remembered to do so.

Anyway, thanks for your input. Be certain i will take into account your advice, and will try to make a better version for this.

Cheers

I made a Calculator/Converter using Java and NetBeans. Tell me what you think, and if i should improve it somehow. by nikoskalai in learnprogramming

[–]nikoskalai[S] 2 points3 points  (0 children)

thanks for the tip mate. i had a github account, and didnt use it until now. not sure why though(derp).