Your textbook taught you 友達 (tomodachi). The street kept ダチ (dachi).
ダチ (dachi) is Japanese slang for friend, buddy, mate. It comes from chopping 友達 (tomodachi) in half and keeping just the ending. That's how slang works everywhere: take a perfectly good word, hack it apart, and suddenly it sounds cooler. You won't hear this in a business meeting. ダチ (dachi) lives in manga speech bubbles, late-night izakaya conversations, and the kind of friendships where formality would feel weird. It's the word you use when someone's got your back, no questions asked.
The kanji 友 (tomo, friend) tells a story too: two hands reaching in the same direction. Cooperation. Mutual support. Someone who walks beside you. That's what a ダチ (dachi) is, minus the politeness filter. Level up with マブダチ (mabudachi): your ride-or-die, your best friend, the person you'd bail out of jail at 3 AM. マブ (mabu) comes from old slang meaning "genuine, real. " A マブダチ (mabudachi) isn't just any friend. They're the real deal. 俺はラスティー・ロボットだ。 ダチにはスカイネットって呼ばれてるぜ. . .