Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for General Sebast1an‭

Type On... Excerpt Status Date
Comment Post #284191 @#53579 The entire program must be reversed-quined, so no, no function answers allowed.
(more)
over 2 years ago
Comment Post #284159 You can remove the whitespace between parentheses and other symbols. [90 bytes](https://tio.run/##PY9BSsRAEEX3OUXRm0mGZjbuBrIQHXAhjAt3MUibdCel1V2hUxMyHsADeEQvEnuUDNTi8/7/UH84S8/hZnHly0LGv7UGaK/U7p0x5NUq5sJxhBkwwCcOr8Shs6PkW9IOiSZDJ1tuNkVdZC6yBxQbhZlGQD9wlO0iKd6Y0Y5QQpUBVOoDAyutGgzWmyQ8T2hVrf/MhlubWMf...
(more)
over 2 years ago
Comment Post #284191 @#53837 I think what ATaco is implying in the quote is the fact that in HTML, you can literally output anything without using the HTML tags, the supposed "data sections".
(more)
over 2 years ago
Edit Post #284040 Post edited:
over 2 years ago
Edit Post #284185 Post edited:
over 2 years ago
Edit Post #284191 Initial revision over 2 years ago
Article Reverse your quine [released]
Challenge Write a program that prints its reversed self. For example, if your code is ``` foo() ``` Then it'll output: ``` )(oof ``` Make sure that the quine is a valid one, as defined here: > No cheating -- that means that you can't just read the source file and print it. Also, in ...
(more)
over 2 years ago
Edit Post #284040 Post edited:
over 2 years ago
Edit Post #284185 Initial revision over 2 years ago
Question Collatz conjecture; Count the tries to reach $1$
Background Check out this video on the Collatz conjecture, also known as A006577. If you don't know what this is, we're given an equation of $3x + 1$, and it is applied this way: - If $x$ is odd, then $3x + 1$. - If $x$ is even, then $\frac{x}{2}$. This will send us in a loop of `4 → 2 →...
(more)
over 2 years ago
Edit Post #284132 Post edited:
over 2 years ago
Edit Post #283799 Post edited:
over 2 years ago
Edit Post #284128 Post edited:
over 2 years ago
Edit Post #279696 Post edited:
over 2 years ago
Edit Post #284157 Initial revision over 2 years ago
Answer A: Tips in golfing using PHP
Set arrays without `array()` In a few occasions, setting an array using `array()` can be a bit costly. Thankfully, you can assign an array like how to assign a Python list. <?php $a=["Hello","MarkFuncs","Golfing"];printr($a); Try it online!
(more)
over 2 years ago
Edit Post #284156 Initial revision over 2 years ago
Answer A: Tips in golfing using PHP
Whitespace can be removed in between keywords and variables You can easily remove the whitespace that's in-between a keyword (`return` or a function that doesn't need parentheses) and a variable (either starting with `$` for the variable's name or `"` if the variable to deal with is a string): ...
(more)
over 2 years ago
Edit Post #284154 Initial revision over 2 years ago
Answer A: Tips in golfing using PHP
Anything that's outside the script is echoed This probably has to deal with the fact that PHP is a script commonly used on HTML, and anything that is written on the HTML document--not inside the script--is outputted. Used on "Hello, World!".
(more)
over 2 years ago
Edit Post #284153 Initial revision over 2 years ago
Answer A: Tips in golfing using PHP
Use `Used on Reverse an ASCII string.
(more)
over 2 years ago
Edit Post #284152 Initial revision over 2 years ago
Answer A: Tips in golfing using PHP
Remove `?>` You can save 2 bytes by removing the syntax that ends the PHP script when you don't need it. The program will still work. <?php echo"Hello!"; Try it online!
(more)
over 2 years ago
Edit Post #284151 Initial revision over 2 years ago
Question Tips in golfing using PHP
This is a list of golfing tips for the language known as Philippine Peso PHP. If you have a tip, add it in!
(more)
over 2 years ago
Edit Post #284150 Initial revision over 2 years ago
Answer A: Tips for golfing in Python
Use `a+=[b]` instead of `a.append(b)` The title says it all. a=[];b=10;print(a) a+=[b];print(a) Try it online!
(more)
over 2 years ago
Edit Post #284149 Initial revision over 2 years ago
Answer A: Tips for golfing in Python
` == and` If you want to check if two booleans or integers and want to check if both of them are `true` in an `if` statement, then you can leave out `and` to replace it with ``: x=2;y=3 if x and y:print("Yes") if xy:print("Yes") Try it online!
(more)
over 2 years ago
Edit Post #284147 Initial revision over 2 years ago
Answer A: Tips for golfing in Python
Combine loops Suppose you have a `for` loop in another, maybe a couple of times, and nothing else inside of the outer `for` loops (except for the first `for` loop since anything outside won't be involved at all). It's probably a `range()` problem again. If you're doing something like this: ...
(more)
over 2 years ago
Edit Post #284088 Post edited:
over 2 years ago
Comment Post #284088 @#8056 Oh noooooooooooo, I made mistek. Thanks for pointing that out.
(more)
over 2 years ago
Edit Post #284132 Post edited:
over 2 years ago
Edit Post #284132 Post edited:
over 2 years ago
Comment Post #279434 Is it OK if the program sends an error but still outputs what you want? (This might have to be a Meta question or something.)
(more)
over 2 years ago
Edit Post #284132 Initial revision over 2 years ago
Answer A: It's Hip to be Square
[PHP], 69 37 bytes <?=($y=sqrt($x=fgets(STDIN)))$y==$x; Try it online! Golfed 32 bytes thanks to @Shaggy's advice.
(more)
over 2 years ago
Comment Post #282460 Are C and C++ considered different languages?
(more)
over 2 years ago
Edit Post #284128 Initial revision over 2 years ago
Question Abbreviate everything
Challenge Make a program that takes input of a string and abbreviate it. - All letters of an abbreviation are capitalized, so keep that in mind. - Whitespace, numbers and non-English characters are ignored. - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split...
(more)
over 2 years ago
Edit Post #283799 Post edited:
over 2 years ago
Edit Post #284063 Post edited:
over 2 years ago
Edit Post #284124 Initial revision over 2 years ago
Answer A: Getting perfect squares, differently
[PHP], 57 bytes <?php $x=0;$y=1;while(1){echo(string)($x+=$y)." ";$y+=2;} Try it online! PHP's a nice language, I tell ya.
(more)
over 2 years ago
Edit Post #283971 Post edited:
over 2 years ago
Edit Post #284115 Post edited:
over 2 years ago
Edit Post #284117 Post edited:
over 2 years ago
Edit Post #284091 Post edited:
over 2 years ago