der OhR-LING & der/die/das
Below you find three cartoons which should give you an idea about with which endings to use the masculine (der) , the feminin (die) and the neutral article (das). There are certain endings which usually, not always (!!), indicate you the article required.
der: the endings -or, -ling , -smus , -ig normally need the masculine form:
der Doktor
der Liebling, der Lehrling
der Hinduismus
Look at the following inspiration to help you to remember the endings: "Der OR-LING ist SMUS-IG" - /der Ohrling ist schmusig/

die: the endings -ei, -tät , -ik , -keit, -schaft, -heit, -ion, -ung normally need the feminine form:
die Bäckerei, die Malerei
die Realität, die Kreativität
die Logik
die Aufmerksamkeit
die Freundschaft
die Angelegenheit
die Animation, die Aggression
die Lieferung, die Bearbeitung
Remember: "die EI-TÄT-IK-KEIT SCHAFT HEIT die Be-ION-UNG ! /die Eitätigkeit schafft heute die Belohung/

das: the endings -ment, -lein , -chen , -um, -ma, -tum normally need the neutral form:
das Temprament
das Kindlein
das Mädchen
das Album
das Drama
das Datum
Look at the following inspiration to help you to remember the endings: "Das MENT-LEIN CHEN(gt) UM-MA-TUM" -/Das Mäntlein hängt "umadum"/

Please remember, and unfortunately I have to confess, it´s not the easiest topic of German...so it´s full of exceptions. BUT in general it´s always good to remember these endings which could be of a big help when you are unsure which article to use.
Have fun!
*IMPORTANT: all these invented words are orthographically not correct, it just more be help for you to remember the endings!