« first day (1939 days earlier)      last day (2903 days later) » 

12:00 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I am writing one atm but I have no published npm modules
 
do you know what the scripts.test property of the json packages is for?
 
to run tests
 
can I have an example?
 
so if you mess up and break something, the tests will catch that and not publish to npm
usually they are used with CI
 
12:02 AM
the scripts.tests property specifies the shell code to execute your tests
 
and the tests should error if something is wrong?
 
you should use something like mocha for your tests, with that you can just say, this function, when given args, foo and bar, should return baz, and it'll handle the rest for you
 
do I have to have tests?
 
not really but it is good to have tests
 
I have my own testing program, just not included in the json
 
12:05 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ you should put the code to execute your tests in the json otherwise Travis and npm won't pickup on it, and won't run your tests
 
but I don't know what's required of a test program
 
a test program should just test your code and error if a test fails
 
oh okay
so if it's in js, the scripts.test should be node test.js?
 
You make individual unit tests for each component of your code and if one goes wrong you throw big nasty error
 
.-.
I'm using assert. does that count?
 
12:08 AM
that works
 
cool, thanks
btw what is travis
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah
 
@CᴏɴᴏʀO'Bʀɪᴇɴ A CI tool
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it's a CI thing that everyone uses
 
Continuous Integration
 
@CᴏɴᴏʀO'Bʀɪᴇɴ continous integreation
 
@CᴏɴᴏʀO'Bʀɪᴇɴ continuous integration
 
12:11 AM
isn't that a math thing?
 
also mornamorning
 
what does it have to do with coding?
 
@Downgoat no sudo.
>_>
 
@CᴏɴᴏʀO'Bʀɪᴇɴ not in this context
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no.
 
12:11 AM
@Quill ._. it's 2000 here
 
That is continous curves.
 
@Downgoat so.. what does it do?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Haha, you could say it is, but I'm never heard that term in a mathematical context.
 
@EᴀsᴛᴇʀʟʏIʀᴋ oh, cool :D it's working \o/
 
which iirc only continous curves can be integrated.
@Downgoat :DDDDDd
 
12:12 AM
It means that you push every commit no matter what the changes are and let the ci server tell whether or not it works basically
 
@Downgoat yeah, idk why sudo borks it.
 
@El'endiaStarman ah, I was thinking of contour integration
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it's over 9000 here
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it basically runs some stuff whenever you push to github
 
@CᴏɴᴏʀO'Bʀɪᴇɴ browsenpm.org/package.json
 
12:12 AM
that stuff can be tests, deployment code (e.g. push to heroku, publish to npm)
 
... I'm not using github? I'm just publishing JS to npm
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can always run your own CI
but why aren't you using github?
 
because I don't need to
 
use github anyways
 
I'm just writing a module
 
12:14 AM
@Quill lol
 
^^^
 
I always put my codes in version control (github for ppcg things my personal svn server for everything else). It's a good habit
 
what's a version control?
 
12:18 AM
Version Control System. Like Git or Subversion.
 
oh ok
so, I've done git init. doing git push would do what?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ well you need to specify a location and a branch to push to
you can set your github repos as the master location or a custom server, or whatever
 
git push would push your changes to the current branch on the default remote
 
so would that make a new repo?
 
no
 
12:23 AM
No. You have to make that online.
 
so wait
git is a collection of commands that one is supposed to memorize and get good at... yet you can't make a repo with it
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can make a repo using git init
 
You could if you had access to the remote. You don't in this case
 
^
 
what's the remote?
 
12:24 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ you can make a new local repo like that, just not a remote repo
 
@CᴏɴᴏʀO'Bʀɪᴇɴ GitHub's servers
 
... fuck this nvm
I'm just not coding today >_>
 
...
 
It's really simple, you're overcomplicating it.
Think of git like this
 
DON'T GIVE ME THAT SHIT
AHHHHHHHHHHH
sorry, bad day
 
