3 ms·
the point of the library is so it doesnt get rewritten - did you open source what you did before?
by manigandham 9y ago
the point of the library is so it doesnt get rewritten - did you open source what you did before?
- wcummings 9y agoHOT TAKE - code reuse is good and all that, but I think there's a pressure to produce "open source" code that causes people to publish things that might be useful to them but are not entirely relevant.
- cafebabe1991 9y agoIsn't it fair to any developer to just share what he/she has created all by themselves with the outside community ? I wanted to do the same, guys.
- ricardobeat 9y agoYes, that's the point I'm making. You can currently find dozens upon dozens of the same in NPM: https://www.npmjs.com/search?q=form+serialize https://www.npmjs.com/search?q=form+serialize
- cafebabe1991 9y agoThanks for sharing this link, I have however used this library. Things that I did not like in this because of the following reasons 1. I cannot put the values of one object inside the other unless they come under the same parent. 2. Arrays in my case can be created in one go and you need not specify the array indexes hard coded in the html itself. 3. In my case some inputs were not inside any forms. This library mandates that it should be so it did not work for me. I understand my code will be far less sophisticated but I made it to solve a problem and learn javascript as well. I did and wanted to see how many others face the same problem and can use it.
- cafebabe1991 9y agoIt is on github for over an year now. I was working on my own startup that time and hence could not get much time to publish it here. Now I had time so publishing here to get feedback on it.