That plot-of-the-week fourth-dimensional teleporter thing... which they don't use to actually teleport because it musses their DNA up and stuff... should have been a military game changer
Replicate napalm + teleport it through their shields on the bridge = why the heck do you bother with phasers?
Well, yeah, the "safe" teleporters that don't muss your DNA up, but I'm not sure I care all that much if a few molecules of napalm turn into mayonnaise
I can't really expect that much consistency though in ST; they are after all just a "car ship" level scifi
(You can roughly rank space operas by the physics of their ships; "car ship" is what I call it when all ships for some reason are always "horizontal" and in line with each other, and basically go forward/back)
@HWalters god, that bothered me in so many Voyager episodes. "There's this really wide and deep anomaly but it's only like 1 km tall I guess we'll have to go through it and put the entire crew into comas just to survive"
To be fair, forward/back (main) movement is easier to design and maintain. As long as you have directional thrusters, though, there's no excuse for the actual maneuvers they use being so "flat".
@Geobits interestingly, I often find the texture of mayo disgusting, but if I can get it past my eyes into my mouth hidden by a sandwich or something, I don't really notice it as that bad
Mayonnaise is useful as a binder in recipes, but that's about it. It's fine in things like deviled eggs and the like, where the taste and smell is completely masked by everything else.
I worked at a Subway when I was a young lad. Some people are downright excessive with it, and it made the thought of quitting very appetizing every time.
@Maltysen Sour, tangy, and gross. All great ways to ruin a sandwich :P
Then it can be the first ascii art syntax in a serious language probably
also, about that deleted answer on the I voted question, with the polyglot. Maybe, just maybe, we should have a question, even if it's on meta, where we post things like that, that don't really belong on a question or something
I was thinking maybe we should have a tag for those things that are kind of like kolmogorov complexity, in that it is a no-input output challenge, but not quite.
For those challenges where a output from no input is needed, but is just something that obeys certain rules, rather than one specific ...
Preamble
We all know the datatype bool. It is common in many languages, and the easiest way to represent a bool as a number is either 1 or 0. Therefore, a boolean can contain two values:
1, true, or HIGH
0, false, or LOW
Because it only represents two numbers, one bit is enough to contain a ...
Implement this recurrence relation as a function or program that inputs and outputs a non-negative integer:
F(0) = 0
F(N) = the smallest integer greater than F(N-1) such that the sum and/or product of its base-10 digits is N
To be clear, the sum of the digits in a number like 913 is 9+1+3=13....
I have a challenge idea that is pure Conway's Game of Life, would this be on topic on PPCG?
I know we already have some, but it seems to me that they're just cool language restricted golf, which are frequently frowned upon here.
We are putting balls into a fixed number a bins. These bins begin empty.
Empty bin (a=4): 0 0 0 0
And one by one we add balls to the bins.
0 0 0 1 or
0 0 1 0 or
0 1 0 0 or
1 0 0 0
We need a quick way to loop over all the possible states the bins take, without duplicates and without mi...
@Dennis , about codegolf.stackexchange.com/a/102240/63039 : Please feel free to edit your answer and to flag it for moderator attention so it can be undeleted – So I successfully edited my answer (now there is a very golfy "UPD:") but for some reason I couldn’t flag it. Something is not loading with a red popup… Maybe you can undelete my answer manually, please? (Sorry if this is wrong time or place to ask, I’m new here)
@aleksusklim I think you should put the golfed code first in your answer. Also note that it's not "the moderators" who thinks golfing is the most important, but the community who agrees that when a challenge is about golfing, the answer should be golfed (and serious contender).
GoL flooding
Considering a 1000x1000 grid (no wrapping, borders dead), your task is to grow the maximum "stable" population from the fewer individuals.
For the purpose of this challenge, the definition of stable is a configuration who repeat with a period of less than hundred(100) generations.
...
@aleksusklim Voting is important when the challenge is tagged popularity-contest. Golfing is important when the challenge is tagged code-golf. They are two different types of challenge.
@aleksusklim I suspect that complaining about the moderators in your answer will not endear you to the community, since the community chose those moderators... You could look through the other challenge types if you don't want to golf - personally I also find fastest-code and code-challenge interesting.
My wife is very lets say particular when it comes to putting ornaments on our christmas tree. Let's get her some code to help her in this trying time.
Input
Given an input n > 2 the height of the tree and 0 < k < n the distinct number of ornaments.
Task
Decorate the tree starting with 1 and ...
@Dada I definitely agree the golfed code should come first. Personally I would go further and say that adding irrelevant information after the golfed code clutters the challenge in the same way that invalid answers do. I like to see a good explanation of the golfed code, and I don't see a problem with linking to related approaches that don't fit the challenge, but when a large proportion of the answer is irrelevant I don't think it is fair to the other answers to allow it.
I'm struggling to understand where the line is drawn. This answer is clearly golfed, even if it is a polyglot. As I mentioned, I always understood this to mean earnest contender -- as in, the user clearly put effort into the answer. That's undoubtedly the case here.
However, it seems like Dennis, Mego, and others are taking a harder stance, that the answer has to have a potential of winning.
If that's the case, should languages other than Jelly, MATL, Pyth, or the like get flagged as not being serious contenders?
@TimmyD The answer is meant to be a polyglot, and that polyglot is golfed. He didn't write it to be as short as possible, he wrote it to be a polyglot. There is a difference
You know, the 8-starred TV comment isn't quite accurate. The TV in context was an organic LED. If it gets too dry, the pixels can get dehydrated and die.
@TimmyD My main issue isn't that it's a polyglot (I'm still trying to decide on that). It's that it does all sorts of things, rather than following the spec. If the spec was "output fib(n)" and you wrote a polyglot that did that in a couple languages, that's different than a polyglot that output fib(n) for one language and someothersequence(n) for everything else.
The majority of the answer reads like a popcon, not a code-golf.
Meme: Crossed out 44 is still regular 44 ;(
Less common is when a four-byte solution is reduced to a three-byte solution, at which point the meme becomes “Crossed out 4 is still regular 4…”
Originator: Optimizer / Doorknob
Cultural Height: Started Mar 2015, height Oct 2015 -
Background: This...
@Geobits OK, that's a fair enough point. But, it seems like you're the only one (at least that I've read) that's espousing that position, as other comments seem to indicate that it's not a valid answer because it's not a serious contender for winning.
My take is that you should golf down whatever language(s) you're using, not that it should be a serious contender across languages. Adding a bunch of other stuff to make it a polyglot (and "cooler") clearly isn't "golfed" to spec. If it was a polyglot where everything in it went to satisfying the spec, I'd feel differently.
@seequ The general idea of the argument was that the code, which ran in three different languages, only actually answered the question in one of them. In the other two, it did something similar (and really cool), but didn't actually meet the spec of the problem. I think the general idea of the mods wasn't "it isn't golfed well and therefore can't compete", but rather "it doesn't actually answer the question properly"
The other languages in the polyglot did not satisfy the challenge's winning criteria; they just did other "random" (using that term loosely) tasks. Theoretically if all languages in the polyglot completed the acceptance criteria you could think of the answer's language being the set of languages used in the polyglot. Since this was not the case, though, only C was valid and for a C answer there was A LOT of room to golf (since it contained all the invalid polyglot code)
$ vim
/usr/bin/vim: command not found
$ vi
/usr/bin/vi: command not found
$ nano
/usr/bin/nano: command not found
$ gedit
/usr/bin/gedit: command not found
$ ed
/usr/bin/ed: command not found
A couple of days ago, the Tasteless and other bugs challenge was posted. In the ensuing chaos, three of the first five answers ended up being deleted, and I posted some regex that I had thought was pretty decently golfed. Afterwards, several other people simply copied my regex and ported my solution into their language of choice, which didn't really bother me, but it is what it is.
Since then, some people have posted solutions with better regex than mine, and I've gotten several comments from people suggesting I replace the regex in my code. My question is, should I replace my code with the best regex so far? Or should I leave it as it is, and let people who did a better job than I did accept the credit they deserve?
Count the number of numbers
Your goal is to write a full program or function that takes from standard input a positive integer number N such 0 <= N <= 9 and output how many of N are present in this picture:
In the picture there are 500 numbers from 0 to 9 (included) arranged in 20 columnns pe...
hmm...that's interesting. I think if we had complete control over the site it'd be interesting to hide all submissions. The user could choose to show them at any time, but once they were shown, you couldn't submit anymore
According to the Terms and Conditions of the site:
Since all the content we give to the site is under a cc by-sa 3.0 license, any copyist of this sort has two obligations:
Give proper attribution, and
Share alike
Therefore you are free to yoink their solution as well, golf a few bytes out ...
Release me!
As code-golfers, we're not used to releasing (surely). We're gonna need a few tools to help us do that.
Of course, to help marketing a new release, we need a nice and shiny Release Version. Who doesn't get excited when they hear about version 3.0.0?
Task
Your task will be to write...
Stil trying to find a nice "first question" to post, if anyone knows of a duplicate, I'd like to know. ("next version" gives 7k results)
I use this language daily anyway, here's a quick entry. (Javascript)
I use this language daily and you will also feel my pain. (Java)
I wish I used this language daily so I'm practicing. (Haskell)
I'm supposed to use this language so I'm dipping an ironic toe in. (C#)
We used to use this languag...
Release me!
As code-golfers, we're not used to releasing (surely). We're gonna need a few tools to help us do that.
Of course, to help marketing a new release, we need a nice and shiny Release Version. Who doesn't get excited when they hear about version 3.0.0?
Task
Your task will be to write...
@Fatalize As far as I can tell it's supposed to be a fun post making fun of clickbaity news articles. It's posted on meta because it's off topic for ppcg but related to golfing langs
Skittles are colored candy where there are 5 distinct flavors; grape, green apple, lemon, orange, and strawberry represented by (p)urple, (g)reen, (y)ellow, (o)range, and (r)ed respectively. I used to eat skittles by sorting all the different colors, then eating them in sequence. After getting a ...