Skip to content

Commit 482e9e8

Browse files
committed
Update site
1 parent daaf42d commit 482e9e8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_octopress/source/_posts/2013-05-03-a-word-on-the-focus-of-php-dot-js.markdown

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ to generate minified packages from php.js functions.
2323

2424
Understandibly this has [raised](https://github.com/kvz/phpjs/issues/75)
2525
[questions](http://phpjs.org/about/index.html#comment-861825612).
26-
It still only takes 2 commands to bundle 4 useful functions:
26+
It is still possible to bundle 4 useful functions:
2727

2828
```bash
29-
# - Note that this combined 6 useful php.js functions into a file called: myphp.js
29+
# - Note that this combined 4 php.js functions into a file called: myphp.js
3030
# and minified version: myphp.min.js in the current directory.
31-
# - Note that this creates a Javascript include that throws all functions in the
32-
# global scope. It's better to put them in a dedicated phpjs object.
33-
PHPJS_VERSION="master"
34-
curl -sk https://raw.github.com/kvz/phpjs/${PHPJS_VERSION}/functions/{datetime/date\
35-
,datetime/strtotime\
36-
,strings/md5\
37-
,strings/vsprintf\
31+
# - Note that this throws all functions into the
32+
# global scope. It would be better to put them in a dedicated phpjs object.
33+
curl -sk https://raw.github.com/kvz/phpjs/31bf3129f08672f8c1d6d0dcad2368ebc4ac57f2/functions/\
34+
{datetime/date\
35+
,datetime/strtotime\
36+
,strings/md5\
37+
,strings/vsprintf\
3838
}.js |tee ./myphp.js && \
3939
curl -vo ./myphp.min.js \
4040
-X POST \
@@ -46,7 +46,7 @@ curl -vo ./myphp.min.js \
4646
http://closure-compiler.appspot.com/compile
4747
```
4848

49-
but some people are upset that it has become harder to bundle all of php.js into one big file:
49+
but some people think php.js should bundle all of it's functions into one big file:
5050

5151
> Not providing an all-in-one, downloadable, minified, ready-to-use
5252
> .js file is going to kill php.js.
@@ -60,7 +60,7 @@ but some people are upset that it has become harder to bundle all of php.js into
6060
6161
I'd like to comment on that here. While I appreciate the sentiment, wether the
6262
project is being killed by these changes depends on how you look at php.js.
63-
To me, it's a resource:
63+
To me, php.js is a resource:
6464

6565
- For PHP developers that want see how it's done in JavaScript
6666
- That enables fun experiments
@@ -75,7 +75,7 @@ If - on the other hand - you think of php.js as a
7575
..then yes, *these changes are going to kill php.js*.
7676

7777
I have limited time to spend on open source, and I want to spend it on things I enjoy and can believe in.
78-
Not on supporting use-cases that keep people from learning or make the web slower.
78+
Not on working to support use-cases that keep new developers from learning, or make the web slower.
7979
I'm sorry if this upsets folks but it really is my free time.
8080

8181
Luckily though for people with different views, I released php.js under MIT so

0 commit comments

Comments
 (0)