SlideShare uma empresa Scribd logo
1 de 52
Baixar para ler offline
はじめてリリースした 
CPANモジュールのおはなし 
2014-08-30 YAPC::Asia 2014 
@issm(いわた)
お前だれよ 
•@issm(いわた) 
•名古屋の隣 
•小規模販売系サービス 
•受注側の表・裏 
•発送管理の表・裏 
•Perl
背景
とある単位のデータオブジェクト X 作成,この際,予め定め 
た仕様に則った「ある規則」で「文字」をもつ.この「文字」 
は「数・アルファベットのみ」であり,属するオブジェクト 
O 内において「順序」がある.例えば,オブジェクト O1 下 
で作成 → "1...0",オブジェクト O1 下で作成 → "1...1", 
オブジェクト O2 下で作成 → "1...0",...,オブジェクト 
O1 下で作成 → "1...a",オブジェクト O1 下で作成 → 
"1...b",...,といった感じ.とある生成処理では,オブジェ 
クト X のこの「文字」をファイルのパスに利用するものがあ 
る.とある日,この生成処理でファイルパスまわりのエラー 
が出ていた.そのオブジェクトの「文字」を確認したところ 
"/" が含まれていた.データオブジェクト作成の際の「文字」 
を生成する部分の実装を確認したところ,単に Character 
Code を ++ しているだけで,使用にある「数字・アルファベッ 
トのみ」という制約も見当たらない感じだった...
結局どうしたいの?
•文字を「インクリメント」できる 
•そのルール指定できる 
•文字の集合とか 
•インクリメントの順序とか
書いてみた
String::Incremental 
https://github.com/issm/p5-String-Incremental
DESCIRPTION 
•文字を「インクリメント」できる 
•そのルール指定できる 
•文字の集合とか 
•インクリメントの順序とか
SYNOPSIS 
use String::Incremental! 
qw(incremental_string);! 
! 
my $str = incremental_string(! 
'foo-%2=-%=',! 
[0..2],! 
'abcd',! 
);
'foo-00-a' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;
'foo-00-b' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;
'foo-00-c' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;
'foo-00-d' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;
'foo-01-a' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;! 
$str++;! 
...
'foo-22-d' 
0! 
1! 
2 
a! 
b! 
c! 
d 
0! 
1! 
2
$str++;
dies
以上 :)
PrePANへ
2014 08-30 YAPC::Asia 2014 LT
torbjorn@github: 
“Interesting idea. I think it deserves to 
be released and I have no comments on the 
name, seems fine.”
ポジティブっぽい♥
% minil release <ッターン>
2014 08-30 YAPC::Asia 2014 LT
初めてのCPANモジュール 
リリース!
リリース日
2014-07-18
2014-07-18?
2014 08-30 YAPC::Asia 2014 LT
$age++;
2014 08-30 YAPC::Asia 2014 LT
$age++;
ありがとうございます
CPAN見てみよう
2014 08-30 YAPC::Asia 2014 LT
2014-07-17
時差...
世界は厳しい
2014 08-30 YAPC::Asia 2014 LT
2014 08-30 YAPC::Asia 2014 LT
世界は厳しい
ご静聴ありがとうございました 
使用フォント: 「瀬戸フォント」 
http://nonty.net/item/font/setofont.php
2014 08-30 YAPC::Asia 2014 LT
One More Thing
このスライドを作るにあたり,地域.pmイベントにNagoya.pm 
の1人として前に出てこなかったことをお詫び致します.
ご静聴ありがとうございました 
使用フォント: 「瀬戸フォント」 
http://nonty.net/item/font/setofont.php

Mais conteúdo relacionado

Destaque

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

2014 08-30 YAPC::Asia 2014 LT