Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
draegtun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
601.
▲
by
draegtun
14y ago
Its beauty (and power) comes with the consistency of the syntax ala Smalltalk / Lisp. PS. Here's an example of creating something similar with Perl: sub IF (&@) { my ($block, $flow) = @_; [ map { $flow->{$_}
602.
▲
by
draegtun
14y ago
I've always thought the func block list syntax in Perl [1] also had a strong influence on Ruby's blocks. Here's an example of map in both languages: # ruby double = [1..10].map { |x| x * 2 } # perl my @double = map { $_ * 2
603.
▲
by
draegtun
14y ago
Especially when Ruby has no way of scoping these variables... unlike Perl: { # level 1 local $\ = "[1]\n"; some_print_operation(); { # level 2 local $\ = "[2]\n"; some_print_opera
604.
▲
by
draegtun
14y ago
I didn't realise Ruby also had this. Here's the Perl corollary: perldoc English perldoc perlvar links: http://perldoc.perl.org/English.html | http://perldoc.perl.org/perlvar.html
605.
▲
by
draegtun
14y ago
And there were web MVC frameworks before Rails, for e.g. Struts (Java) & Maypole (Perl).
606.
▲
by
draegtun
14y ago
And in case you didn't notice part 2 ( Getting the Stats ) is already posted: http://www.myclojureadventure.com/2012/09/intro-to-clojuresc...
607.
▲
My Clojure Adventure: Intro to ClojureScript - Getting Started
(myclojureadventure.com)
2 points
by
draegtun
14y ago
|
1 comments
608.
▲
The Steve Jobs Market Research Quote Should Rest in Peace
(mvctest.com)
2 points
by
draegtun
14y ago
|
1 comments
609.
▲
by
draegtun
14y ago
Daisuke Maki gave a talk on using STF at livedoor.com - Serve Billions Of User Uploaded Media On PSGI and Commodity Hardware | http://www.youtube.com/watch?v=_SR4xAY7eno
610.
▲
STF - Use commodity hardware to build your own scalable storage system
(stf-storage.github.com)
2 points
by
draegtun
14y ago
|
1 comments
611.
▲
by
draegtun
14y ago
Other Underscore.js ports (that I know of): Perl - http://vti.github.com/underscore-perl/ Lua - http://mirven.github.com/underscore.lua/ PHP - http://brianhaveri.github.com/Underscore.php/ Actionscript 3 - https://github.com/amacdoug
612.
▲
by
draegtun
14y ago
Perl 5.18 may have the following: use mop; class Point { has $x = 0; has $y = 0; method clear { ($x, $y) = (0, 0) } } ref: https://github.com/stevan/p5-mop/blob/master/t/000-examples/...
613.
▲
by
draegtun
14y ago
You can avoid using temporary variables with the @{[...]} and ${\...} idioms: my $x = 1; say "$x + 1 = @{[ $x + 1 ]}"; sub plus1 { $_[0] + 1 } say "$x + 1 = ${\plus1($x)}";
614.
▲
by
draegtun
14y ago
Ditto for Perl because of BioPerl (used in the Human Genome Project) & PDL (which IIRC was being used somewhere at NASA). links: http://en.wikipedia.org/wiki/BioPerl | http://pdl.perl.org/
615.
▲
Chart of the day, Apple vs Microsoft edition (Market Cap v P/E Ratio)
(felixsalmon.com)
6 points
by
draegtun
14y ago
|
0 comments
616.
▲
Seeking prior art where it most often is found in software
(radar.oreilly.com)
2 points
by
draegtun
14y ago
|
0 comments
617.
▲
by
draegtun
14y ago
The HTML::AsSubs example uses functions and works exactly (see [1]) the same way your Lua code does. The first set of examples are just to show that you can model HTML data within common Hash/Array literals available in most languages. re:
618.
▲
by
draegtun
14y ago
Most languages will have literals that can be used to easily represent HTML data: [a => {href=>url, name=>'next'}, 'Go to the', [i => 'next'], 'element']; # perl5 [a => {:href(url), :name<next>}, 'Go to
619.
▲
by
draegtun
14y ago
Also there's Hiccups older Common Lisp relative CL-WHO - http://weitz.de/cl-who/ Other languages also have similar solutions - http://stackoverflow.com/questions/671572/cl-who-like-html-t...
620.
▲
Rewriting published history in Git
(blog.plover.com)
3 points
by
draegtun
14y ago
|
0 comments
621.
▲
English language 'originated in Turkey'
(bbc.co.uk)
5 points
by
draegtun
14y ago
|
0 comments
622.
▲
by
draegtun
14y ago
>Camping used to be the go to ruby microframework until _why's disappearance. Then dev stalled for a while and Sinatra took its place. It has since been revamped and is actively maintained. I don't recall there being any stalling wh
623.
▲
by
draegtun
14y ago
> This is how you read a file in Perl? Nope. I use Path::Class from CPAN... use Path::Class 'file'; my $file_text = file('data.txt')->slurp;
624.
▲
by
draegtun
14y ago
They look fine to me and it also look good written in Perl :) use List::Util qw(sum max min); # 1 map { $_ * 2 } 1..10; # 2 sum 1..1000; # 3 my @wordlist = ("scala", "akka", "play framework", "sbt", "typesafe"); my $twe
625.
▲
The Comparative Productivity of Programming Languages
(drdobbs.com)
4 points
by
draegtun
14y ago
|
1 comments
626.
▲
by
draegtun
14y ago
Seen lots of template systems use this "Push style" before - http://www.perlmonks.org/?node_id=674225
627.
▲
Perl: The Next Generation (s/Perl/Opensource/) [Video Keynote YAPC::NA 2012]
(youtube.com)
9 points
by
draegtun
14y ago
|
0 comments
628.
▲
by
draegtun
14y ago
re: Perl posts on HN - There's actually quite a lot of Perl articles posted here (and I maybe the main culprit of that!). However only a small subset percolate to front page. re: startups - Ones that quickly come to mind... Lokku, Blekko,
629.
▲
Damian Conway weighs in on new features, best practices and Perl’s future
(radar.oreilly.com)
6 points
by
draegtun
14y ago
|
0 comments
630.
▲
YAPC::NA 2012 (Perl) Survey Results
(yapc-surveys.org)
2 points
by
draegtun
14y ago
|
0 comments
More ›