Number of entries: 20
Dave Mitchell writes: I spent last month mainly working on "fuzzer" bug reports, and trying to process some of the backlog in my p5p mailbox. Summary 1:45 "Confused by eval behavior" thread 1:21 [perl #127834] @INC issues 1:26 [perl #128241] Deprecate /$empty_string/ 2:03 [perl #128253] Assert fail in S_find_uninit_var 1:19 [perl #128255] Assert fail in S_sublex_done 0:26 [perl #128257] Segfault in Perl_gv_setref 0:14 [perl #128258] Segfault due to stack overflow 3:16 fix build warnings and smoke failures 8:46 process p5p...
Posted on 2016-08-25 15:32:51


The Captain is Dead is on Steam, and for a limited time you can get it for 10% off retail price. Now you can finally play TCID with your friends and family who are not nearby.

Posted on 2016-08-25 10:00:24

Back in about 2008, I set up a group blog called “Cultured Perl”. The idea was to have a blog that concentrated on the Perl community rather than the technical aspects that most Perl bloggers write about most of the time. It didn’t last very long though and after a few posts it quietly died. … Continue reading "Cultured Perl"

The post Cultured Perl appeared first on Perl Hacks.

Posted on 2016-08-25 09:36:33

Back in about 2008, I set up a group blog called “Cultured Perl”. The idea was to have a blog that concentrated on the Perl community rather than the technical aspects that most Perl bloggers write about most of the time. It didn’t last very long though and after a few posts it quietly died. … Continue reading "Cultured Perl"

The post Cultured Perl appeared first on Perl Hacks.

Posted on 2016-08-25 09:36:33
Dancer2 0.203000 is on its way to a CPAN mirror near you. This version brings some important security improvements and bugfixes: It is considered good security practice to change a session ID whenever any change in privilege level occurs (such...
Posted on 2016-08-25 03:39:26
Posted on 2016-08-25 00:25:00
たとえば以下のケース。Map の中に long が入っていることを検証しているのですが、実際にはいっているのは Integer。 ``` @Test public void foo() { Foo m = mock(Foo.class); m.foo(new HashMap(){{ put("hoge", 4); }}); verify(m).foo(new HashMap(){{ put("hoge", 4L); }}); } public static class Foo { void foo(Map map) { } } ``` この場合、以下のような表示となり、「違わないやんけ!!」となり血管が破裂しそうになります(なりません)。 ``` Argument(s) are different! Wanted: foo.foo(() {hoge=4}); -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Actual invocation has different arguments: foo.foo(() {hoge=4}); -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ``` これが以下のように L suffix がついていれば問題点が歴然となり、血管に優しいのではないか、と考えました。 ``` Argument(s) are different! Wanted: foo.foo({"hoge"=4L}); -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Actual invocation has different arguments: foo.foo({"hoge"=4}); -> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ``` https://github.com/mockito/mockito/pull/571#issuecomment-241416329 そういうわけで、p-r を送ったところ、取り込まれましたので mockito 2.0 では問題点が修正されることかと思います(いつでるんや〜)
Posted on 2016-08-24 21:53:05
Krav Maga according to Wikipedia: Krav Maga /krɑːv məˈɡɑː/ (Hebrew: קְרַב מַגָּע [ˈkʁav maˈɡa], lit. “contact-combat”) is a self-defense system developed for the Israel Defense Forces (IDF) that consists of a wide combination of techniques sourced from aikido, judo, boxing and wrestling, along with realistic fight training. (Unlike MMA) Krav Maga is known for its […]
Posted on 2016-08-24 18:12:37
Posted on 2016-08-24 10:00:12
A dissection of a rather simple API endpoint. Comes with lots of opinions... Slides: Slides for The Europen Perl Conference aka YAPC::Europe ...
Posted on 2016-08-24 00:00:00
If you receive the error message 0xC004c780 when activating a Microsoft product, just wait a few hours. The error message typically means the activation servers at Microsoft are temporarily overloaded. This occurred most recently during the Windows 10 Anniversary Update weekend (8/14/2016)
Posted on 2016-08-23 20:58:06
·        August 23rd & September 6th – Certified Amber Alert and Bully Prevention Training – Send your kids back to school with the skills they need to stand up against bullying and emergency situation know-how.  These classes will happen every hour on the hour.  Students are encouraged to bring friends! ·        August 24th – 27th […]
Posted on 2016-08-23 20:33:05
Posted on 2016-08-23 19:18:44
Posted on 2016-08-23 16:15:00
My latest blog post expands my timeline of the history of parsing....
Posted on 2016-08-23 15:50:13
Posted on 2016-08-23 15:45:06
Posted on 2016-08-23 10:46:00
Posted on 2016-08-23 10:00:16
Most of my recent Perl 6 development time has been spent hunting down and fixing various concurrency bugs. We’ve got some nice language features in this area, and they’ve been pretty well received so far. However, compared with many areas … Continue reading
Posted on 2016-08-22 22:24:26

In OOP (Object Oriented Programming), getter is the generic name for any method that will return the value of one of the attributes of the current instance.

setter is the generic name of any method that will set the value of one of the attributes.

It is clear that a getter needs to return the value of the attribute, but what should a setter return?

There are a number of options.

Posted on 2016-08-22 21:30:01
Last updated: Thu Aug 25 18:13:25 2016