Student or Learner
which one right? why?
Before writing a program.
Before write a program.
The first one is the correct nonfinite clause: 'Before writing a program, you must study a computer language'.
The second is a sentence fragment. It has a finite verb as the object of the preposition, but prepositions only take noun phrases or clauses as objects.