Little Moose Goof

Well in my last post I made a little boo-boo. Well a few really. I wanted to get rid of my 'View' class as it was the same as my 'Element' class once I stripped out some parts. Unfortunately I discovered that I have to add in a number of other attributes to my 'Element' class which should never be part of the 'View' class. So I am going to backtrack on taking View out and put it back in.

Now my second boo-boo from my last post, I wanted to have first letter upper case names for my Accessor attributes like this

Bringing my blog back to life

I've been busy, busy, busy. Blogging about Perl is one of those things I always said I would get back to one day.

Well, today is that day.

I'm not going to be a daily poster, but I will put my thoughts and rants up here from time to time.

A Date with CPAN, Part 9: Composition Defeats Inheritance Yet Again

[This is a post in my latest long-ass series.  You may want to begin at the beginning.  I do not promise that the next post in the series will be next week.  Just that I will eventually finish it, someday.  Unless I get hit by a bus.

IMPORTANT NOTE!  When I provide you links to code on GitHub, I’m giving you links to particular commits.  This allows me to show you the code as it was at the time the blog post was written and insures that the code references will make sense in the context of this post.  Just be aware that the latest version of the code may be very different.]

I create "Perl Tweet Timeline News" Web site

I create "Perl Tweet Timeline News". This site picks tweets related to Perl.

This is originally Japanese site. I add English information to this.

Perl Tweet Timeline News

Why do you create this site?

I search Perl information everyday. I'm Japanese. But I don't know what web site write about Perl. I want the site which I can see Perl latest information.

Personal blog entry is very interesting. But personal don't have power of advertise. Many information by company hide these entries.

I want to read the good Perl entry written by good Perl programmer. I want to find good topics. If anyone don't read the entry, the entry is sad.

Please tweet about Perl for many people to be able to read you entry

"Perl Tweet Timeline news" pick the tweet which contains "perl" or "Perl". If you write your entry and tweet by using English, You inform people your entry through this site.

Going Around Again

If you have been following along you may remember this post, in which I introduced what my API was going to look like. Up till now I had only a few of the basic parts of that list in the in Accessor.pm jsut for quick testing. Now before I add in these new elements into my code I think it is time to review my Accessor.pm and see how I can clean it up before I add the others.

So I started with the 'View' and 'Element' classes, bundled in Accessor.pm and I see that I still have a 'retrieve' sub in each. A few posts ago I gave up the idea of trying to enforce the DAD writers to create these subs so there no reason to have them there at all. So out they go.

Perl 6 NativeCall: Look, Ma! I'm a C Programmer!

A while back, I wanted to write a post talking about how Perl 6 lets you use C libraries without writing any C code. It was cool and clickbaity, but I quickly realized two things: (a) the statement isn't always true; and (b) I'm too ignorant to talk about it without sounding like a moron.

And so has started my path to re-learn C (I barely ever used it and it was over a decade ago) and to learn Perl 6's NativeCall in great detail. Oh, and I'll blog about my journey in a series of bite-sized posts. Let's begin!

Use C Libraries Without Writing Any C Code!

NativeCall is one of the standard modules included with Perl 6 that provides interface to C libraries. No compilers or -dev versions of the libraries are needed! And this, of course, means you can use C libraries without writing any C code!

Strawberry Perl 5.24.0.1 released

Strawberry Perl 5.24.0.1 is available at http://strawberryperl.com

More details in Release Notes:
http://strawberryperl.com/release-notes/5.24.0.1-64bit.html
http://strawberryperl.com/release-notes/5.24.0.1-32bit.html

I would like to thank our sponsor Enlightened Perl Organisation for resources provided to our project.

Sydney PM Tonight

Jobs! Hiring!: Staples is hiring 3x perl devs in Sydney. Click here to apply. Also another Sydney Perl Job, details here. And yet another here. Heres one in Newcastle NSW

Update: I have just received notice that Gary Ashton-Jones, a Sydney Perl Monger and long time email list lurker, has lost his battle with prostate cancer. A terrible loss, especially to his wife and children. He will be missed.

