« first day (2943 days earlier)      last day (1907 days later) » 

12:10 AM
I spend way too long looking for single-byte code pages to fit challenges with Unicode output / input.
 
 
3 hours later…
2:59 AM
0
Q: 2-Dimensional Bubble Sort

BeefsterSorting makes no sense for a 2-dimensional array... or does it? Your task is to take an input grid and apply a bubble-sort-like algorithm to it until all values in the grid are non-decreasing from left to right and top to bottom along every row and column. The algorithm works as follows: Each...

 
3:15 AM
0
Q: Left Center Right (LCR) code golf

CT HallAt a party, I was introduced to the game LCR. Now it's not a great game as there's no skill but only random chance. But it got me thinking, I could code this, and I made a quick program in R to model the game. Rules of the game modified from Wikipedia to match how we played: Each player rec...

 
 
4 hours later…
7:11 AM
Which meta post should I link to for convincing a participant that requires forgoing code quality/best practices (e.g. avoiding undesired side effects like setting the computer on fire, or generating spurious files/global variables.) to shorten the code?
 
 
1 hour later…
8:37 AM
@Adám Is the tag not enough? It begins with Code-golf is a competition to solve a particular problem in the fewest bytes of source code. - "the fewest bytes" sounds pretty singular and not open to interpretation, at least to me.
 
@Οurous Sure but solve can be understood to include properly.
 
 
2 hours later…
10:17 AM
0
A: List of bounties with no deadline

Shaggy200-500 Rep for Japt Solutions To celebrate hitting 20k rep, I'm offering bounties of 200 rep to anyone who posts 5 Japt solutions in a 30 day period with an additional 300 rep to anyone posting a total of 10 solutions within the same timeframe. In order to qualify for these bounties you must e...

 
 
1 hour later…
11:37 AM
0
Q: What have we got?

AdámInspired by, and in memory of, our beloved genius, He invented, implemented and taught the dfns notation — the subject of this task: Task Given an ASCII source code, answer in which of the following four categories it belongs: Dyadic dop Monadic dop Dfn Other You may return any four cons...

 
 
1 hour later…
12:52 PM
is there any expert in regex in here?
 
@LuisfelipeDejesusMunoz Try * regex \*expert\*
 
well, I have this. regex101.com/r/7eY94o/1
I want to match anything after '
but if another ' is found, stop there (but I also need to match where it stopped). As I have it now it stop one character before the last '
 
0
Q: Existance of known score but unknown exact code

l4m2Note: It happened though I don't know if there will be other question that meet this problem Consider this question: Solve XXXXX. Removing some characters should break the problem. Most kind of chars win. and its answer Lenguage, xxx kinds of chars Consists of yyy chars Now that...

 
12:59 PM
nevermind, I solved :v
 
@H.PWiz you know they're old school when the post begins with "Every now and then, on channels I hang on IRC..."
 
1:29 PM
Does anyone know of a language which supports nested block comments like /* /* */ ... still part of the comment ... */ (example uses a C-style comment flavour)?
 
@JonathanFrech How would that even work, as the second /* would be ignored as a comment, and the first */ would terminate the comment.
 
@Adám /* wouldn't be ignored.
 
@dzaima But then the comment isn't a real comment.
 
@Adám well the */ is special and isn't ignored, why shouldn't /*?
 
@dzaima Good point. This is why comments shouldn't be blocks.
 
1:38 PM
@JonathanFrech brain-flak (brainhack)
 
@JonathanFrech rust seems to
 
@JonathanFrech I think Haskell
 
@Adám well, the newline is special for one-line comments
 
@dzaima There was a certain beauty in original APL where each line was exactly one statement with no ties to any other code.
 
I think Java does something similar with multiline comments, but I'm not sure.
 
1:41 PM
@J.Sallé no?
 
@dzaima does the first */ always close comment block?
It's been a while since I've coded any java at all
 
@J.Sallé seems so
 
@J.Sallé I thought you did so for a living. All engolfed in APL these days?
 
@Adám J.Sallé is the one constantly complaining about Delphi, not Java
 
@Adám lol I wish. I started working with Java in this company, but then that project ended and I ended up in Delphi
I'm actually looking for companies in Rio that use APL to apply to.
 
1:54 PM
That moment when you almost beat Arnauld, but then you realize you code does not work for 1 case Dx
 
And hopefully when I graduate in July I can expand that search to other states as well
 
@LuisfelipeDejesusMunoz Which case?
 
@LuisfelipeDejesusMunoz Oh, I thought that one would be so simple compare to the other cases. What did it give?
 
@Adám it is, just that I wanst aware of that one xD
 
2:03 PM
@DJMcMayhem can you the sandbox plz?
 
