Skip to content

Instantly share code, notes, and snippets.

View fmendozaro's full-sized avatar
🍵
[Drinks tea in Spanish]

Fernando Mendoza R. fmendozaro

🍵
[Drinks tea in Spanish]
View GitHub Profile

Spring Boot Assessment

Build a spring boot app that has the Create and Read functionality for a

  • Build an Order model with at least 3 fields:
    • id
    • order number
    • email
  • Once the table is created in your database, insert a couple of records manually.
  • Build a Repository for Orders named OrderRepository

Testing Code and Working with a Partner

https://www.youtube.com/watch?v=dsF9dlzIKtE

jUnit Practice Opportunities

Java

Go back and implement a Maven project structure to these past projects and add tests to them, you can either add tests to the existing code or re-do them from scratch while you apply the full TDD cycle.

@fmendozaro
fmendozaro / MySQL_5-7_macOS.md
Created May 22, 2020 15:18 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@fmendozaro
fmendozaro / fix_mysql_install
Created May 22, 2020 15:01 — forked from ryanorsinger/fix_mysql_install
Reinstall MySQL on a laptop that had an old version of homebrew installed
brew uninstall mysql
rm -rf /usr/local/var/mysql
sudo chown -R $(whoami) $(brew --prefix)/*
brew install mysql@5.7
If there are other problems, check out the link below:
https://gist.github.com/operatino/392614486ce4421063b9dece4dfe6c21

Keybase proof

I hereby claim:

  • I am fmendozaro on github.
  • I am fmendozaro (https://keybase.io/fmendozaro) on keybase.
  • I have a public key ASB9RyKbL22qNRfiyf6mlL_I_2xeEyDp_UPwVPRgPQg7Ago

To claim this, I am signing this object:

cat ~/.bash_profile > ~/.zshrc
### Bonus Improve your Adventure Game
- Create a new branch called `OOP` in your Adventure Game repo.
- Start to improve the code using OOP best practices, start with small steps.
- A couple of suggestions are:
- Create a Player class for the actual user and it's fields and actions.
- Both Players and Enemies could be defined in the same class since they share a lot of fields in common like: `Health`, `Attack`, `Defense`, etc. And just have a boolean property that difference each other i.e. `isHero = true`
- Try to identify what's the best datatype for each field, talk to your partner about this.

Bonus

We will simulate an online shop with items on sale, but first:

  • Create an HashMap<String, Boolean> called items and create at least 6 items on it, where the String is the name of the item and the Boolean indicates if it's on sale.

Read about the @RequestParam annotation in order to handle Query Strings: https://www.baeldung.com/spring-request-param and create a ShopController that handles the following URLs:

  • /shop. The controller should show all the items in a HTML list (UL) format.
  • /shop?sale=true. The controller should show items on sale in a HTML list (OL) format.
# Java Fundamentals
## Main Concepts to be Assessed
- Object Oriented Programming
- Method Overriding and Method Overloading
- Arrays
- Inheritance and Polymorphism
- Interfaces
- Collections
const words = {"data":[
{"word":"zero"},
{"word":"midnight"},
{"word":"yard"},
{"word":"volume"},