SafetZahirovic / QuizMaster

A small quiz app.
1 stars 0 forks source link

Hardcoded questions #2

Open BlackCapCoder opened 6 years ago

BlackCapCoder commented 6 years ago

https://github.com/zahsaf17/QuizMaster/blob/c181988274c1b2740d52304bf563931a2cf6d1d9/src/Resources.java#L12-L63

Hardcoding is extremely bad practice, because now you/the user has to recompile your entire program whenever they want to add/change questions.

Ideally this information should be loaded from a file.

SafetZahirovic commented 6 years ago

I couldn't agree more. The plan is to have a son file do the hard lifting there, and maybe make a Gui that takes in that json file for users to make their own questions. Thanks for feedback though :).