@Adám Yeah, that is the weird thing about it.
@H.PWiz rust and Haskell do seem to support it ... Thank you for that information.
 
0
A: Sandbox for Proposed Challenges

flawrSave the Trees (by printing booklets) code-golf Lets say you have a printer that can print double sided but doesn't have the booklet-printing feature (like the one I have), then you have to specify the order in which the pages have to get printed manually. Given the page number n that is divisi...

 
Anonymous
2:27 PM
@flawr Done
 
@LuisfelipeDejesusMunoz Interesting. That's the one case I'd expect an APL solution to fail on (but returning "monadic dop").
@LuisfelipeDejesusMunoz You never answered me on what's special about {{}{}}
 
@Adám Ah sorry, it has nothing special, just that in my code it did not work as I suspected it should so I asked just in case
 
 
1 hour later…
4:21 PM
Dyalog has been in business for over 35 years, but nobody has ever retired. Is that good or bad?
 
smells bad
doesn't have to be
you run the risk of things falling over when the superstars end up retiring
 
@Poke If they would retire, there'd be planning involved to hand over to young folks.
 
well i'm sure there would
something something "more than the sum of my parts"
Like i said, it doesn't have to be bad, but it's not a great sign either
just something to be aware of and plan for
 
@Adám Curiously, the company I work for has been in business for 37 years. I was hired when they completed 35.
Also what the heck, the message with the time elapsed after a message has now a yellow border?
 
 
1 hour later…
5:42 PM
Is it gross to do this in Python?
def foo(blah):
    import bar
    ...

def doStuff(things):
    import otherThings
    ...
Assuming that foo will be the only function that needs bar, and doStuff will be the only function that needs otherThings
 
6:06 PM
Is there a reason the EmojiCode solution to the singing sharks challenge hasn't been deleted yet?
 
because it now has a valid answer with it
he made a modification that fits the challange
why are you so dead-set on it being deleted? Regolfing takes time
 
Nope, nothing's been changed; it's still the same solution.
 
Scroll down. "Edit to conform to rules"
they can keep the fun solution up front if they want to.
 
@moonheart08 Because 1. it's deliberately invalid, 2. all invalid solutions should be deleted while they're being worked on (unless it's a quick fix), and, 3. a ~370 rep gain from a deliberately invalid solution is hardly in the spirit of the site.
 
Tell that to the many other instances of this kind of thing
But yes, it is fixed now
so give it a break
 
6:13 PM
@moonheart08 Are there any other instances of this specific situation; such a massive rep gain from such an invalid solution? If we allow it then we're sending a message that posting any old crap as a solution is valid and should be upvoted.
I see the "fixed" version now.
 
does 21 upvotes for a rot13 count?
 
It still should have been deleted and the valid version posted as a new solution.
 
also
bud
this is a site
about a game that people do for fun
why are you so uptight about it
 
what the heck did I walk in on...
 
no clue
 
6:16 PM
well OTHER than you two arguing I mean.
 
My thoughts precisely, Thomas
Literally exactly the same
 
Because, again, it sends a very bad message about what we allow here.
 
@Shaggy bring it up on Meta then?
rather than bog down chat here?
 
kind of annoying to stop in and say hello, only to see arguments going on :|
(no I'm not a PPCG mod, but the concept remains the same)
 
6:17 PM
also, hi thomas
i'm someone you've never met
goes to browse SE more
 
Anonymous
@ThomasWard Close enough
 
@Mego True. But "site policy questions" are, well, just that, and probably are better served in Meta ;)
 
@ThomasWard Yeah, I may do in the morning, when I get back to a computer. My original question, though, was was there a reason (that I may have missed) that it hadn't already been deleted.
 
@Shaggy It would have been deleted if they didn't edit the valid solution in. The reason it hadn't been deleted by then was because it had a positive score, so only a mod could delete it, and generally we like to give a bit of time (48 hours usually) before deleting an answer to give the user time to fix it
 
^ that
 
6:18 PM
It is possible in regex to match the text inside brakets that are inside parenthesis? ([match this text]). (do not match this) [or this] or even this
 
So like \(\[([^()\[\]])\]\)?
(idk if the inner \[\] need to be escaped or not)
 
@DJMcMayhem Do you not agree, though, that such a significant rep gain from such a blatantly invalid solution doesn't seem to be in the spirit of the site?
 
I mean... It frustrates me a little bit from time to time. But you could say the same thing about this answer or this one
 
@Shaggy yes, it's a rep gaining tactic, but it's not something worthy of deletion. You can downvote all you want though
 
It's just how the site is that memey answers get a lot more votes and I don't know if there's a whole lot we can do to change that. It's definitely valid now though (although it could use an edit to make the valid solution the primary one)
 
6:46 PM
@DJMcMayhem Removing our site from HNQ might be a solution. Is that even possible?
 
Technically... yes, though it wouldn't be easy
Although for the record, I would be strongly opposed.
 
@Shaggy As I understand it, that'd be a tricky thing, though the Great and Powerful Shog would know how hard this would be more than we would. shot for taking the name of Shog and using it
 
@DJMcMayhem Looks like if /// and Brain-Flak had a baby.
3
 
What a wonderful idea!
 
@AdmBorkBork BrainSlash? :P
 
6:50 PM
@DJMcMayhem probably not that beneficial but seems fine. i think style guidelines expect all imports at the top of the file
 
ok, so, i never figured it out, what does HNQ stand for? :P
 
Habanero Nutella Quotas Hot Network Questions
 
alright
@DJMcMayhem thanks for the challenge idea
 
@DJMcMayhem Yeah, it'd be a divisive suggestion, alright, but still worth bringing to Meta, I think. (My own opinion is that it does us more harm than good).
 
HTH Hairy Toe Helps
 
6:55 PM
@ThomasWard There is a weighting given to each site to allow each site equal opportunity to be featured (otherwise it'd be all SO, all the time) so it should, at least, be possible to reduce that weighting for PPCG.
Anyway, I'm off to get caught up on some wrestling. I'll bring both issues to Meta tomorrow.
 
i never see SO on HNQ
not on the first page, anyways
 
I'm pretty sure I saw a post a while ago on mother meta talking about how they removed the possibility for a specific board to show up on HNQ
 
Yeah, Interpersonal Skills got removed, and a couple of other sites have requested to be removed
 
tbh Codegolf doesn't really even belong on SE, it's just a good place for it to get noticed
in the end it's less of a Q&A and more entertainment
 
7:26 PM
So is puzzling. But they have a site design.
 
7:50 PM
If I'm using a retarded "linux" distro that doesn't ship with a C compiler, how can I obtain GCC?
I can't find a binary distribution
 
8:01 PM
You could compil--- oh.
I'm sure there's some way to bootstrap it, but that's probably more trouble than it's worth?
I recall back in ... 2004? 2005? ... I built a Debian (?) machine from the ground up. Started with just a floppy and a prayer. So, I know it's possible.
 
The Development Cycle of my tolerance of programming languages:
1) This language looks gross, I hate it
2) Now that I try it, this language is alright
3) Wait what do you mean I need to do that? That's horrible, I need to find a workaround
4) Okay doing that isn't that bad I guess
5) I like this language
 