Staples have kindly offered to host us tonight (10th of May) at their offices (Level 5, 163 O'Riordan Street, Mascot NSW). This is their first time hosting so everyone be on your best behavior so we can come back.

Start time: 6:30pm

Its ~4 mins walk to the train station, on street parking is free after 5pm.


• Ivan Wills has offered to speak on his latest project VTide

• Llyod Fouriner will speak (more) on his adventures in perl 6


If you would like to purchase a Sydney PM shirt (pictures at https://www.facebook.com/sydneypm) please let me know sizes asap to ensure i bring enough- although i will have a few sizes for impulse buys. They are $30 each and cover costs around meetup.com.

See you all tonight!

More Noise From the Play Pen

Well in today’s playpen I am going to carry on from my last post and get my new name-space all in order so it looks like a re-factor day today. Some of you may of noticed good number of places where I could use all sorts of Moose goodies to save my self time and typing. For example I could create number of roles for the common attributes across my classes or maybe coercion on some of my attributes. Now might seem like a good time to do that.

Well what I have discovered over the years, and some old salts might agree with me on this, is that it is always prudent to build back to last working instance when doing a re-factoring or re-naming, to keep the changes to a minimum and have a point you can quickly get back to.

Wing Workshop at MadMongers Tonight

Wing Workshop at MadMongers Tonight

[From my blog.]

Test2+Test-Simple released!

This morning I uploaded Test2/Test-Simple combined into the Test-Simple distribution. You can find this distribution HERE for download. This is the result of 2 years of development on the testing infrastructure. See THIS document for important information about upgrading.

Because this is such an important module, and this release is such a big change, I have also prepared extra tarballs for Test2 and Test-Simple that completely revert the merge and bump the version by one. If a showstopper or emergency occurs I can upload them in an instant to put things back to mostly the way they were.

I am not anticipating any big issues with this. There has been a lot of testing with a huge focus on backwards compatibility. That said, nothing is ever completely bug free, specially when it is as big as this. If you find any issues please report them!

Along with this distribution I have released the following distributions as stable (up until now they have been listed as experimental)

Perl 5 Porters Mailing List Summary: May 2st-9th

Hey everyone,

Following is the p5p (Perl 5 Porters) mailing list summary for the past week. Enjoy!

Today in the Play pen

So today's romp in the playpen I think it is time I picked a name-space and stuck to it!

Well after much snooping about and pondering on my part I and going to try to stick my DA in the 'Database' name-space.

That was actually the easy part was the above the tricky bit is figuring out want goes under it, as something like this DA::SQL->new() is what programers want rather than a rather long winded Database::Accessor::Driver::SQL::Connector->new();

So what to do?

Well the first thing is to come up with a clean name-space statement so here is mine;

The Database::Accessor package and all packages below it (Database::Accessor::*) are reserved for used by Database Accessors. Related modulers and extension will use the Database::AccessorX::* name-space. The name-space Database::Accessor::DAD::* are reserved for Data Accessor Drivers.

GitPrep 2.0 is released - Support pull request and add good features

GitPrep 2.0 is released at 2016-5-7. GitPrep is portable clone of GitHub. GitPrep work on CGI and own server. GitPrep 2.0 is major version up. It supports Pull request.

GitPrep

Added features is that:

  • Support mail address. you can identify user by mail address.
  • Adding to user id, you can set user name.
  • you can set encoding, and diff option(which ignore space) at each project. If you write the setting in config file, you set these settings at project setting page.
  • Header for reverse proxy is change to X-Forwarded-Proto from X-Forwarded-HTTPS
  • Needed temporary file is created in gitprep directory. not more depend "/tmp"

GitPrep image and example

The following is GitPrep example URL. This is run as CGI at sakura rental server. If you access the following URL, You can use GitPrep. It support SSL.


GitPrep example

Incompatible change

Sparrow project highlights

Hi!

It seems Sparrow project is getting stabilized with version 0.1.*, I don't think I am going to change API radically in the future ... The same for Outthentic which accordingly hit version 0.1.* as well.

So to sum things up:

Interlude 2, in which I write more about the release pipeline

The author tests in my module publication pipeline are only one part of the task. The other tasks are actually running the checks, making sure that my public Github repositories are updated with each release and actually pushing the distribution file out onto CPAN. Of course, I have these steps automated.

Pommie Christmass

pommi2.jpg

Now to circle back again. You may remember many many posts ago I wanted to make it a requirement for my LSD writers to have an SQL sub. I later revised the name to be a _retrieve sub that would be used to format the query up before it goes off to the DB/

Well in the end I think I am just going to leave it up to the LSD writer to write those subs as they see fit.

In the long run I think that is the only way to go as there is no way I can abstract out from my set and into a set of functions that covers every situation. So I guess my Christmas present for my LSD writes it the joy of just using the attributes that I supply from the DA.

Perl 5 Porters Mailing List Summary: April 28th - May 1st

Hey everyone,

Following is the p5p (Perl 5 Porters) mailing list summary for the past few days. Enjoy!

This summary was accidentally deleted and now restored. :)

I write comment

I write comment at the following entries.

How about separating dynamic world and static world?

Current subroutine signatures implementation contains two features which purposes are different

The Secret Life of Acronyms

Years ago I wondered intensely about why some acronyms jarred, and not just government-issue ones either. Let me explain my conclusions.

I'm posting this now because of the push to rename the just-finished QA Hackathon, which personally I feel was marvellous value-for-money.

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.