Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

JavaScript

Name: Anonymous 2010-12-26 19:32

How many of you use JavaScript? I'm interested in getting into it. Is it used for anything other than web development?

Name: Anonymous 2010-12-26 19:47

I know it and use it, it's would be a nice language if wasn't full of design flaws (like the auto-coercing == and !=).

Other than web dev, it is usually used as extension language (like for the Conkeror browser or QtScript).

It is also used as target language for compilers (I'm serious, see http://code.google.com/p/emscripten/)

But it is used mainly for web development.

Name: Anonymous 2010-12-26 19:49

It isnt a LISP. /thread

Name: Anonymous 2010-12-26 20:05

get the book "Javascript: The Good Parts"

javascript is an underutilized language that is worth study

Name: Anonymous 2010-12-26 21:24

>>3
fuck off lispfag

Name: Anonymous 2010-12-26 21:25

>>5
*fag
Go back to FUCK OFF, ANTILISPFAG, please.

Name: Anonymous 2010-12-27 0:49

>>6
fuck off, polefag

Name: Anonymous 2010-12-27 6:43

Can you do the SICP exercises with JS ?

Name: Anonymous 2010-12-27 8:37

>>1
JavaScript can be used in many different contexts. JavaScript engines like Rhino or V8 let you execute JavaScript code from a Java or C++ program.

Although it's mainly known as a client-side web language, JavaScript is starting to gain some traction on the server as well: see Node.js.

Name: Anonymous 2010-12-27 8:38

node.js

Name: Anonymous 2010-12-27 10:05

jQuery is pretty rad

Name: Anonymous 2010-12-27 14:49

I've been doing some js for work recently, just some quick hacks for form submission etc.. it's not actually a dreadful language and the DOM is a nice concept.

Name: Anonymous 2010-12-27 16:40

>>12
DOM is a nice concept
The idea is OK, but the execution is so poor that it completely outweighs that. The DOM APIs are just awful.

Name: Anonymous 2010-12-27 16:45

>>8
Yes.

>>9
If it hadn't many flaws, it would be much more used as scripting language too.

Name: Anonymous 2010-12-27 17:32

>>14
If it hadn't many flaws, it would be much more used as scripting language too.
I enjoy JavaScript whenever it's not frustrating the shit out of me. I'm pleased by the look of the ECMASCript 5 strict mode stuff: disallowing implicit access to the global object, throwing errors instead of silently failing, etc. Perhaps this will mitigate some of the flaws that inhibit its adoption outside of web browsers.

Name: Anonymous 2010-12-27 17:40

>>15
I like it too, it feels like Lisp in C-style syntax, if you use it in a functional way. I also enjoy the prototype-based OO.

I didn't know about of that strict mode stuff, I'll surely like it.

Name: Anonymous 2010-12-27 23:34

alias ls='ls --color=auto -F'
alias l='ls --color=auto -F'
alias la='ls -a --color=auto -F'
alias l.='ls -d .* --color=auto -F'
alias ll='ls -lh --color=auto -F'
alias lla='ls -alh --color=auto -F'
alias ll.='ls -lhd .* --color=auto -F'
alias srm='shred -zun 10'
alias grep='grep --color=auto'
alias hoogle='hoogle --count=15 --c=true'
alias hlint='hlint -c'
alias v=xzgv
alias mf="echo No you don\'t."
alias sl="echo Be glad that I haven\'t installed that train thing."
alias emacs=vim # 'rm -rf ~/*'
alias ed=vim
alias teco=vim
alias VisualStudio=vim
alias logger='su -c "xtail /var/log/{{auth,daemon,kern,tor/tor,lighttpd/{access,error}}.log,maillog,denyhosts}"'
alias startx='exec startx -- -dpi 75 -nolisten tcp'

alias -s jpg=xzgv
alias -s jpeg=xzgv
alias -s png=xzgv
alias -s avi=mplayer
alias -s ogm=mplayer
alias -s mkv=mplayer
alias -s wmv=mplayer
alias -s pdf=acroread

alias -g L='| less'
alias -g H='| head'
alias -g S='| sort'
alias -g T='| tail'
alias -g V='|& vim -'
alias -g N='> /dev/null'
alias -g E='2> /dev/null'

lf () {
    if [[ -z "$1" ]]; then
        echo "Usage: lf <file> where <file> =~ /*.\\.(zip|tar.gz|tar.bz2|tar|tar.lzma|tar.xz|rar)/"
        return 1
    fi
    case "$1" in
        *.zip)
            unzip -l "$1"
            ;;
        *.tar.gz|*.tar.bz2|*.tar)
            tar tf "$1"
            ;;
        *.tar.lzma)
            tar --lzma tf "$1"
            ;;
        *.tar.xz)
            tar tJf "$1"
            ;;
        *.rar)
            rar lt "$1"
            ;;
        *)
            echo "Unrecognized filetype $1"
            return 1
    esac
}

ex () {
    if [[ -z "$1" ]]; then
        echo "Usage: ex <file> where <file> =~ /*.\\.(zip|tar.gz|tar.bz2|tar|tar.lzma|tar.xz|rar)/"
        return 1
    fi
    case "$1" in
        *.zip)
            unzip "$1"
            ;;
        *.tar.gz|*.tar.bz2|*.tar)
            tar xvf "$1"
            ;;
        *.tar.lzma)
            tar --lzma xvf "$1"
            ;;
        *.tar.xz)
            tar xvJf "$1"
            ;;
        *.rar)
            rar x "$1"
            ;;
        *)
            echo "Unrecognized filetype $1"
            return 1
    esac
}

Name: Anonymous 2010-12-27 23:35

FUCK, wrong thread!

Name: Anonymous 2010-12-28 15:55

FUCK, wrong anus!

Name: Haxus the incorrect 2010-12-28 19:31

FUCK, wrong Haxus!

Name: Anonymous 2010-12-28 19:50

FUCK, wrong recur*** stack pointer monadic overflow

Name: Anonymous 2010-12-29 15:54

FUCK, wrong recur*** stack pointer moronic overflow

Don't change these.
Name: Email:
Entire Thread Thread List