« first day (2614 days earlier)      last day (2333 days later) » 

4:00 PM
just do it
 
jumps
 
I wonder what kind of car
 
@KendallFrey why in the hell is onshape not giving me the full shape?
(the inner holes are wrong in the stl)
 
Um ok I got almost everything done. But mocha doesn't know how to interpret my JSX
I'm guessing this is because my webpack.config.js is reponsible for my babel options
So I moved some options to .babelrc but I think I'm doing it wrong:
{
    "presets": [
        ["env", {
            "targets": {
                "browsers": [
                    "Explorer 11"
                ]
            }
        }],
        "react"
    ]
}
 
no .babelrc?
oh
 
4:04 PM
@rlemon uhh, you're not looking at an old version are you?
 
Yeah I know I've been extremely rushed I'll move everything to where it needs to be but it's honestly just now starting to click how some of this stuff works together
 
nope. just noticed somehow I made it two parts
now to find out how to merge parts.
 
@SterlingArcher Im in just for the notebook
 
Right?
 
i think that babelrc looks right: github.com/luggage66/boilerplate/blob/…
 
4:05 PM
@rlemon boolean tool
 
Boolean -> Union
nice.
 
but is mocha using the webpack output? if so, the JSX is already taken care of
 
@KendallFrey shitty part was I didn't notice until like 1/3rd into the print
 
@Luggage no it's not.
 
is it using babel?
 
4:06 PM
Normally you'd just add to the main part right from the start
 
no clue how I made two parts.
 
(for example, is babel it in your mocha.opts file?)
 
@Luggage .... no
I couldn't get filepaths working correctly in my mocha.opts file
Kept saying the files weren't found
 
@rlemon got a link? I'm curious
 
So I just put it all in the npm task script
 
"scripts": {
    "test": "mocha --require ./test/setup.js"
  },
@Luggage ^ that's what I have
 
you don't --require that
 
what do you mean?
 
--require is for things like node-babel, not your tests
or.. what is setup.js?
 
@rlemon Looks like the second extrude is in New mode instead of Add mode
 
4:10 PM
My tests are auto-detected because they are in the /test/ folder and have a "test" in the name (not sure if that second part is actually important)
 
I don't know where that goes.. --require feels odd. maybe not.
moving on...
 
@KendallFrey blah, ohh well. it's fixed now. but I'll look out for that in the future
 
also, you would probably love the hole tool
 
is it aubergine?
 
@rlemon heyoooo
 
4:14 PM
@SterlingArcher hangouts
then tell me if I should send it to Kendall :D
 
how do I measure the ring into which a ceiling fan lamp shade glass globe goes? It's round, but there's an obstacle (the bulb) in the middle, so I can't measure across and I don't have a cloth measuring tape.
 
idk how but my tinder settings jumped to 55+
That scared me lol
@rlemon oh dude are you serious
lmfao why though
 
Denmark
read the description
 
i mean.. yeah ruin his day
or make it idk he might be into it
that sick puck
 
@ssube use a compass and measure the compass against a ruler
 
4:16 PM
sent
 
I don't think I have a compass
 
take two pictures and measure the parallax
 
@rlemon that is beautiful :')
 
LOL
 
@ssube anything similar will do
 
4:17 PM
maybe I can measure from the bulb and add it later, it's probably an even inch anyway
 
At least it wasn't a shart
 
they should have done a IR cam
watch that heat move
 
stackoverflow.com/questions/47776972/… it irrationally annoys me when somebody asks "why do you want to do that" and then proceeds to answer without getting more details
 
does air even show up on a IR camera?
 
@Luggage thanks for the help... In a meeting now but I was a hob-cobble enough together I didn't get fired, so there's always that
 
4:19 PM
I think gasses just distort IR, you need particles to see it, but that might be a lie
 
@KendallFrey hot air should.
 
well, I guess I don't know much about different thermal imagining tech.
I assumed it was all IR
 
if you look at your house at night with FLIR (90% of my experience), you can see the heat leaking, but not the trails out into the air
 
@rlemon Isn't it?
 
4:21 PM
if you have smoke or something, you can definitely see that
 
well if it is, they use thermal imaging to find gas leaks because of the temp change
so a fart should show up briefly.
 
if your local home depot rents them out, get one and look at your house
 
@rlemon yeah but are they looking at the air, or the stuff near the leak?
 
the outside gets hotter around leaks, which I imagine is even more pronounced for pressurized temp-controlled gas
still cool to look at your house and see the cracks and gaps
 
no clue
 
4:23 PM
I thought pressurized gas leaks would make it colder?
 
maybe, it should be a dramatic change either way
 
specifically, outer space
 
tell me that's not fake
 