8:30 PM
@JonathanFrech Clean does.
 
9:15 PM
@Skidsdev What was 3) for APL?
 
For me it's more like
1) Yo this feature is hella nifty
2) Find any reason to justify using the language and said nifty feature
3) Oh ok I know this language know
 
@Adám I'm sort of 30% of the way into 2 with APL thus far
so far I've had that 5 step cycle for JavaScript, TypeScript, PHP, and C
 
@Skidsdev Ooh, then it'll be interesting to see if you hit a 3 at all. Please let me know.
 
I didn't hit a 3 with Python or C#
and the 3 was a blocker for me with Go
 
@Skidsdev What was it?
 
9:20 PM
the forced directory structure
this was around late 2017/early 2018, I was setting it up and I recall it requiring your Go project be in like /home/go or something like that
 
@Skidsdev Doesn't Java have that too? Anyway, good to know. Some people have been arguing for that for APL. I've been fiercely against.
 
I saw that and basically said "Okay I just won't bother then"
Ehh Java has some enforced structure within the project directory, but unlike Go you can still put the project directory wherever you choose
 
@Skidsdev OK, that's bad. For the APL proposal it was only that all APL code must be in myproject7/APLSource
 
yeah that's not great either, stuff like that should never be forced
Java and C# are my 2 "IDE languages" in that I just can't work with them in VSCode or Vim, meaning I have to use an IDE, and that comes with all the bells and whistles IDEs tend to have, including making any sort of forced directory structure pretty much irrelevant
 
@Skidsdev My argument was that if you want nested projects, the folders won't correspond 1:1 with namespaces, as they'd have to skip the container folder of the APLSource folder.
 
9:23 PM
sure all my java code is in myProject/src/com/skidsdev/packageName, but in my IDE that just shows as a single directory because all the intermediate steps are otherwise empty
@Adám that's a valid point too
 
@Skidsdev never had that problem (using W10)
Just had to set up an env. variable as %GO_HOME%, pun intended
 
:-D
 
