An off-topic spot to chat about your musings of the day

Happy Poetry at Work Day!

Reply
Community Manager
Posts: 2,634

Happy Poetry at Work Day!

[ Edited ]

It's National Poetry at Work Day!

 

If you think about what SAS programmers do every day, it's a lot like writing poetry.  You're carefully selecting each word, arranging and combining them in a certain way, to induce a certain result.

 

Like poetry, SAS programs do not need to be long in order to be effective.  In fact, the smaller and more elegant the program, the more likely that others will appreciate it.  Haiku is one form of poetry that can appeal to programmers, probably because it demands a specific syntax (3 lines with certain rules about syllables).

 

Here's an entry from me.

 

haiku.png

 

Here's the SAS program that generates this.  Again, like poetry, there seems to be more going on in the creation than in the final result.

 

data haiku;
	infile datalines dsd;
	input line $ count;
	datalines;
Line 1,5
Line 2,7
Line 3,5
;

ods text="Happy National Poetry At Work Day!";
ods layout gridded columns=2;
ods region;

ods graphics / height=2.5in width=3in;
proc sgplot noborder;
	hbar line / response=count dataskin=pressed;
	yaxis display=none;
	xaxis label="Syllables" values=(0, 1, 2, 3, 4, 5, 6, 7) labelattrs=(size=14pt);
run;

ods region;

proc odslist ;
	item 'PROC FREQ on haiku' / style={liststyletype="none"};
	item '#DataViz always the same' / style={liststyletype="none"};
	item 'N still equals three' / style={liststyletype="none"};
run;

ods layout end;

How about you? Do you have a poetic sensibility that's lurking under your programmer exterior?  Share what you've got!

SAS Super FREQ
Posts: 3,304

Re: Happy Poetry at Work Day!

[ Edited ]

PROC FREQ counts haiku

syllables: five, seven, five.

PROC MEANS: 5.6.

 

 

Community Manager
Posts: 2,634

Re: Happy Poetry at Work Day!

And five is the MODE

Line 2 has the outlier

Still significant?

Regular Contributor
Posts: 229

Re: Happy Poetry at Work Day!

PROC SQL syntax

SELECT, FROM and WHERE

and you need a QUIT;!

 

and one more :-)

 

ODS Graphics

Data viz done point-and-click

Graphs made easily

 

Has my article or post helped? Please mark as Solution or Like the article!
This widget could not be displayed.
This widget could not be displayed.
Ask a Question
Discussion stats
  • 3 replies
  • 747 views
  • 9 likes
  • 3 in conversation