My question involves criminal law for the state of: New York

My friend was pulled over for speeding near Binghamton, NY about an hour after we had smoked a joint. The officer said he smelled it and demanded the marijauna, so we gave him the roach of the joint. He ended up searching the car, and finding about a 1/4 ounce (used for personal use). We were cooperative and he gave each of us an Unlawful Possesion of Marijuana Appearance ticket - and the driver also got a speeding ticket. I had a DWAI when I was 19 years old, but have a had a clean record now for 5 years. I remember getting an ACOD along with counseling and a hefty amount of fines. My two friends have clean records. Mostly, we are all worried if this can/will affect our employment at our current jobs and prospective employment opportunities.
Can anyone please tell me what each of us can expect or any advise of what to do as far as the plea?

Thanks.