In the wake of the left-pad npm package fallout, let's have a code golf for implementing left-pad.
Your code should take 3 inputs: string, padlength, and padstring. If padstring doesn't exist, it defaults to a space. The task is to pad string on the left to padlength with copies of padstring.
T...
@EasterlyIrk The former. I want to see many, many more coders (even for people who don't intend to work professionally as one) in our digital day and age.
The Challenge
Given an arbitrary amount of rectangles, output the total count of intersections of those when drawn in a 2D plane.
Example
Each rectangle here is denoted by a 2-tuple with the coordinates of the upper left corner first and the coordinates of the bottom right corner second.
[(-...
TL;DR: The same way you parser has to handle balanced parens, use balanced conditional expressions. If the next token un-balances the expr., the expr. has ended.
@ChrisJester-Young Interesting response, but I could only read part of it before wiselike hid it behind a timed log in wall. Just letting you know in case you weren't already.
Hey @AlexA., what do you think about this? The argument is basically that the extreme income inequality in the USA is problematic not so much because of the difference in wealth, but because wealth is too closely connected with power.
@trichoplax I didn't encounter that myself. Either because I read it too fast, or because I have Adblock.
@ChrisJester-Young I was kinda half-joking, but I love the idea of improving coding education. So, being a tutor is definitely a possibility, and I could potentially help with software and/or website.
@El'endiaStarman Coders cost a lot more than tutors, so I would be very sparing with coder hiring (unless I get investment). And being a coder myself, I can get a lot of coding done myself. :-)
@ChrisJester-Young Yeah, I figured you were doing much/most of the coding work at this stage. Is it just you and like one or two other people at the moment?
@El'endiaStarman I don't have any ad blockers - just blocking Flash and using Firefox's reading mode is enough for me generally - doesn't give me the option in this case though.
@El'endiaStarman It seems to rest on the oft-used "people don't take risks if the taxes are high" argument, which is a bit contradicted by many periods of high taxation throughout history.
@Geobits That came to mind for me too. I've done some research on whether high taxes => strong economy, and the evidence seems to be mixed with conclusions depending more on what you believe than the actual evidence.
@El'endiaStarman Turns out I can read it just by opening the link in a private window so it doesn't know I've already spent time reading the first half.
𝔼𝕊𝕄𝕚𝕟, 72 chars / 209 bytes
`Эć훼쎧漤詼媰㻆僚픈耊Ⓢኍ⋱쬝ᇑ덆䖇䂊՛樥첾㨭쯠ཁ톇:덱螟醮䖉⥊覂削ꇉ漈涹႘챘ඕ꼳⁒᭷Ừ䒕鶀놜㆝〢ﱱꎀ쎴䋈㗂䅉Ⴄቀ쳵菨ⶩ∉툲耀
Try it here (Firefox only).
Well, at least the char count is great, but we can't use the custom code page. It's just an LZString-decompression. I'm also working on another solution - more...
Cy (non-competing), 272 bytes
This is mind-numbingly slow, but I guess that's what I get for interpreting an ineffiicent language in an interpreted interpreted language.
Thanks to this answer, Cy is my first language to be proven Turing-complete!
[0 &=d,] =C
{$C $d ::} =c
("+" " $C $d ::++" :
...
Hi! Could you tell the people of TNB that I am suspended and cannot talk in chat? Thanks! (Not the place, but I cannot contact you guys any other way.) — Cᴏɴᴏʀ O'Bʀɪᴇɴ1 min ago
> We've noticed that you've been conversing with other users by abusing the comment feature of the Stack Exchange platform. This is circumventing your current chat suspension. ...