There are many ways. Read some competent authors and choose a style that works for you. There are also tons of books and thousands of web pages devoted to the craft of writing.
(I believe you meant “immature,” not “armature,” which is a component of electrical devices. Care in your delivery is important for a writer. If I were your editor I would have to make at least six corrections in your question details.)
Personally, I dislike reading those dialogues that dispense with quotation marks and those that stretch and strain to come up with a hundred alternatives to “said.” She asserted, declared, giggled, taunted. He averred, snarled, trumpeted, murmured. Egad. Use dialogue beats as @Espiritus_Corvus explained, and when the speaker needs to be named, just use “said.” It’s practically invisible to the reader, who just gets the necessary information from it without distraction.
I read a lot (typically more than 500 pages a week), and I actively dislike these things in dialogue:
• lack of quotation marks (sometimes replaced by dashes, italics, and other typographic tricks)
• long exchanges without tags, where I lose track of who’s speaking and have to go back and count alternating lines; sometimes I even have to pencil in the characters’ initials
• too many adverbs: he said eagerly, caustically, threateningly, smilingly
• overdone dialect
• use of some repetitive phrase to identify a character, as if that passed for characterization; for example, one who prefaces half of her utterances with “Oh, my word” or routinely calls everyone “darling”
• inconsistent use of names for a character; for example, if the author calls him sometimes “Bobby” and sometimes “Smith,” I could be well along before I realize that “Bobby Smith” is a single character. Some authors do such thorough sketches and bios of their characters—even the minor ones—that they may forget what they’ve told us; and then suddenly they’re referring to “the woman from Denver” and they don’t realize they’ve never actually mentioned her origins before.
I could go on, but really the best advice for a writer has always been and still is “Read, read, read.”
I would add, “Read attentively and thoughtfully.”