--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
You've almost motivated me to release http://github.com/marak/javascript-fu out of spite.
// removes leading and trailing whitespace from stringexports.toTrim = function( str ){return str;
exports.toPercent = function(number){// TODO: add more stripping and formatting logicreturn number;};
Yeah, I as going to say--look through the rest of it and you see tons of comments about functions being unfinished. Right in that same file a few lines above you see this aswell;exports.toPercent = function(number){// TODO: add more stripping and formatting logicreturn number;};Obviously it's not done yet.
On Tue, Aug 3, 2010 at 9:20 AM, Marak Squires <marak....@gmail.com> wrote:
what part of unreleased did you not grok?
updated docs, added warning
just added?updated docs, added warning
What I would say, be inspired by PHPJS but role your own, it will most likely run faster and perform better if you build a dedicated version without workarounds.
For example my soundex function ( http://github.com/3rd-Eden/node-algorithms/blob/master/algorithms.js#L6-29 ) works faster than the PHPjs soundex http://phpjs.org/functions/soundex:520.
But that's just my 2 cent's If you are happy using phpjs on your Node.js go a head. Use it, it will probably run fine. But just keep in mind you are working on a dedicate JavaScript engine, there is no need to for cross engine compliance / patches / hacks / bacon.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
Arnout Kazemier
in...@3rd-Eden.com
@Marak: You're a bastard, Jim.
Personally, I'd never use php.js for anything real. But it's an
interesting project. The collection of functions in php is like this
huge awful disorganized encyclopedia of random crap that you can do in
code. Showing how to do all those things in JS is useful. If you
need to do something, and know the php function for it, then looking
at php.js can be very helpful, and can be a lot faster than designing
the algorithm yourself. Kind of like how, if you need to build a
red-black B-tree, you might check wikipedia first to read up on the
concepts involved. Occasionally it's simple enough to copy paste, and
other times, you might go "GAH! that's terrible!" and rethink your
approach. (As I'd hope someone would do if they thought that they
need usleep in JS.)
I'm not particularly sold on the "it has so much QA" argument, though.
I've heard the same thing said about php itself. QA can't fix a
design that is fundamentally sloppy, and that sloppy design limits the
utility of the QA. Bad things are lying in wait for any user of php,
or php.js. That "shotgun of functions, then fix them" approach, it's
like evolution: you end up with appendixes and wisdom teeth and
platypuses. Code should be intelligently designed.
--i
Given several billion years, the evolutionary design process would
probably produce great things. Maybe php version 6E10 will have a
function called mk_smallTalk that can chat about the weather and ask
you how your kids are. But most of us don't have that kind of time.
--i
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
So I'm working on a library called VB.JS...
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
--
what part of unreleased did you not grok?
On Tue, Aug 3, 2010 at 12:18 PM, Marak Squires <marak....@gmail.com> wrote:
?
On Tue, Aug 3, 2010 at 12:12 PM, Joe Developer <joe.d.d...@gmail.com> wrote:
On Tue, Aug 3, 2010 at 10:34 PM, Marak Squires <marak....@gmail.com> wrote:
You've almost motivated me to release http://github.com/marak/javascript-fu out of spite.// removes leading and trailing whitespace from stringexports.toTrim = function( str ){return str;};quite.
> >>>> The frontpage ofhttp://phpjs.orgdoes some explaining already. To
> >>>>http://phpjs.org/functions/strtotime:554than you could hack up in a
> >>>> week (although you are an elite programmer). Just because it's being
> >>>> tested & improved upon by so many people in different environments.
> >>>> Reporting problems is as easy as making a comment, and 270 different
> >>>> authors have shared their code, ideas & solutions.
> >>>> As with any open source project we try to get better & better using
> >>>> hard labor, unit tests, and encouraging people to contribute better
> >>>> code.
> >>>> If you've taken our htmlentities, indeed discovered issues and
> >>>> improved it with your own fixes, you should really consider
> >>>> contributing those back.
>
> >>>> Best whishes,
> >>>> > > > > --
> >>>> > > > > You received this message because you are subscribed to the
> >>>> Google Groups
> >>>> > > > > "nodejs" group.
> >>>> > > > > To post to this group, send email to nod...@googlegroups.com.
> >>>> > > > > To unsubscribe from this group, send email to
> >>>> <nodejs%2Bunsu...@googlegroups.com<nodejs%252Bunsubscribe@googlegroups. com>
>
> >>>> > > > > .
> >>>> > > > > For more options, visit this group at
> >>>> > > > >http://groups.google.com/group/nodejs?hl=en.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "nodejs" group.
> >>>> To post to this group, send email to nod...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/nodejs?hl=en.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "nodejs" group.
> >>> To post to this group, send email to nod...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/nodejs?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "nodejs" group.
> >> To post to this group, send email to nod...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/nodejs?hl=en.
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
--You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.