4:26 PM
that's not fake
 
@KendallFrey @ssube did you see the 3d printer backpack I posted this morning?
 
@Vap0r thanks
 
5 hours ago, by rlemon
https://techcrunch.com/2017/12/11/makex-annoucnes-the-first-3d-printing-backpack‌​/amp/
 
I saw the link, didn't open it
 
no, but I may have seen it on the news
 
4:26 PM
😃 I want one
 
I assumed you wanted one
 
can it print while you walk around?
otherwise i don't care :P
 
yea watch the video on the article
 
I like how they made it transparent, so anyone can see that you're carrying a fucking 3d-printer outside
 
dunno how well it will print
 
4:28 PM
oshit, that's cool. But yeah, that's a lot of movement.
 
this leads into putting a 3d printer in your trunk
 
and the guy is walking very smoothly
 
long road trip? print a vase on the way!
 
cops chasing you? print tire spikes
 
> estimated print time: 3 hours
 
4:29 PM
can a car power one of those instant laser 3d printers?
 
maybe a tesla
 
^
 
I WON RLEMON!!!!
 
they're less likely to...
 
wohoooo
 
4:30 PM
with a big enough alternator, it can run your house
 
batteries vs a real power plant
 
@ssube doesn't have to be running
power stations are already mining bitcoins
why not run 3d printers :D
 
because you can not print bitcoins
 
sure you could. print it as a qr code.
 
you can do that with a 2d printer
 
4:31 PM
you just invented 3d qr codes
 
2d is so 2010
 
my 2d printer is almost the same size as my 3d printer :P
 
and the ink costs more than plastic
 
my 3d printer is almost same size as
 
thingiverse.com is failing hard for me
no scroll bars, can't click on anything
no interactions
 
4:32 PM
@Luggage nah. $60 cartridge got old after the 2nd one dried out, so I went $100 refurb laser. 5k pages left. :D
 
no interactions, lol
turn on CSS warnings
violà
 
it's that net neutrality
invisible full page iframe :D
 
fuck that noise
 
also
> Load denied by X-Frame-Options: eff.org/doa/banner_content/netneutrality17/… does not permit cross-origin framing.
 
if you can't iframe that warning right, you probably don't belong on the net
 
4:35 PM
it's a fucked up ad
 
ad blocker?
 
is in javascript it possible to transform a dictionary to a list-of arguments? - Like in python I could call a function like: fun(**{blah: 0, foo: "bar"}) where the function signature is fun(blah, foo)
 
spread/rest
 
Or if that is not possible, is it possible to pass arguments by keywords instead of order?
 
@paul23 you can make the function accept an object as the argument
 
4:35 PM
nah, I'm using Origin, but it looks like they did CORS wrong
 
function foo({blah, foo = 'bar'}) {

}
 
So there's no native support for that?
 
foo({blah});
 
you can either spread an array (order matters) or change the function to accept an object with named keys. There are no other 'named arguments'.
 
if you just want object properties
 
4:36 PM
named arguments would be passed as a map or some other object anyway
 
