Dad jokes are funUnholy Grail Layout (Reverse Holy Grail Layout)Track listings to time tablesWho has the most stars in The Nineteenth Byte?Count the divisors of a numberParse a two-dimensional syntaxIndexable quineSort these bond ratingsHexplosive ASCII-art challengeIs the matrix rank-one?Declare a Code Golf Winner
Ribbon Cable Cross Talk - Is there a fix after the fact?
Are cells guaranteed to get at least one mitochondrion when they divide?
Count all vowels in string
Why'd a rational buyer offer to buy with no conditions precedent?
Writing "hahaha" versus describing the laugh
Is there an idiom that means "accepting a bad business deal out of desperation"?
Why does the Starter Set wizard have six spells in their spellbook?
Reduce size of sum sub/superscript?
The disk image is 497GB smaller than the target device
Why do testers need root cause analysis?
Are runways booked by airlines to land their planes?
How to deceive the MC
Why was this character made Grand Maester?
Why is the Eisenstein ideal paper so great?
Adding location of start and end points to the attribute table
Why does the painters tape have to be blue?
Unary Enumeration
Is keeping the forking link on a true fork necessary (Github/GPL)?
Are there any German nonsense poems (Jabberwocky)?
Why does FOO=bar; export the variable into my environment
Why is std::ssize() introduced in C++20?
How can I get a refund from a seller who only accepts Zelle?
Who wrote “A writer only begins a book. A reader finishes it.”?
Can a multiclassed Kensei monk/Swashbuckler rogue use an offhand finesse weapon to trigger Sneak Attack, without using a bonus action?
Dad jokes are fun
Unholy Grail Layout (Reverse Holy Grail Layout)Track listings to time tablesWho has the most stars in The Nineteenth Byte?Count the divisors of a numberParse a two-dimensional syntaxIndexable quineSort these bond ratingsHexplosive ASCII-art challengeIs the matrix rank-one?Declare a Code Golf Winner
$begingroup$
We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
I'm tired
orI'm confused
).A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!
, because introductions follow the same format (I'm Peter
follows the same format asI'm hungry
).
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
I'm amazing Hi amazing, I'm Python!
I'm tired Hi tired, I'm Python
I'm hungry Hi hungry, I'm Python!
I'm fat Hi fat, I'm Python
Now assume that these test cases are being parsed by Golfscript:
I'm a programmer Hi a programmer, I'm Golfscript!
I'm a question-writer Hi a question-writer, I'm Golfscript!
I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
The exact challenge:
Take in a string in the self-descriptor format (
I'm <adjective>
orI'm a(n) <noun>
) using standard input or through a function.Assume there is no ending punctuation.
Assume the word
I'm
is used and notI am
.
Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
This is code-golf, so shortest byte count wins.
Follow the standard loophole rules - none of those, please.
Have fun!
Leaderboard
You can view the leaderboard for this post by expanding the widget/snippet below. In order for your post to be included in the rankings, you need a header (# header text
) with the following info:
The name of the language (end it with a comma
,
or dash-
), followed by...The byte count, as the last number to appear in your header.
For example, JavaScript (ES6), 72 bytes
is valid, but Fortran, 143 bytes (8-bit)
is invalid because the byte count is not the last number in the header (your answer will be recognized as 8 bytes - don't take advantage of this).
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
code-golf natural-language
$endgroup$
add a comment |
$begingroup$
We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
I'm tired
orI'm confused
).A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!
, because introductions follow the same format (I'm Peter
follows the same format asI'm hungry
).
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
I'm amazing Hi amazing, I'm Python!
I'm tired Hi tired, I'm Python
I'm hungry Hi hungry, I'm Python!
I'm fat Hi fat, I'm Python
Now assume that these test cases are being parsed by Golfscript:
I'm a programmer Hi a programmer, I'm Golfscript!
I'm a question-writer Hi a question-writer, I'm Golfscript!
I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
The exact challenge:
Take in a string in the self-descriptor format (
I'm <adjective>
orI'm a(n) <noun>
) using standard input or through a function.Assume there is no ending punctuation.
Assume the word
I'm
is used and notI am
.
Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
This is code-golf, so shortest byte count wins.
Follow the standard loophole rules - none of those, please.
Have fun!
Leaderboard
You can view the leaderboard for this post by expanding the widget/snippet below. In order for your post to be included in the rankings, you need a header (# header text
) with the following info:
The name of the language (end it with a comma
,
or dash-
), followed by...The byte count, as the last number to appear in your header.
For example, JavaScript (ES6), 72 bytes
is valid, but Fortran, 143 bytes (8-bit)
is invalid because the byte count is not the last number in the header (your answer will be recognized as 8 bytes - don't take advantage of this).
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
code-golf natural-language
$endgroup$
2
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
1
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago
add a comment |
$begingroup$
We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
I'm tired
orI'm confused
).A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!
, because introductions follow the same format (I'm Peter
follows the same format asI'm hungry
).
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
I'm amazing Hi amazing, I'm Python!
I'm tired Hi tired, I'm Python
I'm hungry Hi hungry, I'm Python!
I'm fat Hi fat, I'm Python
Now assume that these test cases are being parsed by Golfscript:
I'm a programmer Hi a programmer, I'm Golfscript!
I'm a question-writer Hi a question-writer, I'm Golfscript!
I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
The exact challenge:
Take in a string in the self-descriptor format (
I'm <adjective>
orI'm a(n) <noun>
) using standard input or through a function.Assume there is no ending punctuation.
Assume the word
I'm
is used and notI am
.
Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
This is code-golf, so shortest byte count wins.
Follow the standard loophole rules - none of those, please.
Have fun!
Leaderboard
You can view the leaderboard for this post by expanding the widget/snippet below. In order for your post to be included in the rankings, you need a header (# header text
) with the following info:
The name of the language (end it with a comma
,
or dash-
), followed by...The byte count, as the last number to appear in your header.
For example, JavaScript (ES6), 72 bytes
is valid, but Fortran, 143 bytes (8-bit)
is invalid because the byte count is not the last number in the header (your answer will be recognized as 8 bytes - don't take advantage of this).
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
code-golf natural-language
$endgroup$
We all know the classic dad joke that goes something like this:
Somebody says a sentence to describe their self (e.g.
I'm tired
orI'm confused
).A dad-joke enthusiast comes along and replies
Hi <adjective>, I'm Dad!
, because introductions follow the same format (I'm Peter
follows the same format asI'm hungry
).
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
I'm amazing Hi amazing, I'm Python!
I'm tired Hi tired, I'm Python
I'm hungry Hi hungry, I'm Python!
I'm fat Hi fat, I'm Python
Now assume that these test cases are being parsed by Golfscript:
I'm a programmer Hi a programmer, I'm Golfscript!
I'm a question-writer Hi a question-writer, I'm Golfscript!
I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
The exact challenge:
Take in a string in the self-descriptor format (
I'm <adjective>
orI'm a(n) <noun>
) using standard input or through a function.Assume there is no ending punctuation.
Assume the word
I'm
is used and notI am
.
Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
This is code-golf, so shortest byte count wins.
Follow the standard loophole rules - none of those, please.
Have fun!
Leaderboard
You can view the leaderboard for this post by expanding the widget/snippet below. In order for your post to be included in the rankings, you need a header (# header text
) with the following info:
The name of the language (end it with a comma
,
or dash-
), followed by...The byte count, as the last number to appear in your header.
For example, JavaScript (ES6), 72 bytes
is valid, but Fortran, 143 bytes (8-bit)
is invalid because the byte count is not the last number in the header (your answer will be recognized as 8 bytes - don't take advantage of this).
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
<iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=185872" width="100%" height="100%" style="border: none;">Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.</iframe><style>html,bodymargin:0;padding:0;height:100%;overflow:hidden</style>
code-golf natural-language
code-golf natural-language
asked 7 hours ago
connectyourchargerconnectyourcharger
1457
1457
2
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
1
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago
add a comment |
2
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
1
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago
2
2
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
1
1
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago
add a comment |
16 Answers
16
active
oldest
votes
$begingroup$
Jelly, 20 bytes
œṡ⁶Ṛj⁾, ;“Œ1~»“Hi ”;
Try it online!
A monadic link taking the input as its argument and returning a Jelly string.
Explanation
œṡ⁶ | Split at first space
Ṛ | Reverse
j⁾, | Join with ", "
;“Œ1~» | Concatenate " Jelly!" to the end
“Hi ”; | Concatenate "Hi " to the beginning
$endgroup$
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Ruby -p
, 32 28 bytes
-4 bytes by leveraging Nick Kennedy's Jelly answer.
~/ /;$_="Hi #$', I'm Ruby!"
Explanation
# -p gets line of input and saves to $_
~/ /; # Find first space in $_ using regex
$_="Hi #$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
Try it online!
$endgroup$
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
brainfuck, 164
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
Try it online!
The "brainfuck!" part of the string is generated with this tool, can probably be golfed further by hand.
$endgroup$
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
$endgroup$
add a comment |
$begingroup$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
$endgroup$
add a comment |
$begingroup$
Octave, 35 bytes
@(s)["Hi" s(4:end) ", I'm Octave!"]
Try it online!
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find ver
, which outputs a struct with comma separated fields. Takes way more than 6 bytes. :(
@(s)["Hi" s(4:end) ", I'm " ver.Name1]
Try it online!
$endgroup$
add a comment |
$begingroup$
Japt, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$endgroup$
add a comment |
$begingroup$
APL+WIN, 31 bytes
s," ",("Hi",3↓s←⎕),", I'm APL!"
Prompts for input string.
Try it online! Courtesy of Dyalog Classic
One byte extra in TIO as Dyalog Classic requires quotes within text strings to be doubled up whereas double quotes can be used to enclose text strings in APL+WIN.
$endgroup$
add a comment |
$begingroup$
Perl 6, 30 28 bytes
-2 bytes thanks to bb94
"Him/s.*/, I'm Perl 6!"
Try it online!
$endgroup$
add a comment |
$begingroup$
JavaScript, 38 37 bytes
x=>`Hi$x.slice(3), I'm JavaScript!`
Try it online!
$endgroup$
add a comment |
$begingroup$
Python 3, 35 bytes
lambda s:"Hi"+s[3:]+", I'm Python!"
Try it online!
$endgroup$
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
add a comment |
$begingroup$
C# (Visual C# Interactive Compiler), 33 bytes
n=>$"Hin.Substring(3), I'm C#!"
Try it online!
$endgroup$
add a comment |
$begingroup$
C (gcc), 59 42 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
int a(char*x)printf("Hi%s, I'm C!",x+3);
Try it online!
Chops off the first 3 characters of the input (removes I'm
) and surrounds it with the desired text
$endgroup$
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
$begingroup$
And theint
is also optional.
$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also thechar*
, maybe...; soa(x)printf("Hi%s, I'm C!",x+3);
should work
$endgroup$
– tsh
2 hours ago
add a comment |
$begingroup$
Perl 5 -p
, 31 bytes
s/I'm/Hi/;$=", I'm Perl 5 -p!"
Try it online!
$endgroup$
add a comment |
$begingroup$
05AB1E, 23 bytes
#À„Hiš`s',«s"05AB1E!"ðý
Try it online!
Explanation
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
` # split as separate words to the stack
s # move the adjective to the top of the stack
',« # append ","
s # swap "I'm" to the top of the stack
"05AB1E!" # push the language name
ðý # join on spaces
$endgroup$
add a comment |
$begingroup$
V, 15 bytes
c3lHi␛A, I'm V!
Try it online!
New to V
. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send <End>
key in V. Most vim environment would accept <End>
as a replacement of <Esc>A
in this example. But, you know, V is 2 characters shorter than vim. :)
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "200"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f185872%2fdad-jokes-are-fun%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
16 Answers
16
active
oldest
votes
16 Answers
16
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Jelly, 20 bytes
œṡ⁶Ṛj⁾, ;“Œ1~»“Hi ”;
Try it online!
A monadic link taking the input as its argument and returning a Jelly string.
Explanation
œṡ⁶ | Split at first space
Ṛ | Reverse
j⁾, | Join with ", "
;“Œ1~» | Concatenate " Jelly!" to the end
“Hi ”; | Concatenate "Hi " to the beginning
$endgroup$
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Jelly, 20 bytes
œṡ⁶Ṛj⁾, ;“Œ1~»“Hi ”;
Try it online!
A monadic link taking the input as its argument and returning a Jelly string.
Explanation
œṡ⁶ | Split at first space
Ṛ | Reverse
j⁾, | Join with ", "
;“Œ1~» | Concatenate " Jelly!" to the end
“Hi ”; | Concatenate "Hi " to the beginning
$endgroup$
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Jelly, 20 bytes
œṡ⁶Ṛj⁾, ;“Œ1~»“Hi ”;
Try it online!
A monadic link taking the input as its argument and returning a Jelly string.
Explanation
œṡ⁶ | Split at first space
Ṛ | Reverse
j⁾, | Join with ", "
;“Œ1~» | Concatenate " Jelly!" to the end
“Hi ”; | Concatenate "Hi " to the beginning
$endgroup$
Jelly, 20 bytes
œṡ⁶Ṛj⁾, ;“Œ1~»“Hi ”;
Try it online!
A monadic link taking the input as its argument and returning a Jelly string.
Explanation
œṡ⁶ | Split at first space
Ṛ | Reverse
j⁾, | Join with ", "
;“Œ1~» | Concatenate " Jelly!" to the end
“Hi ”; | Concatenate "Hi " to the beginning
edited 4 hours ago
answered 6 hours ago
Nick KennedyNick Kennedy
2,41469
2,41469
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Ruby -p
, 32 28 bytes
-4 bytes by leveraging Nick Kennedy's Jelly answer.
~/ /;$_="Hi #$', I'm Ruby!"
Explanation
# -p gets line of input and saves to $_
~/ /; # Find first space in $_ using regex
$_="Hi #$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
Try it online!
$endgroup$
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Ruby -p
, 32 28 bytes
-4 bytes by leveraging Nick Kennedy's Jelly answer.
~/ /;$_="Hi #$', I'm Ruby!"
Explanation
# -p gets line of input and saves to $_
~/ /; # Find first space in $_ using regex
$_="Hi #$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
Try it online!
$endgroup$
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Ruby -p
, 32 28 bytes
-4 bytes by leveraging Nick Kennedy's Jelly answer.
~/ /;$_="Hi #$', I'm Ruby!"
Explanation
# -p gets line of input and saves to $_
~/ /; # Find first space in $_ using regex
$_="Hi #$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
Try it online!
$endgroup$
Ruby -p
, 32 28 bytes
-4 bytes by leveraging Nick Kennedy's Jelly answer.
~/ /;$_="Hi #$', I'm Ruby!"
Explanation
# -p gets line of input and saves to $_
~/ /; # Find first space in $_ using regex
$_="Hi #$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
Try it online!
edited 4 hours ago
answered 6 hours ago
Value InkValue Ink
8,165731
8,165731
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
6 hours ago
add a comment |
$begingroup$
brainfuck, 164
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
Try it online!
The "brainfuck!" part of the string is generated with this tool, can probably be golfed further by hand.
$endgroup$
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
brainfuck, 164
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
Try it online!
The "brainfuck!" part of the string is generated with this tool, can probably be golfed further by hand.
$endgroup$
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
brainfuck, 164
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
Try it online!
The "brainfuck!" part of the string is generated with this tool, can probably be golfed further by hand.
$endgroup$
brainfuck, 164
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
Try it online!
The "brainfuck!" part of the string is generated with this tool, can probably be golfed further by hand.
answered 5 hours ago
cardboard_boxcardboard_box
4,0851430
4,0851430
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
$begingroup$
Try BF Crunch
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
$endgroup$
add a comment |
$begingroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
$endgroup$
add a comment |
$begingroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
$endgroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
edited 5 hours ago
answered 5 hours ago
JonahJonah
3,3081019
3,3081019
add a comment |
add a comment |
$begingroup$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
$endgroup$
add a comment |
$begingroup$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
$endgroup$
add a comment |
$begingroup$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
$endgroup$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
answered 4 hours ago
recursiverecursive
5,9741323
5,9741323
add a comment |
add a comment |
$begingroup$
Octave, 35 bytes
@(s)["Hi" s(4:end) ", I'm Octave!"]
Try it online!
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find ver
, which outputs a struct with comma separated fields. Takes way more than 6 bytes. :(
@(s)["Hi" s(4:end) ", I'm " ver.Name1]
Try it online!
$endgroup$
add a comment |
$begingroup$
Octave, 35 bytes
@(s)["Hi" s(4:end) ", I'm Octave!"]
Try it online!
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find ver
, which outputs a struct with comma separated fields. Takes way more than 6 bytes. :(
@(s)["Hi" s(4:end) ", I'm " ver.Name1]
Try it online!
$endgroup$
add a comment |
$begingroup$
Octave, 35 bytes
@(s)["Hi" s(4:end) ", I'm Octave!"]
Try it online!
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find ver
, which outputs a struct with comma separated fields. Takes way more than 6 bytes. :(
@(s)["Hi" s(4:end) ", I'm " ver.Name1]
Try it online!
$endgroup$
Octave, 35 bytes
@(s)["Hi" s(4:end) ", I'm Octave!"]
Try it online!
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find ver
, which outputs a struct with comma separated fields. Takes way more than 6 bytes. :(
@(s)["Hi" s(4:end) ", I'm " ver.Name1]
Try it online!
edited 6 mins ago
answered 1 hour ago
Stewie GriffinStewie Griffin
28.9k11107274
28.9k11107274
add a comment |
add a comment |
$begingroup$
Japt, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$endgroup$
add a comment |
$begingroup$
Japt, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$endgroup$
add a comment |
$begingroup$
Japt, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$endgroup$
Japt, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
edited 3 hours ago
answered 4 hours ago
Embodiment of IgnoranceEmbodiment of Ignorance
3,559128
3,559128
add a comment |
add a comment |
$begingroup$
APL+WIN, 31 bytes
s," ",("Hi",3↓s←⎕),", I'm APL!"
Prompts for input string.
Try it online! Courtesy of Dyalog Classic
One byte extra in TIO as Dyalog Classic requires quotes within text strings to be doubled up whereas double quotes can be used to enclose text strings in APL+WIN.
$endgroup$
add a comment |
$begingroup$
APL+WIN, 31 bytes
s," ",("Hi",3↓s←⎕),", I'm APL!"
Prompts for input string.
Try it online! Courtesy of Dyalog Classic
One byte extra in TIO as Dyalog Classic requires quotes within text strings to be doubled up whereas double quotes can be used to enclose text strings in APL+WIN.
$endgroup$
add a comment |
$begingroup$
APL+WIN, 31 bytes
s," ",("Hi",3↓s←⎕),", I'm APL!"
Prompts for input string.
Try it online! Courtesy of Dyalog Classic
One byte extra in TIO as Dyalog Classic requires quotes within text strings to be doubled up whereas double quotes can be used to enclose text strings in APL+WIN.
$endgroup$
APL+WIN, 31 bytes
s," ",("Hi",3↓s←⎕),", I'm APL!"
Prompts for input string.
Try it online! Courtesy of Dyalog Classic
One byte extra in TIO as Dyalog Classic requires quotes within text strings to be doubled up whereas double quotes can be used to enclose text strings in APL+WIN.
answered 1 hour ago
GrahamGraham
2,73678
2,73678
add a comment |
add a comment |
$begingroup$
Perl 6, 30 28 bytes
-2 bytes thanks to bb94
"Him/s.*/, I'm Perl 6!"
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 6, 30 28 bytes
-2 bytes thanks to bb94
"Him/s.*/, I'm Perl 6!"
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 6, 30 28 bytes
-2 bytes thanks to bb94
"Him/s.*/, I'm Perl 6!"
Try it online!
$endgroup$
Perl 6, 30 28 bytes
-2 bytes thanks to bb94
"Him/s.*/, I'm Perl 6!"
Try it online!
edited 1 hour ago
answered 3 hours ago
Jo KingJo King
28.3k366134
28.3k366134
add a comment |
add a comment |
$begingroup$
JavaScript, 38 37 bytes
x=>`Hi$x.slice(3), I'm JavaScript!`
Try it online!
$endgroup$
add a comment |
$begingroup$
JavaScript, 38 37 bytes
x=>`Hi$x.slice(3), I'm JavaScript!`
Try it online!
$endgroup$
add a comment |
$begingroup$
JavaScript, 38 37 bytes
x=>`Hi$x.slice(3), I'm JavaScript!`
Try it online!
$endgroup$
JavaScript, 38 37 bytes
x=>`Hi$x.slice(3), I'm JavaScript!`
Try it online!
edited 13 mins ago
answered 22 mins ago
darrylyeodarrylyeo
5,4041034
5,4041034
add a comment |
add a comment |
$begingroup$
Python 3, 35 bytes
lambda s:"Hi"+s[3:]+", I'm Python!"
Try it online!
$endgroup$
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
add a comment |
$begingroup$
Python 3, 35 bytes
lambda s:"Hi"+s[3:]+", I'm Python!"
Try it online!
$endgroup$
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
add a comment |
$begingroup$
Python 3, 35 bytes
lambda s:"Hi"+s[3:]+", I'm Python!"
Try it online!
$endgroup$
Python 3, 35 bytes
lambda s:"Hi"+s[3:]+", I'm Python!"
Try it online!
answered 5 hours ago
StephenStephen
7,59723499
7,59723499
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
add a comment |
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
4 hours ago
add a comment |
$begingroup$
C# (Visual C# Interactive Compiler), 33 bytes
n=>$"Hin.Substring(3), I'm C#!"
Try it online!
$endgroup$
add a comment |
$begingroup$
C# (Visual C# Interactive Compiler), 33 bytes
n=>$"Hin.Substring(3), I'm C#!"
Try it online!
$endgroup$
add a comment |
$begingroup$
C# (Visual C# Interactive Compiler), 33 bytes
n=>$"Hin.Substring(3), I'm C#!"
Try it online!
$endgroup$
C# (Visual C# Interactive Compiler), 33 bytes
n=>$"Hin.Substring(3), I'm C#!"
Try it online!
answered 4 hours ago
Embodiment of IgnoranceEmbodiment of Ignorance
3,559128
3,559128
add a comment |
add a comment |
$begingroup$
C (gcc), 59 42 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
int a(char*x)printf("Hi%s, I'm C!",x+3);
Try it online!
Chops off the first 3 characters of the input (removes I'm
) and surrounds it with the desired text
$endgroup$
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
$begingroup$
And theint
is also optional.
$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also thechar*
, maybe...; soa(x)printf("Hi%s, I'm C!",x+3);
should work
$endgroup$
– tsh
2 hours ago
add a comment |
$begingroup$
C (gcc), 59 42 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
int a(char*x)printf("Hi%s, I'm C!",x+3);
Try it online!
Chops off the first 3 characters of the input (removes I'm
) and surrounds it with the desired text
$endgroup$
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
$begingroup$
And theint
is also optional.
$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also thechar*
, maybe...; soa(x)printf("Hi%s, I'm C!",x+3);
should work
$endgroup$
– tsh
2 hours ago
add a comment |
$begingroup$
C (gcc), 59 42 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
int a(char*x)printf("Hi%s, I'm C!",x+3);
Try it online!
Chops off the first 3 characters of the input (removes I'm
) and surrounds it with the desired text
$endgroup$
C (gcc), 59 42 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
int a(char*x)printf("Hi%s, I'm C!",x+3);
Try it online!
Chops off the first 3 characters of the input (removes I'm
) and surrounds it with the desired text
edited 3 hours ago
answered 5 hours ago
Neil A.Neil A.
1,518221
1,518221
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
$begingroup$
And theint
is also optional.
$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also thechar*
, maybe...; soa(x)printf("Hi%s, I'm C!",x+3);
should work
$endgroup$
– tsh
2 hours ago
add a comment |
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
$begingroup$
And theint
is also optional.
$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also thechar*
, maybe...; soa(x)printf("Hi%s, I'm C!",x+3);
should work
$endgroup$
– tsh
2 hours ago
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
$begingroup$
@ConorO'Brien nice catch!
$endgroup$
– Neil A.
3 hours ago
1
1
$begingroup$
And the
int
is also optional.$endgroup$
– tsh
2 hours ago
$begingroup$
And the
int
is also optional.$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also the
char*
, maybe...; so a(x)printf("Hi%s, I'm C!",x+3);
should work$endgroup$
– tsh
2 hours ago
$begingroup$
(?) And also the
char*
, maybe...; so a(x)printf("Hi%s, I'm C!",x+3);
should work$endgroup$
– tsh
2 hours ago
add a comment |
$begingroup$
Perl 5 -p
, 31 bytes
s/I'm/Hi/;$=", I'm Perl 5 -p!"
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 5 -p
, 31 bytes
s/I'm/Hi/;$=", I'm Perl 5 -p!"
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 5 -p
, 31 bytes
s/I'm/Hi/;$=", I'm Perl 5 -p!"
Try it online!
$endgroup$
Perl 5 -p
, 31 bytes
s/I'm/Hi/;$=", I'm Perl 5 -p!"
Try it online!
answered 2 hours ago
XcaliXcali
5,790522
5,790522
add a comment |
add a comment |
$begingroup$
05AB1E, 23 bytes
#À„Hiš`s',«s"05AB1E!"ðý
Try it online!
Explanation
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
` # split as separate words to the stack
s # move the adjective to the top of the stack
',« # append ","
s # swap "I'm" to the top of the stack
"05AB1E!" # push the language name
ðý # join on spaces
$endgroup$
add a comment |
$begingroup$
05AB1E, 23 bytes
#À„Hiš`s',«s"05AB1E!"ðý
Try it online!
Explanation
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
` # split as separate words to the stack
s # move the adjective to the top of the stack
',« # append ","
s # swap "I'm" to the top of the stack
"05AB1E!" # push the language name
ðý # join on spaces
$endgroup$
add a comment |
$begingroup$
05AB1E, 23 bytes
#À„Hiš`s',«s"05AB1E!"ðý
Try it online!
Explanation
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
` # split as separate words to the stack
s # move the adjective to the top of the stack
',« # append ","
s # swap "I'm" to the top of the stack
"05AB1E!" # push the language name
ðý # join on spaces
$endgroup$
05AB1E, 23 bytes
#À„Hiš`s',«s"05AB1E!"ðý
Try it online!
Explanation
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
` # split as separate words to the stack
s # move the adjective to the top of the stack
',« # append ","
s # swap "I'm" to the top of the stack
"05AB1E!" # push the language name
ðý # join on spaces
answered 10 mins ago
EmignaEmigna
49.3k534150
49.3k534150
add a comment |
add a comment |
$begingroup$
V, 15 bytes
c3lHi␛A, I'm V!
Try it online!
New to V
. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send <End>
key in V. Most vim environment would accept <End>
as a replacement of <Esc>A
in this example. But, you know, V is 2 characters shorter than vim. :)
$endgroup$
add a comment |
$begingroup$
V, 15 bytes
c3lHi␛A, I'm V!
Try it online!
New to V
. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send <End>
key in V. Most vim environment would accept <End>
as a replacement of <Esc>A
in this example. But, you know, V is 2 characters shorter than vim. :)
$endgroup$
add a comment |
$begingroup$
V, 15 bytes
c3lHi␛A, I'm V!
Try it online!
New to V
. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send <End>
key in V. Most vim environment would accept <End>
as a replacement of <Esc>A
in this example. But, you know, V is 2 characters shorter than vim. :)
$endgroup$
V, 15 bytes
c3lHi␛A, I'm V!
Try it online!
New to V
. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send <End>
key in V. Most vim environment would accept <End>
as a replacement of <Esc>A
in this example. But, you know, V is 2 characters shorter than vim. :)
edited 6 mins ago
answered 33 mins ago
tshtsh
9,66511654
9,66511654
add a comment |
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f185872%2fdad-jokes-are-fun%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
$begingroup$
One of the ways I considered telling my family that my wife was expecting was by telling as many dad jokes as possible and seeing who caught on!
$endgroup$
– Giuseppe
5 hours ago
1
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
4 hours ago