« first day (3583 days earlier)      last day (1557 days later) » 

00:00
@RedwolfPrograms there's no such thing as an array index in JS
2
 
1 hour later…
01:24

 Contact

For playing the game Contact, where one person tries to "defend"...
Anyone up for a game of Contact?
02:04
@Neil What do you mean?
I know they don't act like indices in normal languages, but according to MDN the indexed parts of an array are separate from the object containing non-indexed properties, so it is (theoretically) like an array in a lower level language with extra (and frankly pointless IMO) functionality tacked on.
02:50
In short: JS is complicated and full of hacky corners
JS is the English of programming languages...it's a huge mess, made up from a little bit of any paradigm the creators could think of, but it's somehow the most common one
03:25
Wait, is there no general room for Stack Overflow?
04:19
0
Q: Printing Hello World using fewest characters

SummerI saw a problem which asks you to print "Hello World" using the fewest characters, including spaces. How can I further shorten this code? Thank you in advance! #include<iostream> int main(){printf("Hello World");}

 
1 hour later…
05:43
@cairdcoinheringaahing a bit early for me lol
 
4 hours later…
09:57
hi all
10:14
@Anush hello
10:35
2
Q: NATO phonetic spelling can take long

user38141NATO phonetic alphabet is a spelling alphabet that associate to each of the 26 letters of the English alphabet one word (table below) that is easy to understand over the radio or telephone. For example, if you want to communicate the word CAT over the telephone, you do the following spelling: CHA...

10:50
@RedwolfPrograms right, but the indices themselves are still technically strings, e.g. via for..in or Object.keys, although there's a lot of special-casing going on for performance reasons
11:17
fun game.. guess what this matlab code does
x1 = [119,101,98,40,39,104,116,116,112,58,47,47,119,119,119];
x2 = [46,121,111,117,116,117,98,101,46,99,111,109,47,119,97];
x3 = [116,99,104,63,118,61,100,81,119,52,119,57,87,103,88];
x4 = [99,81,39,44,39,45,98,114,111,119,115,101,114,39,41];
eval(char([x1,x2,x3,x4]))
(don't execute it)
11:30
Something to do with the Web?
Also, there's no spaces, so it's obviously golfed to some degree
Wait it's a rickroll isn't it
Because there's a https://www.youtube in the beginning
Yeah it must be a rickroll
@Anush nice try but no
You can't trick those who have rickrolled many others
That, or it's some other video
Which video is it?
11:54
:)
12:10
@RedwolfPrograms No, but there is a whole different domain for it
 
1 hour later…
13:18
77
Q: This is not [pyth]on

khelwoodWhat can be done to reduce misuse of the [pyth] tag? The pyth tag is intended for questions relating to the esoteric language Pyth. The tag was created in 2017 and has one question. That does not mean it has not been used. Lots of questions have been created with the pyth tag. I don't know how ma...

Why isn't "just delete it" the top answer to that?
 
2 hours later…
14:58
@Neil I think it converts the indices to strings when being iterated over, but according to MDN they're stored as numbers I think
15:40
@RedwolfPrograms they may be stored as numbers internally for performance reasons, but they're still strings, otherwise [0][false] would be 0, and it isn't
16:01
0
Q: Compatible strings

caird coinheringaahingWhen studying numerology, you can say two words (strings consisting entirely of letters) are compatible if they produce the same number under the following operation (let's use the string hello as an example): Map each letter to a number according to the following, ignoring case: 1 2 3 4 5 6 7 8...

 
3 hours later…
19:22
-4
Q: find minimum length of two 3-dimensional dots in a list

foreverI have a list of 3D dots represented like this: [[x, y, z],[x, y, z],[x, y, z]]. the goal is find the minimum length of two of these 3D dots. this question has to be answered in python. This is code-golf so the shortest code in bytes wins.

 
2 hours later…
21:42
ooh, I passed 111,111 earlier today
If a closed question gets edited again in the reopen queue, does it get put back in the queue?
I helped the writer of this question clarify it, but I'm not sure if people saw it to have a chance to VTR.
22:28
@RedwolfPrograms IIRC a closed challenge gets put in the queue every time its edited
22:39
Is there a sample format for posting in the sandbox?
22:49
@rak1507 No standard format, but most people use something like:
# Title

<necessary background>
<general description of task>
<rules>
This is <winning criteria>
## Test cases
<test cases>

# Meta
- Dupe?
- Clear?
- Tags are [tag:tags]
- Feedback?
Thanks :)
@rak1507 The New Sandboxed Posts bot will post new proposals to the sandbox, so you don't have to worry about doing it yourself :)
Oh cool
0
A: Sandbox for Proposed Challenges

rak1507I am bad at coming up with titles (suggestions please) A discord server I'm in has a bot that generates 'random' fake base64 text. It uses this code to do so: import random import string def generatebase64(seed): random.seed(seed) letters = string.ascii_letters + string.digits + "+/=" ...


« first day (3583 days earlier)      last day (1557 days later) »