« first day (4037 days earlier)      last day (808 days later) » 

7:00 PM
So console.log([1, 2, 3]).fill(4) would print [4, 4, 4]
 
Thatt's cursed
 
Another idea: Things aren't garbage collected by default. However, you can make a GarbageCollector to do it. Although the GarbageCollector doesn't get garbage collected.
 
sounds a bit like Zig
but in reverse
 
What if multiple GarbageCollectors try to delete each other?
 
things can't be allocated by default unless you make an Allocator. But how do you make an Allocator? No idea...
@emanresuA they can't both run at the same time, I'd assume
 
7:03 PM
@cairdcoinheringaahing Same, and mine was a programming internship. I was in college, tho.
 
@RadvylfPrograms I did this and got 750k, which can't be right
I've excluded node_modules and package-lock.json
 
Oh huh, was about to suggest those
 
I've got some giant generated js / json files but they're all one line
Oh wait
I have a full clone of rustpython in there
~5000 now, although I have other things.
o/
 
@emanresuA my repos folder is full of other people's code, not just my own
 
7:12 PM
@cairdcoinheringaahing oh hey, this is the garden shop with the RTO offices!
 
if you only count mine, it's...
4 million? I think I need to exclude some stuff
 
pxeger has written 4 million lines of code confirmed /s
 
does sloc not exclude some things like node_modules and .git by default?
 
I don't think so
 
282 thousand
still seems too high
 
7:15 PM
sloc stands for super useful code counter
 
@GingerIndustries wouldn't that be succ?
 
@Mayube Super usefuL cOde Counter
well now I have to make succ
how could I possibly pass up that name
 
Wait that wasn't intentional?
 
@GingerIndustries Maybe instead you should make a Try-Hard Incremental Code Counter
 
7:21 PM
at least then it won't succ :P
 
BIG Calculation of Huge Unsigned Numbers Gathering Useful Statistics
 
.___.
PythonIc Program Information Sleuth
 
@pxeger 35k is what I get by whitelisting only certain file types instead of removing certain ones
 
> this system uses the BIGCHUNGUS algorithm to efficiently... stop laughing, we didn't name it
 
Functional Real Integer Computation Kiosk
@GingerIndustries For bonus points implement it in Coq
 
7:26 PM
@cairdcoinheringaahing no
 
Simplified Haskell InterpreTer
 
It's canon now
Caird works for google
at a local garden shop
 
which the RTO offices are on the second floor of
quick, give me the name of a big and bulky programming language!
 
@RadvylfPrograms ok by counting much more carefully I get 11.8k
 
(in terms of file size)
 
7:29 PM
C++
 
which sounds about right I'd say
 
@pxeger I tried to go investigate but conveniently some truckers decided to blockade the borders. I'm sure that's also unrelated
 
@GingerIndustries Java
 
@GingerIndustries COBOL
 
@GingerIndustries HQ9+
 
7:31 PM
@Mayube sadly github perks gives me a 404 message when I try to inspect it
 
@Adám i'd guess that's a combination of chat being relatively extremely tiny and as such needing way less advanced things to run, and it not being touched like ever.
 
ok, I've perfected my command for searching lines of code
rg '\S' -T={asciidoc,log,minified,rst,lock,json,toml,yaml,readme,md,tex,license} --json | tail -1 | jq -r '.data.stats.matched_lines'
my answer is 10004
 
@pxeger alias succ = "rg '\S' -T={asciidoc,log,minified,rst,lock,json,toml,yaml,readme,md,tex,license} --json | tail -1 | jq -r '.data.stats.matched_lines'"
 
no spaces around the =
or just use a function
succ () {
    rg '\S' -T={asciidoc,log,minified,rst,lock,json,toml,yaml,readme,md,tex,license} --json "$@" | tail -1 | jq -r '.data.stats.matched_lines'
}
 
7:46 PM
> The C++ language is a close relative of Gibberish
sounds about right
> The official mascot for C++ is an obese, diseased rat named Keith, whose hind leg is missing because it was blown off. The above image is a contemporary version drawn by Richard Stallman.
4
 
> Python, also known as compilable pseudocode, is a toy programming language
 
> This article contains nonsense letters (J, Q, X, Z).
> You can help Uncyclopedia by paraphrasing the sentences that contain J, Q, X or Z.
I think these people might get along with @RadvylfPrograms
 
// use the sexually transmitted disease namespace
// be careful when using its methods across multiple programs
 
> Even though JavaScript was not invented by Microsoft, its model is still stupid enough to be considered acceptable.
 
> Bjarne Stroustrup complicates the C++ spec every three years in order to sell more books
 
7:56 PM
lmao
 
amazingly accurate
 
1+
 
> C++ means increment the value of C. But the expression C++ itself evaluates to the value of C. Which means C++ offers zero benefit over C
> according to Rob "lol no generics" Pike who also has experience in creating languages that offer no practical advantage over C
hey, Go is way better than C!
 
> Some say C=C+1 was developed by hardcore Russian scientists who needed a computer language so hard to understand that it would keep the wages of computer scientists artificially high for decades to come.
 
@pxeger Yeah, the syntax kills you quickly so you don't suffer
 
7:59 PM
> With the added functionality of OOP, C=C+1 continues to be a severe threat to the computer world. Many have fallen victim to its merciless attacks on their PCs, losing most, if not all of their archived pornography and txt files.
 
this is literally true
 
is there an article on code golf?
there isn't?
this must be rectified
> Stack Overflow is a question and answer site for professional and euthanist programmers. It features abandoned questions, 'reputation' that people never earn, and many perks for being a member.
 
unfortunately Uncyclopedia seems to be currently hosted on a fried potato, so I can't create such an article
 