12:26 AM
All right.
 
I'm just going to leave bai
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bai
 
12:42 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ git is a strange concept to think about in some sense.... GitHub has a great interactive tutorial you can run through without us overcomplicating it for you... :)
 
if he doesn't like git, you could always try to teach him perforce instead x:
 
Git is simple when you think of it as a directed grap- wait a second...
 
0
A: Sandbox for Proposed Challenges

El'endia StarmanInternational Choice of Urinal Protocol efficiency code-golf A long while ago, Randall Munroe of xkcd fame wrote a blog post entitled Urinal protocol vulnerability. The titular "International Choice of Urinal Protocol" is that when men enter a bathroom that has a row of urinals along the wall, ...

 
Is there any operator in JavaScript that returns a reference?
 
passing values by reference? no
feel free to pass variable names as strings and eval though
 
12:57 AM
@Quill no, I mean like reference. e.g. foo-- returns a value not a reference
should cheddar allow operators to return references
or at least directly mutate a value in the callstack rather than retuning a new one?
 
it depends... what usage can you think of that would need referencing
 
idk i just need to know if I should have that functionality
 
if you can't think of a need for it, don't add it
6
A: Why pointers are necessary in programing?

JayDitto SpyrosP's comment that this question is difficult to answer without going into a long discussion. I guess my short answer would be: Are pointers absolutely necessary to programming? No. They make some problems easier or cleaner to solve, but you could always find alternative solutions. It'...

 
@QPaysTaxes but Concaten is an esolang, right?
 
I personally think pointers are a good thing.
 
@Downgoat not really
 
Unless your language has limited operating power, I wouldn't use them. They add a layer of unnecessary complextion to a problem values can solve
@HelkaHomba better not run on goddamn Java
 
@Quill Phones run on electricity. Programmers run on java.
 
@HelkaHomba I will be pissed if frames go obsolete
 
@HelkaHomba I remember seeing this idea a year or two ago, but it's pretty cool to see that it's definitely becoming a reality.
 
1:08 AM
@QPaysTaxes ewww, it looks awesome but I really don't want to have to learn Java to work with them
 