Cause then I have to use a dictionary (or I'd have to go to great lengths to check the ttypes etc).
 
I prefer not obfuscating that
 
@ssube not in python
 
is spreading objects already in the spec actually?
 
Or even c#
 
4:37 PM
it's in a stage
 
or still in draft
 
not final
 
@paul23 how does python store then in the runtime?
 
stage 1?
 
it's something dict-related
 
4:37 PM
☕️
 
@KevinB You know what this leads to...
 
stage 3 actually.
 
💩
 
true
 
the fastest 3d-printer in the world
nice prank for your grandparents
 
4:38 PM
but .. we already have Object.entries() tho, which can be looped like for( let [ key, value ] of Object.entries( obj ) {}
 
@ssube Internally objects are classes: and the arguments are simply properties of that class. - each function also accept a dictionary as "optional" parameter, which can override any optional argument when the function is called.
 
and classes are essentially dicts
in the end, unless you get extremely clever (which C# probably does after .Net gets ahold of it), you have a dict-like object of named arguments
 
!!s/cts/cks/
 
@jAndy and classes are essentially dicks (source)
 
4:40 PM
Yes (c# already does this).
 
@KendallFrey man, that's crazy as fuck
it is madness
 
However those arguments are (for the programmer) no different than ordered arguments - that is the important part.
foo(1, 2, 3) === foo(myval=1, third=3, another=2) -- when foo is defined as: foo(myval = null, another = null, third = null)
Named arguments when calling really helps with self-documenting code.
And you could even do something like: foo(myval=1, third=3) (letting only the second value be defaulted)
 
named arguments are a wonderful thing
 
But are those possible in js?
 
lemon and Luggage both explained how
you pass an object, destructure it (I prefer to do that on the next line, it gets too long in the params list), and use defaults there
 
4:45 PM
Well that would make the "code ugly" (since a function defines that the user HAS to use named arguments, or not. While the idea is the user can decide and the language handles all edge-cases).
 
it makes the code consistent, because functions don't suddenly change arguments
 
function foo({myval=1, third=3, another=2}={}) {
	console.log(myval, third, another);
}
foo({third:'the game'});
 
Huh, didn't know I could do this.
for(const [site, {orders}] of Object.entries(result.sites)) {
    // Yada yada
}
 
Yet it is impossible to just call foo(4, 5, 6)
 
wat
 
4:49 PM
!!wat
 
Or well, to the point: in a unittest I have a "dictionary of parametrized arguments, I wish to pass those arguments to the function at the correct position".
 
hey stop playing with the bot @jAndy
she has feelings
she feels used right now
 
@paul23 Just a list. Arguments are ordered, not named. foo(1, 2, 3) or foo.apply(null, [1, 2, 3]) or foo(...[1, 2, 3])
 
she was created by a yellow smiley without feelings and emotions, so, she definitely has none too
 
4:50 PM
did you just assume her feelings?
 
Like I have a function decared as function foo(myval=null, another=null, third=null) and I have a test-list defined like: [{myval=1, third=3}, {myval=3, another=undefined, third=1}] - and then I just want to test this.
 
yes, she told me
 
So, I fully understand Proxies now, but I'm really confued on what the merits of Reflection are... What's the point of doing Reflect.construct(Foo) when you can just do new Foo()?
 
!!tell ssube is it true or not
 
@Neoares Command is does not exist. (note that /tell works on commands, it's not an echo.)
 
4:51 PM
@paul23 there's no good way to do that. as has been said, arguments aren't named.
 
@BenjaminGruenbaum you're a smart guy, maybe you can help knowledge me
 
!!is it true or not
 
@Neoares is it true
 
you'll have to add logic to accomplish that goal or go in another direction.
 
Reflect.construct is a normal (non-contructor) function and can itself be called without 'new'.
 
4:52 PM
^
 
hm... !!tell command doesn't work with the "or" thing
 
What's the point, though? Do people have aversion to the 'new' keyword?
 
Reflection is not generally useful
 
Sometimes you need a function. Like if you are passing it to another function that takes a factory function as an argument.. Got me.
 
i mean... i use a reflection every morning
 
4:53 PM
I understand putting a lot of the static object methods on the static Reflect object, but I don't understand how reflection is useful in getting properties, or instantiating constructors
 
Talking about usefulness, what is the prime example for using Symbols tho :P
 
It's mostly useless. A lot of Reflect.* is redundant.
 
@jAndy private methods/properties, though that can be done several different ways
 
you can't .apply or .call with new
 
Do you even need apply or call with constructors with the new classes spec?
 
4:54 PM
both lost their usefulness with the spread operator
 
^ ^ yes
 
@jAndy not at all
spreading behaves differently
it has to copy and spread, first off
if you have a very large array, that might not be an option
 
what are we talking about? A gazillion entries?
 
I'm asking this now because I'm going to use a Proxy in a personal project, and I stumbled into Reflect and was confused about if I should be using it or not, but it seems like no. The articles written up about it are not very telling
 
like Luggage says, it's mostly about consistency
they provide the standard Function API on a bunch of keywords and language bits that wouldn't have it otherwise
 
4:56 PM
@jAndy like, tree(3) entries
 
unlike Java, where reflection is the answer to every single thing
 
As for using Reflect to get properties or methods, or to construct a class, though, it's generally not useful?
Just making sure
 
if you find yourself jumping through 3 layers of nested computed structured property iterables, then consider reflection
if you want foo.bar, don't
 
@ssube The wikipedia entry on reflection seems to make reflection even in java seem useless
How does relfection solve for 3 layers of nested computed property iterables?
 
Reflection like many other stuff in ES (Symbols, Class syntax) just seem to be there to satisfy same lazy ass old school asses which don't want to deal with the original programming style and set the language provided
 
4:58 PM
I mean, I find symbols to be very useful when creating libraries, or other consumable bits of code
 
that's of course a little exaggerated, but the committee of ES really pulled of some weird decisions
 
@jAndy have you ever used it, or run across the use cases for it?
 
you know what doesn't apply reflection well?
Watchdogs
 
@ssube I never had the need to use it really, that alone means quite something to me
 
I also find the new class syntax to be useful, when you're dealing in OOP. Instantiating functions was a bandaid to satisfy OOP requirements
 

« first day (2614 days earlier)      last day (2333 days later) »