Today, you're going to be writing Polish. No, not Polish notation—Polish, the actual language spoken in Poland.
Given a number and a noun, output a Polish sentence telling me that there are that many of that thing, using the appropriate template below.
The input consists of an integer in the rang...
thinking covering yourself in oil will allow you to fly = stupid = funny make a meme pretending to think that = ironic = funny funny make a meme using that format but where it's not actually stupid = ironic ironic = funny funny funny
@thejonymyster what with my two most used languages having it, I may be biased. But I find it hard to imagine that you can make a mistake with indentation
maybe it's just that my entire mental model of grouping in code is pretty much based on indentation
it doesnt even have to be particularly smart about when it lets you do it, id be happy if it just let me shift the text downward based on whatever selection
closest I've seen an editor get is overwrite mode (pressing insert) with this weird option that allows it to treat the whitespace after the end of lines as actual spaces (good for drawing ascii art) (the editor was geany btw but others might have this too)
rewatching zootopia today and you know what I like a lot? during the scene at the beginning where they do a big panorama thing across the city, they show that the desert and tundra sections are separated by a giant wall with vents that are blowing hot air at the hot sand and sucking in air from the cold side. why do I like this so much? because the wall looks like it's a giant heat exchanger! this is actually technically plausible and I applaud them for doing their research.
@pxeger I've never left indentation mistakes in, but in languages without significant indentation, it's nice to be able to paste in any piece of code, hit autoformat, and just have everything work
My first language was (a crappy subset of) JS and when I started using Java I was like "What do you mean why do i need to do String foo = ...? And why can't I assign numbers to strings? This is dumb"
You should be grateful that the Creators gave you type inference, basic as it may be. Look at all those programmers suffering in C. You're so much luckier than them
@thejonymyster It's fairly useful. Anytime you need a 1-character string that's not space, newline, or a digit. I'd guess that happens most often in ascii-art challenges.
@user My experience was the opposite: My first language was QBasic, and my second language was a subset of JS. I remember being really surprised that you could assign a number to a variable and then assign a string to the same variable. But now I use Python for most stuff and think static typing is a bit of a pain. :P
@thejonymyster What des54321 said. You can actually put any character after ' and it'll be a 1-character string literal, it's just that s and n are shorter ways to get a space or a newline.
@thejonymyster Definitely. Most golflangs with 256-character codepages also dedicate a codepoint to making two-character strings; some even have one for three-character strings.
@DLosc reading your new explanation now and have a question, how does "Add a space character, converting the 0s to spaces and the 1s to !s." work? is that some kind of default string value for those numbers?
PMC: Given a string, reverse each run of letters in the string. You may assume that all letters are lowercase. the quick brown fox! -> eht kciuq nworb xof!
@smarnav point reductions are discouraged, either its important enough to include and you should make it mandatory, or you should drop it probably, especially for a constant value and not a percent :P
@emanresuA It's not in the docs yet either. I've been waiting to update them till the official 1.1 release, though I guess I could mark new operators with "New in 1.1" and update the docs now. Flatten is FL, BTW.
Pyscript, 22 bytes
print("Hello, World!")
Test it crafting the following HTML file, serving it and rendering with a web browser:
<script defer src="https://pyscript.net/alpha/pyscript.js"></script><py-script>print("Hello, World!")</py-script>
PMC: interpret Self BCT, printing the deleted characters
i find the bct's pretty easy to implement, ive done standard bct with a single regex loop :P
but then theres also a regular challenge on the site to implement a TC language, so im not sure if that makes this necessarily harder than a standard cmc
APL and BQN are a bit like Spanish and Portuguese: they're similar enough that you start assuming things will be the same in both, which leads to communication errors when it turns out not to be the case.
Pip, 11 bytes
oNaRXAxRXXo
Try It Online!
This was... annoying.
N Count
o 1s, in...
R Replace...
XX Any char
o with 1, in...
R Replace
XA Letters
x with the empty string
a in input