prob ddos
> Stack Overflow also offers careers at their company and many others. The jobs they post on their site are excellent at ranking, having high pay, good benefits, but the programming language you tried to learn but couldn't. Many jobs are piles of Formatting Demos, with bold, italic, and both combined for no reason.
 
> "Legacy code" is a term often used derogatorily to characterize code that is written in a language or style that (1) the speaker/writer consider outdated and/or (2) is competing with something sold/promoted by the speaker/writer. "Legacy code" often differs from its suggested alternative by actually working and scaling.
This is a sentence that only Bjarne Stroustrup can write with a straight face
 
8:04 PM
all hail Boring Stringsoup
 
high quality answer indeed
 
> THIS PROGRAM COMES WITH NO WARRANTY, BECAUSE WE'RE TOO STRESSED TO TROUBLESHOOT YOUR PROBLEMS
I'm going to start putting that at the top of every program I write
 
> Did you really give an interview to IEEE?
in which you confessed that C++ was deliberately created as an awful language for writing unmaintainable code to increase programmers' salaries?
Of course not. Read the real IEEE interview.
 
> GNU/Linux is a registered trademark of Satan.
 
> PS. Texas A&M University != University of Texas.
Huh, it's surprising to me that people would get those confused, although that may just be because I live in Texas
 
8:16 PM
i know nothing about either but i would also be surprised if a lot of people got them mixed up
don't like most states have a distinct university of [state] and [state] state university
clearly that's not quite what's going on here but people should be all too ready to not mix similarly named institutions up
 
University of Texas != Texas State University != Texas A&M University != University of North Texas != ...
 
0
A: Sandbox for Proposed Challenges

AnttiPPlay 1D minesweeper Your input is an array of integers in the range [-1,4]. An array element of -1 means that there might be a bomb in that position. A non-negative element means that there is not a bomb in that position and also the numeric tells how many bombs there are within distance 2. For e...

 
the classic
 
> A unique characteristic of C=C+1 is that it lets your friends handle your private parts. With the std or sexually transmitted disease namespace now in the language, it is essential to have your private parts protected during public orgies.
 
8:34 PM
@mathcat Why no beard?
 
are you a beard evangelist?
 
No, but it is a well-known fact that a the creator of a PL must have a beard for the language to become successful.
 
what about women
or in fact, everyone else who cannot grow a beard
Brendan Eich, creator of what is probably like the 4th most successful language ever, doesn't have a beard
 
0
Q: Convert a string into hex

graffeThis is a simple challenge. Given a string, convert each character in the string into its hex value and return a string of these hex values. Examples sightseeing 7369676874736565696e67 paraboloid 70617261626f6c6f6964 restraint 726573747261696e74 widespread 77696465737072656164 glutton 676c757474...

 
@pxeger He must have shaved it off then!
 
8:47 PM
@pxeger Adam said practical languages, not JavaScript
 
PL normally just stands for Programming Languages
 
shh, you'll ruin the joke
 
my question has just been closed so I will ask it as a CMC
CMC can anyone shorten this python code given a string s? ''.join([hex(ord(l))[2:] for l in s]) ?
@cairdcoinheringaahing hi
 
''.join(hex(ord(l))[2:]for l in s)
 
@pxeger one space less?
 
8:52 PM
in Python 2 you can do s.encode("hex")
@Anush I also removed the unnecessary []
 
@pxeger ooh that sounds good! But not python 3?
@pxeger ah yes
 
why don't you need the []?
 
str.join can take any iterable, including a generator
 
@cairdcoinheringaahing I deleted my poor question
@pxeger cool
 
8:54 PM
@Anush Which question?
 
@Anush ''.join(f"{ord(l):x}"for l in s)
 
the one about converting a string to hex
 
if input can be as a byte string, you can remove the ord()
 
@pxeger which version of python does that need?
@pxeger sadly is a string
 
@Anush New account?
 
8:55 PM
@cairdcoinheringaahing no.. It's just weird feature of stackexhange that it randomly holds onto old names
@cairdcoinheringaahing so this name is from an account that doesn't exist
@pxeger I like this
 
If you delete an account on main, it doesn't delete the chat account
 
@cairdcoinheringaahing except that sometimes when I log in it gives me my new name
 
A Java programmer walks into a bar and says to the bartender, "Hey pal, can I get a double please?", and the bartender says "Get outta here, this is a private function!"
 
@GingerIndustries :)
 
my all-time favorite programming joke
 
8:58 PM
what is the only way to get rich from object-oriented programming?
@pxeger why don't you need the hex?
 
@Anush f-string formatting with :x does the hex conversion for you
 
@pxeger that's amazing. I had node idea
no idea :)
 
9:23 PM
@pxeger :x is also known as the "lemon" operator.
 
% formatting is 2 shorter; forget what degree of deprecated it is but yeah
 
fun fact: % is pronounced ovo.
 
9:52 PM
@GingerIndustries It is called Extended Precision in J.
 
0
Q: Smallest maximal rectangle in a skyline

AnttiPA skyline is an array of positive integers where each integer represents how tall a building is. For example, if we had the array [1,3,4,2,5,3,3] this would be the skyline in ascii art: # # # ## ### ###### ####### A maximal rectangle is a rectangle that cannot be extended in any directio...

 
10:18 PM
@Adám Sadly, the converse is not true.
 
11:05 PM
@Adám is there a correlation between beard size and success or is it just a general requirement? :p
 
11:27 PM
I don't think so. Any beard goes.
 
11:42 PM
Looks like I can be successful at programming language design then!
 
0
A: "Hello, World!"

David ScholzLean, 22 bytes #print "Hello, World!" Try it online! Shouldn't be on this list at the moment!

 
@lyxal Says the one who's already the designer of one of the most popular modern golfing languages :p
 

« first day (4037 days earlier)      last day (808 days later) »