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
How does Dreadhorde Arcanist interact with split cards?
Moons and messages
How does the Earth's center produce heat?
How to teach an undergraduate course without having taken that course formally before?
What did Brienne write about Jaime?
Piping the output of comand columns
How does Japanese indicate a contextual scope changes like the internet vs. the Internet?
Is a world with one country feeding everyone possible?
Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?
How can I get a refund from a seller who only accepts Zelle?
What did the 'turbo' button actually do?
Why isn't Tyrion mentioned in 'A song of Ice and Fire'?
Can a UK national work as a paid shop assistant in the USA?
Fill area of x^2+y^2>1 and x^2+y^2>4 using patterns and tikzpicture
Visual Block Mode edit with sequential number
What is the purpose of the yellow wired panels on the IBM 360 Model 20?
Did significant numbers of Japanese officers escape prosecution during the Tokyo Trials?
Are there guidelines for finding good names for LaTeX 2e packages and control sequences defined in these packages?
Team has team lunch everyday, am I forced to go?
How would a developer who mostly fixed bugs for years at a company call out their contributions in their CV?
Why does the painters tape have to be blue?
One word for 'the thing that attracts me'?
Why is this integration method not valid?
Why'd a rational buyer offer to buy with no conditions precedent?
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$
1
$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
1 hour ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins 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 3 hours ago
connectyourchargerconnectyourcharger
1257
1257
1
$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
1 hour ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins ago
add a comment |
1
$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
1 hour ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins ago
1
1
$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
1 hour 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
1 hour ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins ago
add a comment |
9 Answers
9
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
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 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
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
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$
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
44 mins ago
add a comment |
$begingroup$
J, 22 bytes
', I''m J!',~'Hi',3}.]
Try it online!
$endgroup$
add a comment |
$begingroup$
C (gcc), 59 bytes
#import<stdio.h>
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
4 mins 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$
Stax, 13 bytes
â∞¿φ‼0▲(─ƒSqÄ
Run and debug it
$endgroup$
add a comment |
$begingroup$
Japt -mR
, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$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
9 Answers
9
active
oldest
votes
9 Answers
9
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
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 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
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 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 1 hour ago
answered 2 hours ago
Nick KennedyNick Kennedy
2,39459
2,39459
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 hours ago
add a comment |
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
Hang on, Jelly has a built-in just for the word "Jelly"?
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
@connectyourcharger it’s a compressed dictionary word
$endgroup$
– Nick Kennedy
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 hours ago
$begingroup$
Ah, that makes sense
$endgroup$
– connectyourcharger
2 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
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
3 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
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
3 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 38 mins ago
answered 3 hours ago
Value InkValue Ink
8,145731
8,145731
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
3 hours ago
add a comment |
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
Cool! Where's your input?
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
@connectyourcharger added an explanation. Input is STDIN.
$endgroup$
– Value Ink
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
3 hours ago
$begingroup$
Gotcha. Good answer!
$endgroup$
– connectyourcharger
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$
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$
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 2 hours ago
cardboard_boxcardboard_box
4,0651430
4,0651430
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
44 mins 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
44 mins 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 1 hour ago
StephenStephen
7,59723499
7,59723499
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
44 mins ago
add a comment |
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
44 mins ago
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
44 mins ago
$begingroup$
34 bytes
$endgroup$
– Embodiment of Ignorance
44 mins 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 1 hour ago
answered 1 hour ago
JonahJonah
3,2881019
3,2881019
add a comment |
add a comment |
$begingroup$
C (gcc), 59 bytes
#import<stdio.h>
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
4 mins ago
add a comment |
$begingroup$
C (gcc), 59 bytes
#import<stdio.h>
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
4 mins ago
add a comment |
$begingroup$
C (gcc), 59 bytes
#import<stdio.h>
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 bytes
#import<stdio.h>
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
answered 1 hour 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
4 mins ago
add a comment |
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
4 mins ago
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
4 mins ago
$begingroup$
The program compiles without the import, so you can drop it for 42 bytes.
$endgroup$
– Conor O'Brien
4 mins 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 46 mins ago
Embodiment of IgnoranceEmbodiment of Ignorance
3,549128
3,549128
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 42 mins ago
recursiverecursive
5,9641323
5,9641323
add a comment |
add a comment |
$begingroup$
Japt -mR
, 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 -mR
, 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 -mR
, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
$endgroup$
Japt -mR
, 18 bytes
`His3, I'm Japt!
When Japt's string compression library achieves a 0% compress rate...
Try it
answered 41 mins ago
Embodiment of IgnoranceEmbodiment of Ignorance
3,549128
3,549128
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
1
$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
1 hour ago
$begingroup$
Some example outputs end with exclamation and some do not. What is the significance?
$endgroup$
– recursive
47 mins ago