Dude, you're me. I'm also in uni, computer engineering, so I can get that sweet cash. Other option was the military, but I have problems with authority, would never obey anyone I don't respect, so I knew I'd get in a lot of trouble.
Let's see if I can help. I'm currently in the 6th year, got a couple more subjects and then I'm getting my diploma. First two years I did absolutely NOTHING. Life was meaningless, hurr durr. Then I started studying, actually doing things, started developing some bullshit app. Then, at the end of the 3rd year, grandpa died. He was the only male role model I had (dad left when I was 7). Construction worker, smoked in his adulthood, drank like a pure fucker, fucked bitches despite his marriage, but he was kind, and actually gave a fuck about me accomplishing stuff. I was a sad fucker for a while, but I kept going with lifting and uni, even started keeping a journal. 4th, 5th years went by rather smoothly, I dumped a clingy bitch, passed a lot of subjects, more apps, getting smarter. Start of 6th year, I met the most perfect match of a girl, ever. Thicc squat ass, completely fitness chick, interested in computer networks, listening to the exact same songs as me. Life was heaven, but I was insecure about fucking up. Guess what, I fucked up, she left me, and I still can't live with this fuckup. Same period she left me, grandma came down with some mental illness, and no longer recognizes me. Here's when I started contemplating suicide, because fuck this gay earth. Things aren't looking good, I have lost my faith in me, but I still believe I can make something good happen. I have a job, still have my lil bro, almost done with uni, lifts are slowly going up.
tl;dr We're gonna make it, computer bro, and all the fitbros, hang in there, have faith.