Dib was born and raised in Edmonton, and received his Bachelor of Science in Civil Engineering with Distinction from the University of Alberta in 2010. After several years of engineering work, Dib attended Law School at the University of Alberta and received his Juris Doctor in 2016.
While in school, Dib volunteered for Student Legal Services, working in the Criminal Law Project in the summer of 2014 and acting as a day leader and supervisor in his second year. In his third year, Dib was selected to compete on behalf of the University of Alberta in the Western Canada MacIntrye Cup, a criminal trial advocacy competition. Dib was called to the bar in 2017, and his interests extend to all areas of criminal law offences.