Create your workspace directory, %USERPROFILE%\go. (If you'd like to use a different directory, you will need to set the GOPATH environment variable.)
 
@Skidsdev Don't worry. I'm the one writing the next-gen source code files' handling system…
 
↑↑ that's what I did
 
9:28 PM
so if I have multiple Go projects, I need to change an env variable each time I change project
 
@Skidsdev Ugh!
 
Oh no, that's not how I did it
Rather, that's not what I had to do
That variable is solely for calling the compiler, iirc
 
I believe Go also enforces an internal structure of src/ and bin/, but I don't mind that so much because I tend to do that anyway
 
neither java nor your ide are really enforcing a directory structure... though maven will default you with one like your example
 
@Poke I didn't say my IDE enforces it, I said my IDE makes dealing with awkward directory structures trivial
 
9:31 PM
@Skidsdev that it does indeed
 
And yeah I think Java's thing is less enforced, and more expected
 
Go's devs really went for a C-feel
 
Uh
 
C is just 'do whatever lul'
 
yeah C is pretty lax
also fwiw, out of the 4 languages that went through my 5 step cycle, TypeScript had the hardest time going through, but came out on top
 
9:34 PM
Well if I'm dealing with a maven project then yes, I expect the standard directory structure
but things will run fine without it too
just gotta configure your run command or whatever
 
I work with gradle
 
@Skidsdev But how does TypeScript compare to C# and Python now?
 
@Adám I much prefer it over python personally (although I'd still use python for server scripts, it always has and always will be my "duct-tape" language)
But C# is far too strong for TypeScript
the issue with TypeScript is they're very adamant on not modifying any JS behaviour
type only exist at compile time
meaning no structs, no operator overloading, very awkward generics
My 3 for TypeScript, however, was namespaces
See, TypeScript has namespaces. But they're not at all like C# namespaces.
In TypeScript, every file is its own "external module" (or just "module", these days), and must be imported as such by any other files needing to reference its contents. Namespaces (or "internal modules" as they used to be called) are only used for separating parts of a single file.
Which is the opposite of how C# does it, in which Namespaces are used to group multiple files
This means that if you use namespaces in a C# manner in TypeScript, you can't compile your source down to a single JS bundle, despite TSLint (the syntax checker) considering namespace references perfectly valid
The alternative, not specifying namespaces and using import statements, which directly reference filepaths to import, left a bad taste in my mouth for a long time, to the point where I started working on a pre-processor that would convert my namespace system
but then today I just gave up, and switched to the import system, and it wasn't that bad, because of course it wasn't that bad, it's no worse than how most languages handle cross-file interaction.
So that was my #3 for Typescript
/rant
3
 
import systems in dynamic languages are hard
 
the import system really isn't that bad tbf, I just get anal about things
it's just import { ClassName } from "Path/To/File";
 
9:46 PM
if only javascript was a good language
can you imagine
 
and because I'm doing C-style 1 class per file, that's all it ever is
I don't dislike JS
my #3 for JS was let
 
i'm sorry
 
I just thought it was ugly
then eventually had to use it cos I needed my i to stay within the scope of the for loop
 
variable scope hoisting
brought to you by javascript
 
well in my for loop I was using i in an anonymous function defined with the loop, that would then be called outside of the loop
var i would cause all instances of the anonymous function to have the same i value, because scopes
 
10:03 PM
I'm planning to make a programming language where everybody contributes to one database
Each program would add one character to a BF program, and would run
it
 
Quick opinion needed. I have a stat block that shows successes, fails, and skips. What order seems more natural: Success, fail, then skip or Success, Skip, then Fail?
 
@Veskah the former
 
@MilkyWay90 So instead of BrainFuck you could call it ClusterFuck, right?
 
For example, I'd find it more natural to say "Message read by user, Message blocked by user, Message not delivered" rather then "Message read by user, Message not delievered, Message blocked by User"
@Οurous I try not to curse in programming language names, because my parents look at them
 
@MilkyWay90 Charlie Foxtrot
 
10:07 PM
@MilkyWay90 That's currently what I've got it as and will probably keep it as. Also harkens to Wins-losses-draws
 
I'd call it the Great BF Internetic Thing
 
Internet of BrainThings
 
@Veskah Clusterous Internet of BrainThings of the Great BF Internetic Thing
It wouldn't be good for coding submissions, tho
 
CIBGBIT :Thinking:
CIBGoBIT?
 
CIBGTotGBIT
Internet of Great BF Internetic Clusters
What database shalt I use?
 
10:12 PM
MongoDB for spice
 
i think firebase
ok
actually, im going to go with firebase
 
10:23 PM
I'm going to look up how to use Firebase with Python
 
10:47 PM
meh ill do it later
 
11:32 PM
If I want to give someone a bounty for finding a way to golf down one of my programs, what's the best way to do it? In this situation their contribution would not be in the form of a submitted answer, but rather a golfing to my program, so where should the bounty be placed?
 

« first day (2943 days earlier)      last day (1907 days later) »