Days 55 - 75 out of #100DaysOfCode
Days 55 - 75 out of 100 days of code
November 11 - December 1
This was such a long break from posting, my apologies. However, it was all good things that were happening while I was away. I prepped for an interview, which was great, and received the take-home coding project challenge. I was asked to create an ATM MVC project with a database, logic, and interface and am waiting for the code review interview!
The interview was on the 17th of November, and it was in person, which was so exciting! It was enjoyable not to deal with asking someone to repeat themselves because of a lost connection or because someone’s computer glitched and they froze. From what I have seen in the work environment and culture, it is a place I could be me, which is the best kind of business to be. There are some places I have considered applying to and places I have interviewed at where I got the vibe of needing to fit a specific mold. Hit the support button for this article, if you know what I mean.
After the interview, I picked up my son from school, and we celebrated by going to get ice cream!
I wrote the database scripts in MySQL, which had tables of User, Bank_account, and Transaction, and each had several rows. I had just been practicing with MySQL, so I whipped out those creation scripts in no time.
The logic was held in the Controller section and utilized in JDBC (Java Database Connectivity). The program used the CRUD operations of creating a bank account, reading account info, updating pin, deleting an account (which transferred the balance to a different account, created a transaction in the account the money was transferred to, and then deleted the empty account). It also supported a login that used the attributes of credit card and pin, and if it logged in, it would give you a menu of options. It also had the capabilities of searching and sorting through transactions.
One problem I ran into was the connection. I first created a console app to make sure the methods worked before adding the GUIs. Once I was calling the methods in the GUI, the logic would not communicate to the database anymore. I fixed this by creating a simple connection object in the Model package of the MVC layout and calling it in create and show GUI in the picture right below.
I used very very basic looking Swing Java GUIs (Graphical User Interface), which were held in the View section of the MVC pattern. I used Jtextboxes for the login and data entry for the CRUD operations and Jbuttons for the menu. Each menu option calls to a different GUI that calls (with the data entered into the Jtexboxes) to a parameterized method in the Controller class, ATM.
I feel incredibly confident in this job opportunity, and I had a great experience creating this project. Even if this does not move forward, I learned a lot, and I now have another project to add to my portfolio. I am looking forward to meeting with CFM to discuss my code and see how my program can be made more efficient.
If you see anything in my code that can be improved, or have any helpful tips in general, please shoot me a message!
Thanks for reading,
Mara Munoz