@QPaysTaxes BTW if you rewrite in C++ I could try and make it a Pepper module which means you could run it in browser with basically zero JS involved (although I'll have to run it through pepper.js for browsers other than chrome)
 
^^
@CᴏɴᴏʀO'Bʀɪᴇɴ NOOOO
 
kinda
 
pls come back
 
@quartata D: -1 for zero JS
 
@QPaysTaxes Yes.
 
well a Java update just popped up so I'm convinced there's a conspiracy here... maybe they won't send their drone army to Australia
 
Use 2to3
 
@Quill D: can i move in with you
 
1:10 AM
It should come with python 3
 
@QPaysTaxes Do you even need to change very much?
 
@Quill would be good if it didn't have that " 2" at the end :P
 
Wait, that's not actually 2to3. That's this: docs.python.org/2/library/2to3.html
 
@EᴀsᴛᴇʀʟʏIʀᴋ depends... how good are you at making breakfast
 
1:11 AM
@QPaysTaxes Just fix it until there are no errors
 
you probably won't need to move much, just python3 concaten.py until it builds
 
I make good eggs/sausage.
I cook eggs, pancakes, and sometimes casserole.
 
@QPaysTaxes I can do it
 
Berry interesting:

 Avocados Anonymous

Avocado support group with 12 steps.
 
^
 
lol
oh, are you using quill's thing?
 
no, keyboard
 
19 secs ago, by Eᴀsᴛᴇʀʟʏ Iʀᴋ
oh, are you using quill's thing?
 
no, chat.stackexcahnge.acom
 
1:22 AM
O_O @Quill's thing doesn't like unicode.
> /edit
Chat Domain (abbreviated)> SE
Message ID> 29801299
The message> flloof
Unhandled rejection ReferenceError: message_id is not defined
    at commands.edit (/Users/rikerw/Downloads/SE-Chat-Terminal-master/prompt.js:163:39)
    at /Users/rikerw/Downloads/SE-Chat-Terminal-master/prompt.js:226:29
    at tryCatcher (/Users/rikerw/Downloads/SE-Chat-Terminal-master/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/rikerw/Downloads/SE-Chat-Terminal-master/node_modules/bluebird/js/release/promise.js:502:31)
 
@QPaysTaxes Is there a Concaten room?
 
goddamn it
 
^^
@Quill ?
>_> I enjoy borking stuff.
 
@EᴀsᴛᴇʀʟʏIʀᴋ my general response to borken things
 
floof to you to.
@Quill cool
 
1:24 AM
A wild Doorknob appeared!
 
@EᴀsᴛᴇʀʟʏIʀᴋ I think you need to get the latest version
 
I think there was and it froze
@QPaysTaxes Hit show frozen rooms
 
@El'endiaStarman can unfreeze it
 
1:30 AM
@EᴀsᴛᴇʀʟʏIʀᴋ hi
 
@CᴏɴᴏʀO'Bʀɪᴇɴ hey there :)
 
TIME FOR YOUR GIT MIDTERM
 
AHHHHHHHHHHHHHHHHHHHh
 
....
 
1:32 AM
I JUST HAD FINALS
I had three finals
 
When they're over do you say "finally"?
 
@Quill Right now :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ hai
 
XD
he left
@Downgoat hai
 
@CᴏɴᴏʀO'Bʀɪᴇɴ HAI
 
1:33 AM
@EᴀsᴛᴇʀʟʏIʀᴋ HAI
 
@Quill please come back
@EᴀsᴛᴇʀʟʏIʀᴋ yes
 
@Quill HAI!!!
y u leav
 
@QPaysTaxes I already have one
 
@CᴏɴᴏʀO'Bʀɪᴇɴ then how did you see me and @EᴀsᴛᴇʀʟʏIʀᴋ's messages?
 
1:34 AM
NOOOOOO
 
^
 
@Downgoat I never have it on
 
@Downgoat he turned it off?
ninja'ed
 
@CᴏɴᴏʀO'Bʀɪᴇɴ :D
 
jesus... you wouldn't believe how savage it was out there
 
1:35 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I'll wait for you to get on nethack.dank.ninja, let me know when you are ready.
 
@Quill where? In the CR room?
 
@Quill where do you think I was for the past hour? :p
 
@Quill in the wilds of the tavern?
 
<=@Quill where?
oh hey @EᴀsᴛᴇʀʟʏIʀᴋ did you get the latest version yet?
 
1:38 AM
I removed snake_case like 15 commits ago <_<
 
working on it
I don't update every day, so.
 
@QPaysTaxes Array.from(document.querySelectorAll(".content")).filter(x=>x.innerHTML.search(‌​/ha?i+[!?.]*$/i) >= 0).map(e => e.parentElement.parentElement.parentElement.style.display="none")
 
YOU ADDED ARGUMENTS!!! THANKEE MUCH
@Quill ^
@Conor: I gtg, bye!
no nethack. :(
 
@CᴏɴᴏʀO'Bʀɪᴇɴ -1 for using inferior Array.from instead of [...] or ::
 
1:41 AM
@Downgoat ::?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bind operator
 
that's not a thing in js?
 
it is
document.querySelectorAll("*")::[].map(elem => /*code*/)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can still play, just I can't help.
 
@QPaysTaxes are you using an ES6 compliant browser?
 
1:42 AM
Array.from(document.querySelectorAll(".content")).filter(x=>x.innerHTML.search(/ha?i+[!?.]*$/i) >= 0).map(e => e.parentElement.parentElement.parentElement.style.display="none")
try again
 
@QPaysTaxes oh, then his code is probably bad
 
@Downgoat that doesn't work...
 
@QPaysTaxes ಠ_ಠ
 
@QPaysTaxes ಠ_ಠ
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it's an ES7 feature
 
1:43 AM
@Downgoat almost no one has es7
 
but bind operator is great and does all things
 
@QPaysTaxes I'm golfing it
 
@CᴏɴᴏʀO'Bʀɪᴇɴ "use babel";
 
@Downgoat not for a bookmarklet
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what do yo mean by that/
 
1:44 AM
I'm making it small and can't run it through babel
no they are
but I messed up
 
hmm
 
Array.from(document.querySelectorAll(".content")).filter(x=>x.innerHTML.search(/ha?i+[!?.]*$/i) >= 0).map(e => e.parentElement.style.display="none")
 
ha?i+[!?.]*$|[\^]*$
much better
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I have more stuff in my downloads folder than the other 4 who voted. Wow.
 
1:54 AM
@El'endiaStarman claps
 
Only 18 more items and I would've selected the 400+ option. :P
 
Can we talk a bit faster so that weird Spiderman thing gets pushed off the screen?
 
@El'endiaStarman :D so I don't have the most messy download folder!
@HelkaHomba y u disliek spoderman
 
@HelkaHomba sounds like a plan
how many messages do you think it'll be?
 
1:56 AM
that should do it, I think
 
no, this should do it
it's gone off my screen now
@QPaysTaxes No, it isn't
 
I have officially renounced ice cream in trade for nethack @CᴏɴᴏʀO'Bʀɪᴇɴ.
:P
 
holy shit @CᴏɴᴏʀO'Bʀɪᴇɴ y u post dat
 
@EᴀsᴛᴇʀʟʏIʀᴋ post what?
 
2:00 AM
>_> I have 758 files in my download folder.
 
@QPaysTaxes in JS it isn't :D
 
wtf did i do
 
oh
blame downgoat
 
>_>
@CᴏɴᴏʀO'Bʀɪᴇɴ play nethack now?
 
2:01 AM
@Downgoat...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ;_; wat did i do
 
idk
but he said to
shrug
 
@QPaysTaxes In Python? .clear()
 
>>> x = [1, 2, 3]
>>> x
[1, 2, 3]
>>> x.clear()
>>> x
[]
 
2:03 AM
>>> l=[1,2,3]
>>> l
[1, 2, 3]
>>> l.clear()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'clear'
>>> l
[1, 2, 3]
>>>
 
What version of Python?
 
Ha, apparently .clear() is new in Python 3.
 
is there a babel for python
 
D:
 
Nnno, I don't think so.
 
yes if you count pyjs... :P
 
Probably because there aren't Python specs developed years ahead of their implementations. :P
 
2:04 AM
@Downgoat the thing
 
but it's not the same
@CᴏɴᴏʀO'Bʀɪᴇɴ wat thing
 
Feels to me like you might be worrying about optimization prematurely...
 
@LegionMammal978 in 20 years
 
2:17 AM
@QPaysTaxes Oh, I see.
Eh, sure. I'll look it over.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That would be 2036, or about 2040
 
@QPaysTaxes No, was thinking of 2001: A Space Odyssey (the book, that is)
I know C, I know C# (was my first language), but I still don't know C++ :p
 
2:32 AM
@QPaysTaxes Is it declared global inside the function as well?
@QPaysTaxes Same way. global var. Declaring it to be global both inside and outside of the function is Python's way of making you be explicit about it.
And also allows two functions to use the same variable, but make it so that only one of them actually uses the global variable.
 
@QPaysTaxes Me neither
 
@QPaysTaxes: Your print_nnl(<string>) can be replaced with print(<string>, flush=True).
while matched_c != 0: can just be while matched_c:, but this isn't real important.
Some of your print functions near the end can similarly be obsoleted or rewritten.
I could look at it more in-depth tomorrow, but right now, it's time for me to go to bed.
 

« first day (1939 days earlier)      last day (2903 days later) »