Fwd: jsphp.co: new bcmod function
John Elliot <[email protected]> Tue, 20 Mar 2012 22:13:14 +1100
| Newsgroups | gmane.comp.windows.off-topic |
|---|---|
| Message-ID | <[email protected]> |
Hey there. It struck me that some people on this list might be interested to know about my jsphp.co project. You can check it out at: http://jsphp.co/ Basically it's a content management system / web-based development environment / version control system for collaborative development of a JavaScript library that provides useful functions (initially based on the functions available in PHP, although I can see the scope of the project broadening in the future). My message below should serve to give a fairly good overview of the system's features and what you can do with it. I.e. code editing, version control, version diff comparisons, dependency management and unit testing. Features not mentioned below include developer reporting and attribution, benchmarking, release management and quality control, searching, downloading and comments -- but those features are available too. Regards, John Elliot. -------- Original Message -------- Subject: jsphp.co: new bcmod function Date: Sat, 17 Mar 2012 13:30:37 +1100 From: John Elliot <[email protected]> To: ProgClub programming <[email protected]> I was working on some software and I found myself wanting a version of the PHP bcmod function (basically arbitrary precision modulus operator) in JavaScript. So I went to jsphp.co to download it, only to discover that this function hadn't been implemented yet. So I implemented it. Over the course of the evening I went from my first version at 2012-03-16 19:27 UTC: http://jsphp.co/jsphp/fn/view/bcmod/462 To a version that I felt comfortable releasing by 2012-03-17 02:09 UTC: http://jsphp.co/jsphp/fn/view/bcmod/518 So about six hours, you can see my progress here: http://jsphp.co/jsphp/version/view/bcmod And you can see the diff between the first and last versions here: http://jsphp.co/jsphp/fn/diff/bcmod?a=462&b=518 I configured bcmod to use the 'abs' and 'array_reverse' functions as dependencies: http://jsphp.co/jsphp/dependency/view/bcmod I wrote 50 unit tests: http://jsphp.co/jsphp/test/view/bcmod/43 And they all pass: http://jsphp.co/jsphp/fn/test/bcmod It feels so good having the infrastructure I need to get things done in place, and now I have my bcmod function, and jsphp.co is just that little bit better. John. p.s. if you think my code stinks and you could do a better job of commenting or picking variable names or algorithms then swing by and create yourself an account and get hacking! http://jsphp.co/