« first day (4456 days earlier)      last day (685 days later) » 

00:38
Quick poll: of all the ways you could collaboratively work on a single file of code, what is the worst way you can think of?
Cause I think the way my group project has settled on might be the worst
@cairdcoinheringaahing network drives
Editing a file on a network drive all the same time is uuuuugh
@cairdcoinheringaahing what is it
IMO git would be the best, unless you want real-time collab
@user apparently scahla is correct, even if it comes from scalable
I will never stop saying scayla tho
Are gradle docs broken for anyone? If I try to interact with a page in any way other than scrolling it teleports me to the bottom
01:06
@cairdcoinheringaahing I've heard of email
@cairdcoinheringaahing The worst I can think of in a slightly different sense of worse would be timestamped diffs on a blockchain
Worse as in "I could actually imagine some moderately drunk college students persuading themselves it's a good idea"
Another one would be everyone using SSH to connect to the same TTY in a vim session. So you share a keyboard and monitor (and cursor).
Another would be a group chat where all of the messages are piped into ed
ahahahahaha
that would be so fucked
I should learn to use ed, I've accidentally forgotten to install a text editor on really minimal linux distros before
The man page includes this:
> If the info and ed programs are properly installed at your site,
Feels so historical
01:55
@cairdcoinheringaahing NCIS-style, with multiple people typing on the same keyboard
Or semi-NCIS-style, with multiple people typing on their own keyboards, all hooked up to the same computer (kinda like Rydwolf's ssh idea)
multiple people typing on one keyboard, hooked up to multiple computers
Redundancy is important
Who needs backups when you have two computers
each computer individually has a 10% chance of ignoring any given keystroke to safeguard against catastrophic accidental inputs
Computers which tend to drop the wrong keystrokes get their OS reflashed out of spite, so they gradually face a selective pressure to become intelligent and learn which keystrokes are most likely to be mistakes
3
It helps that 10% of the hard drive is randomized upon startup to safeguard against critical software vulnerabilities
Whilst generally Computers with different operating systems can't interface, Mac and Linux share enough code to allow for a non-viable distro.
02:26
0
Q: String Comparison

Huỳnh Trần KhanhYou are given two strings \$a\$ and \$b\$ consisting of characters from a to z in lowercase. Let \$n\$ be the length of \$a\$. Let \$m\$ be the length of \$b\$. Let \$a'\$ be the string \$a\$ repeated \$m\$ times. Let \$b'\$ be the string \$b\$ repeated \$n\$ times. Check whether \$a'\$ is lexico...

02:54
@RydwolfPrograms For some reason I don’t have ed
Dawg, your setup is so cursed it doesn't even count as Linux
Just use WSL
03:28
at least I have clang set up right
@cairdcoinheringaahing by scoh-la I think I roughly meant what you meant by skall-uh
I just realized scoh-la is not very clear
o as in top not show
surprisingly more than I can say about node
node is just messed up in some ways
@hyper-neutrino Like an "ah" or "au"/"aw"?
not everyone pronounces those vowels differently
 
2 hours later…
05:17
Woe, how I miss the days of being able to ping Dennis and have a Language added or updated on TIO. Truly the Golden Age.
05:31
Lol there are 3 games where literally nobody got a date
How do you expect bots made by programmers to get dates?
But a bunch of social awkward bisexuals in a room for long enough and at least one date is bound to come out of it normally
05:54
brainfuck CMC: Go 255 cells to the right.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@JoKing Oh, apparently the idea is not new.
@TwilightSparkle +[>+] (Goes 255 cells, continues afterwards)
@mousetail You are supposed to golf :(
05:57
It's golfed
Not very effectively
but it's irreducable
Alright, the intended answer is +[[->++>+<<]>]
One that probably would work for a nice cop in a C&R challenge
This should also work right? -[-[->+<]>]
@mousetail Ouch.
Go 191 cells then.
06:00
@mousetail yeah, that's exactly what i thought of
Any significance to the number 191?
Oh, 191 doesn't work either.
It's at the same length.
I think.
Oh, it's not.
My code uses the fact that 0-1 = 255 in brainfuck
you could also use + of course
Oh true, that could save 1 byte actually
No that would go 256 bytes instead of 255
06:03
I will try to golf some more useful thing.
^ not the thing I mentioned a while ago in this room
@TwilightSparkle i'm pretty sure 50 bytes can be beaten btw, I think i have a bounty out on beating it
06:19
@TwilightSparkle +[[>+++++<-]>+++++]>>>>
@JoKing That's longer than fibonacci number.
fibonacci doesn't have to terminate (the program you're thinking of doesn't output either)
++[[>+++++<-]>+]>>>>> is shorter then
06:41
0
A: "Hello, World!"

ATacoLogically, 1046 Bytes @A:3i:o,c:4t;XOR(3i)(t3)AND(i0,i1)(t0)AND(i1,i2)(t1)AND(i0,i2)(t2)COPY(t3)(o)OR(3t)(c) @B:8a,8b:8o,d:7c;A(a0,b0,0)(o0,c0)A(a1,b1,c0)(o1,c1)A(a2,b2,c1)(o2,c2)A(a3,b3,c2)(o3,c3)A(a4,b4,c3)(o4,c4)A(a5,b5,c4)(o5,c5)A(a6,b6,c5)(o6,c6)A(a7,b7,c6)(o7,d) @C:i,a,b:d:x,y,z;NOT(i)(x)AN...

@JoKing I mean, +[[->+>+<<]>]
ah, i see. my naive search was over the form s[[>m<-]>d]
 
4 hours later…
10:55
0
A: "Hello, World!"

The ThonnuThunno 2, 2 bytes kH Polyglots with Vyxal. Constant for "Hello, World!". Thunno 2, 8 bytes ’Ƙ¥, «ʋ! Dictionary compressed string. Thunno 2 will hopefully get added to ATO in the next few weeks. Until then, here are some screenshots of the local interpreter:

11:18
@mousetail this is concerningly specific :p
Do you have any experience to the contrary?
no but that's because I have no experience at all
It's like the birthday problem, while for any one programmer them finding a date is highly unlikely, the chance that there exist 2 people who end up dating is quite high
so you're saying there's a chance
11:37
@Ginger Answer my KOTH and your bot can get a chance at least
All the current answers are kind of bad, lots of low hanging strategies left to explore
right
 
2 hours later…
13:41
@Sʨɠɠan Whatsapp group chat that only half the group uses, while the other half just DMs their code to each other
Thankfully, it's code files, not just raw code in whatsapp messages, but it isn't much better
Only one guy has a computer, the rest shout the changes they want.All inside a crowded restaurant
Might be more coherent than this, at least that has a single code file being edited
Trying to accurately convey punctuation over voice is notoriously error prone
14:19
Aaaaaaaaaaaaaaaaaa new rust tos
Won't watch clickbait videos
It's just the thing where they enforce their trademark right? Like every other language already does
Yes, but they enforce it to an extreme
not even java disallows you from using their logo/name in your stuff
It's quite common to have similar clauses, but often they are not really enforced
14:24
And oracle is notoriously legal
@Sʨɠɠan Wish they had, then we wouldn't have the confusing java/javascript confusion
@mousetail examples?
@mousetail iirc they had an agreement with Sun
Oh right
My plan to go back in time and hire better lawyers for sun has been foiled
 
2 hours later…
16:11
0
A: Sandbox for Proposed Challenges

97.100.97.109Shortest Path Around Obstacle code-golf The task here is simple: given a target location on an XY grid, and a rectangle on that grid, find the length of the shortest path from the origin to the target which does not intersect the rectangle. All parameter values are integers. You can assume that n...

Does anyone have any comments on this proposed challenge? codegolf.meta.stackexchange.com/a/25674/113573
Someone downvoted it but didn't explain why
16:30
0
Q: Find an answer in given language

lesobrodSorry for a stupid question, but I read "How do I search?" and didn’t understand: How to find answers in a given (programming) language?

17:04
Hmm, CSS on Meta is borked all of a sudden.
 
3 hours later…
19:54
@DLosc Not anymore.
 
1 hour later…
Ohmigod I can't wait for people to stop shitting on Java because Hello World takes more than a line
Finally I don't have to type public static void main(String[] argh)
Of course, schools and colleges won't use this for a very long time, by which time Java may not even be the preferred language for teaching CS anymore
@emanresuA tbh I don't get why people complain about that. You only need to write it once in every application. There's a lot of other boilerplate Java has that's worth complaining about, but this is pretty minor
21:14
I'm doing a cs class right now, and I have to type that multiple times per assignment
oof
How?
@user I don't mind that it takes more than a line, I mind that it takes a class definition and a System.out.println
Well this doesn't fix the System.out.println (which is a much bigger issue)
Hello World in C is fairly reasonable IMO even though it's multiple lines
I do like that this toplevel method thing works for non-main methods too
I hate having to put everything inside a class
21:17
^
System.out.println I rather like, tho having that + a normal println like Kotlin is fine too
@user sadly only in the main class. You can’t do that for arbitrary methods
Yeah it'd be nice if println and printf and print were imported by default
@Sʨɠɠan Oh
bruh
Then I am not such a big fan of this JEP
It makes the language less regular without adding a whole lot
I came to the same conclusion after thinking on it
> Henceforth, when the Java compiler encounters a source file with a method that is not enclosed in a class declaration it will implicitly consider such methods, as well as any unenclosed fields and any classes declared in the file, to be members of an anonymous main class.
Students will still have to suffer - there's classes still using Java 7
@Sʨɠɠan AAAHHHHH
21:19
so only in main classes, and no accessing methods in a different file
Wait it's not that big of an aaahhhh
But still weird
More of an ᵃᵃᵃʰʰʰʰ then?
lol
aaahhh!?
wheres @Adám when you need his interrobang?
21:21
Can't you just Google it‽
I use se through curl, cant
Ah, interesting
That reminds me, I need to make a CLI for SE
@DLosc This is why "check mark" is one of my most frequent Google searches
If you want emojis, Win + . ought to help you
21:24
When you use dos
I want the plain, non-emoji version ✓
Ah
and so far the closest I've found in Win + . is √
but I might have skimmed over it
I thought it had Unicode too but I can't find it now :|
Also, Java is finally getting templated strings, although jankily openjdk.org/jeps/430
@DLosc see also
21:28
@Sʨɠɠan I guess the STR. is weird but it's understandable, it's lets people define their own template processors
It wouldn't be Java if it weren't at least 20% more verbose than other languages :P
This JEP looks interesting and useful ("Statements before super()")
21:51
@Sʨɠɠan If you want to add to your weird square roots collection, you could check out the Square Root of Minus Garfield
22:04
@user YES I’ve been waiting for that
ive been abusing static methods way too long
@DLosc the 4th one is hilarious
22:23
@user Howd you find it
Ah there’s a draft section in the index
@DLosc I used to read it weekly but I forgot to keep up and I'm several months behind now
also, be glad it's not java.lang.System.out.println
@Neil I love a good excuse for an archive binge
@Neil Surely you mean com.java.www.lang.System.io.out.println :P
23:18
@user also an issue with the angle of gracefully onboarding new programmers without developing bad habits is they don't forbid the anonymous main class from having fields
@user I think it will still be the preferred language
It has the perfect combination of OOP principles and simplicity for teaching
the fields of an anonymous main class that gets instantiated exactly once are effectively global state, for a definition of global that doesn't extend to other classes because presumably when you're doing this you still don't have those
you shouldn't be allowed to have state that lives outside methods before you've started thinking about oop
23:55
Java's string comparison loves tripping me up ;-;
CMQ: How to golf a challenge that does multiple string substitution in a row in Python?

« first day (4456 days earlier)      last day (685 days later) »