Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
draegtun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
84 ms
·
751.
▲
by
draegtun
15y ago
> Isn't there also a Scala DSL that lets you make it look like basic? Yep, it's called Baysick - https://github.com/fogus/baysick
752.
▲
by
draegtun
15y ago
... and Perl except its called my instead of let
753.
▲
by
draegtun
15y ago
Yes explicit is best and in Perl its very clear what you want... my $x = 10;
754.
▲
by
draegtun
15y ago
For Perl there is Perl::Critic which also highlights when you're not adhering to best practice idioms. I use it regularly on client projects (it's like giving your code a certification!) and its heavily used/recommended in the Perl communit
755.
▲
Gtk Mandelbrot (Niecza - Perl6 on .Net / Mono)
(perl6advent.wordpress.com)
2 points
by
draegtun
15y ago
|
0 comments
756.
▲
Exploratory parsing with Perl 6
(perl6advent.wordpress.com)
2 points
by
draegtun
15y ago
|
0 comments
757.
▲
First Earth-sized planets spotted
(bbc.co.uk)
2 points
by
draegtun
15y ago
|
0 comments
758.
▲
by
draegtun
15y ago
Some extra links: * Entries page - http://entries.contest.metacpan.org/ * Initial blog post - http://entries.contest.metacpan.org/2011/12/metacpan-logo-co...
759.
▲
Privacy and OOP (Perl 6)
(perl6advent.wordpress.com)
2 points
by
draegtun
15y ago
|
0 comments
760.
▲
by
draegtun
15y ago
Another visualisation of CPAN can be found at CPAN Explorer: http://cpan-explorer.org/
761.
▲
by
draegtun
15y ago
> The Common Lisp Object System (CLOS) also uses meta classes And so does Moose which sits on top of Class::MOP - https://metacpan.org/module/Class::MOP
762.
▲
by
draegtun
15y ago
Really cool! And so grateful that Perl/CPAN has great name spacing conventions to make this possible. Here's the original post on PerlMonks: http://www.perlmonks.org/index.pl?node_id=943704
763.
▲
Meta-programming: what, why and how (Perl 6)
(perl6advent.wordpress.com)
30 points
by
draegtun
15y ago
|
3 comments
764.
▲
by
draegtun
15y ago
> they'll say "Wtf, stop wasting your time with perl. It's a DEAD LANGUAGE, WAKE UP". This kind of posts should just get deleted and the user warned and then banned from HN imo. It would be good if something could be done. Nearly eve
765.
▲
by
draegtun
15y ago
You probably couldn't see my earlier Perl comment in all the jetsam & flotsam here :) ref: http://news.ycombinator.com/item?id=3342952
766.
▲
by
draegtun
15y ago
For Perl mongers interested in WebSockets then take a look at... * Mojolicious web framework which managed to keep up with the constantly moving standard! - http://mojolicio.us/ * PocketIO which is a Perl implementation of SocketIO - htt
767.
▲
by
draegtun
15y ago
With Perl you would use Enbugger & gdb using these instructions: https://metacpan.org/module/Enbugger#From-gdb
768.
▲
by
draegtun
15y ago
The Nagare framework also does something similar: http://www.nagare.org/trac/wiki/PresentationTier
769.
▲
by
draegtun
15y ago
Push style template is a phrase I've seen used to describe these kind of templating systems: http://news.ycombinator.com/item?id=2238885
770.
▲
by
draegtun
15y ago
Think of your HTML as being data along the same lines of JSON, XML or any other data feed. Then tell your designer/front-end person to just create the necessary CSS & Javascript to apply to it. Thus you remain in full control of the
771.
▲
by
draegtun
15y ago
> don't use templates, generate HTML from code with a DSL that makes HTML I agree. This is how I've done it for last few years and have recommended it before on HN. ref: http://news.ycombinator.com/item?id=1518096 | http://news.yc
772.
▲
by
draegtun
15y ago
This is called the Phrasebook pattern and was probably being pushed as best practise until ORM's took hold. * http://ootips.org/yonat/patterns/phrasebook.html * http://www.perl.com/pub/2002/10/22/phrasebook.html * https://metacpan.
773.
▲
by
draegtun
15y ago
Instead of points 3 & 4 you could replace it with... 3. Load SQL module from CPAN . Something like SQL::Abstract ( https://metacpan.org/module/SQL::Abstract ) or Fey ( https://metacpan.org/module/Fey ) would slot in easy for most task
774.
▲
by
draegtun
15y ago
Yes the problem isn't getting the text out (of a PDF) but getting it out in some consistent manner! I've been working on a clients project for last few weeks parsing historic tabular PDF reports into some semantic form. After some testin
775.
▲
by
draegtun
15y ago
re: clean perl and generic functions - have a look at Moose. Its Perl's equivalent of CLOS. * http://moose.perl.org * https://metacpan.org/module/Moose * https://metacpan.org/module/Class::MOP * BankAccount example ( Practical
776.
▲
by
draegtun
15y ago
Yes its amazing how easy it sneaks in! Was looking at a gist of mine recently ( https://gist.github.com/1222875 ) and it suddenly jumped out at me! my $hits = ... for my $hit (@$hits) { my $user = $hit->{_source}; ...
777.
▲
by
draegtun
15y ago
Thus far I've found this the easiest article to grok DCI: https://metacpan.org/module/DCI
778.
▲
by
draegtun
15y ago
Mozilla did donate $10k to The Perl Foundation back in 2007. I think it was mainly a philanthropic action to help Perl6/Parrot. However they may also be eyeing a future possibility for hosting their Firefox languages on top of the Parr
779.
▲
by
draegtun
15y ago
Also see Acmeist Package which allows you to create packages in CPAN, PyPI and Ruby Gems. ref: https://metacpan.org/module/Package & http://acmeism.org/projects/
780.
▲
by
draegtun
15y ago
My prime goal is early retirement. My father and his father both died at 57 so I don't won't to work till I drop :( Secondary goal is to make sure my kids get a good start in life. This unfortunately conflicts a bit with first goal! Third
More ›