Home > Mobile >  What is mean by Code generation libraries?
What is mean by Code generation libraries?

Time:05-12

Today I was going through the Android libraries update by referring some videos and documents. There was a term mentioned Code Generation Libraries.

Can any one explain what does it mean or what type of libraries are addressed as Code Generation Libraries?

Thanks In Advance.

CodePudding user response:

A code generation library is a library that, if you use it, will generate some code for you, let me explain it :

One of common things in programmation is for example login forms. You use it really often and they are almost always the same structure (let say an email and a password).

If you are a web developper you might be bored to type every days the (not accurate) 10 to 30 lines of code that will create a form with :

  • 2 input fields (1 for email, 1 for password), having an email "type" check etc...

So you might want to have it done real quick ! Here comes the library : by using it, you might juste use a specific syntax (not accurate) like mylibrary.createlogin(email,pwd) and tadaaa I could create what you need.

I hope I've been clear enough, feel free to ask if not.

  • Related