« first day (2447 days earlier)      last day (2503 days later) » 

10:02 PM
easy trap to get into is putting too much fuel on a plane
🏠 🏠 🏠
 
I want to try KSP
is it hard
 
do it
 
eh
 
like, I don't have much spare time right now
 
yes, but in a good way. and it gets easy
 
10:03 PM
it's hard to do well, but easy to see what you should be doing, mostly
 
how does it fare versus space engineers
 
totally different game
 
Hey
Gave a "build your own Rx" talk today - was fun
Went well, ended up working - relatively few bugs
 
@Mosho I played a ton of SE for a while cause I wanted to build capital ships and crash em, and stations and stuff. KSP is just rocketry and other forms of flying.
@BenjaminGruenbaum slides?
 
No slides, live coding
 
10:05 PM
@ssube yeah, so, what's more fun
 
@ssube here's live code jsfiddle.net/af4coreh
 
@BenjaminGruenbaum cool
 
@Mosho two talks about css-in-js btw, you would have liked it
 
yeah I saw
 
huh, that's a cool demo
 
10:08 PM
@ssube yeah, makes Rx much easier to explain
 
I love how observables are such a simple concept that talking about them visually makes sense to people
 
there used to be a few but last I looked for one to show someone I couldn't find any
 
you mean rxmarbles.com ?
 
@ssube people are surprised when I tell them implementing a promise is a lot harder than implementing an observable - which is just a really dumb event emitter who calls one function.
 
@ssube that one is lame
 
10:09 PM
@BenjaminGruenbaum oh, when I first started writing my own observables (or rather, turning my service classes into observables), I thought I was doing it wrong because it was so simple and took so few changes. There's a good chance I still am, but yeah, it's so simple.
 
class Observable {
  constructor(subscribe) { this.subscribe = subscribe; }
}
var obs = new Observable(o => {
  o.next(1);
  o.next(2);
});
obs.subsribe({
  next(v) { console.log("GOT", v);
})
The problem with Rx is that it's no fun to debug in practice
 
power is mandatory
 
@KamilSolecki you're gonna tip over
put em underneath, maybe
 
remove the boosters and 90% of the fuel
 
I say remove the plane
 
10:13 PM
mission failed
 
put them on the tips of the wings
 
well I did a cool backflip at the end of the runaway
I was expecting something else to happen at 88 m/s
 
like the wheels exploding?
 
Also, any idea why doesn't the liquid fuel engine work?
 
what liquid fuel engine?
 
10:16 PM
need air intakes
 
the two small ones on the wings?
 
@KevinB back 2 the future reference
 
jet engines need air intakes
 
@rlemon there are air intakes on the turbines. I also have a liquid fuel engine in the bsck
 
just sayin'
 
10:17 PM
they look right
my guess would be they did work, but weren't enough to lift the plane
or, move it
even
 
5 mins ago, by Kevin B
remove the boosters and 90% of the fuel
 
Went up to 88 mph, but I also have an extra engine in the back, and yeah I did that
 
@MadaraUchiha I'm offended.
 
Question is, are there problems with using a liquid fuel engine (the one you'd use for rockets) on the ground
 
10:18 PM
those two engines should be able to lift that frame
 
It just sparks
And that's it
 
nah, no problem with that
but it needs oxidizer
and the weight of the rocket engine might be why the jet engines aren't enough
 
Oh I might have missed that again, thanks
Oxidizer it shall be
 
@rlemon are canadians high all the time
 
10:19 PM
i need to replace my contact lens
 
^ self-star
@Mosho not all of them
why do you ask?
 
> luggage66
should be luggage666
 
damnit
 
666 was taken.
 
now i want to play ksp, but i want to play fo4 more
 
10:21 PM
j/k.. i've always used 66.
 
why can't i play both at once
 
@rlemon professionals, tradespeople etc. not answering calls, forgetting to get back to me etc.
 
@Mosho ohh they just don't give a fuck. it's summer and they're busy.
 
@Mosho they are, most definitely
 
they have 100 people wanting to give them money all at once.
if you call them during down time they bend over backwards for you
 
10:22 PM
@rlemon haha
 
I see
good to know
not just them though
 
everyone wanting a deck or a patio or w/e is paying top dollar right now for it
 
university people, city people
 
well they're probably high, yea
 
not always
 
10:23 PM
voodoo people
 
you live in a University town
 
and if you go there personally they're always available
 
Kitchener is slightly better, but not much
 
looks like the house deal is going to fall through :(
now I have to try and get my deposit back
 
that sucks dude
 
10:25 PM
@Mosho woah, why?
 
it was a small deposit
 
O God! patio furniture, mid-life crisis
 
somebody outbid you?
 
Just so I'm not overlooking something, can you not make an ajax call to a generic C# method?
 
@ssube no, I already "won" and gave the deposit
 
10:26 PM
@Luggage why didn't you like your own post o_0?
 
@BenjaminGruenbaum the house has a kitchen in the basement, and I did research it with the city before putting in the offer and it seemed fine, but after the offer was accepted I went to the city planner for info and she told me I would have to tear it down because of reasons
 
How expensive would that be?
 
You don't need furniture just sit on the floor
 
Lemon already posted that link, fyi. I was waiting for others to vote to sort of 'second' the vote.
 
@BenjaminGruenbaum dunno, don't even know what that means
 
10:27 PM
Yeah, just saw
@Mosho redoing the kitchen and basement
 
I was offended that @MadaraUchiha said all the good devs left, but then I remembered that I do stuff like this
And it's ok
 
🎶*university people, work people used to live here, now its a ghost town*🎶
 
@BenjaminGruenbaum I don't know, do they are about cabinets? or just the stove
who knows
I don't want to deal with it
 
it would only be a bummer if I lose the deposit
 
10:29 PM
@Mosho did they tell you it was a fire hazard, or something else? lack of permits?
 
@ssube yes
 
finding out about, essentially, illegal parts of the house seems like an easy way to get your money back
 
not being up to code isn't necessarily illegal
 
Still, you've spent some time on this house - that time lost is a bummer
 
if the law says you have to be up to code...
 
10:31 PM
I don't know that it does, for everyone, all the time
if you want to get a rental license, then it does
if you want a building permit, I assume it does
 
what they let happen and what it says are always different, they aren't going to kick folks out for some rotten walls
 
but no one is forced to keep up to code if they own the house and live in it
 
but if it gets too bad, they can evict you, usually
 
@BenjaminGruenbaum github.com/JavaScriptRoom/culture/issues/34 I had no idea you did that lol
 
plus the whole condemning houses vs actually evicting people thing
 
10:32 PM
@SterlingArcher :D
 
@ssube the thing is, a realtor would tell you those are what conditions for
and in this case they were all waived
so it's up to lawyers
 
that's odd
 
but, the house was marketed as income potential
with an "inlaw suite"
 
@SterlingArcher keep in mind that some of those "good devs" were also pretentious and were outted by their own attitudes
 
I guess it's good that I found out before actually closing
I could have just as easily procrastinated my way to the closing date
 
10:34 PM
so you need a home inspector? a good contractor?
 
I need another house
 
lol
okay then
 
@ndugger how dare you speak such atrocities against @connorspiracy
 
next time before it's too late ask me if I know anyone
 
@rlemon it's not too late if I was going to close
 
10:36 PM
so, something new and bad happened to my rocket. It seems like the couplings broke and the inside bit didn't go with the boosters.
 
also, prices have been slipping a little
so even if I do lose the deposit
 
@SterlingArcher I'm more referring to greg, kittens, the people who created the ECMAScript room, etc.
 
-1
Q: Reverse engineering nodejs code

furanI'm new to nodejs and have to understand what this code does to port it on python. Any help appreciate. Thanks. Here's the code: const rocketscience= r=> (()=>(f=>f(f))(f=>((g)=>( (v, i)=>( (i == 0) ? (v & 1) : (g(v ^ (v >> i)...

jesus christ
 
Jesus, somebody really is scared about their job security. — Sterling Archer 44 secs ago
lol
 
i made a funny?
 
10:39 PM
⭐️
 
I made a funnier
 
yes you did
here you go
 
function arrayMap<T, U>(f: (x: T) => U): (a: T[]) => U[] {
    return a => a.map(f);
}

const lengths: (a: string[]) => number[] = arrayMap(s => s.length);
 
I wish I could get a golden star, but instead I get demoted from RO
 
10:39 PM
I don't understand this code from blogs.msdn.microsoft.com/typescript/2017/06/27/…
 
@ndugger welcome to the club
 
@ndugger ⭐️ you can also have a ❤️
 
!!afk cleaning for the gf
 
:'(
 
Isn't the last line wrong? Where is arrayMap knowing what a is from?
 
10:40 PM
> I vote no amd make a counter offer: remove luggage from RO for cyber bullying me
 
@BenjaminGruenbaum sweet, string enums
 
@BenjaminGruenbaum that's the point
 
@ssube what?
 
@ndugger if you're going to discuss that, keep it to the issue. Stop cross posting to create more drama.
 
generic type inference, i think
 
10:41 PM
@BenjaminGruenbaum that's from the inference example, yeah?
 
@ssube cry more
 
Yes, but how does that even work? lengths without types is just a => arrayMap(s => s.length) - doesn't a have to be passed in?
 
@BenjaminGruenbaum it's the type
 
I think it's because the types are supplied by the type of const length
 
Oh, it's partial application.
 
10:43 PM
@BenjaminGruenbaum arrayMap returns (a: T[]) => U[], which is then raped into (a: string[]) => number[]
 
since arrayMap won't have enough to know.. it'll be inferred as (any[]) => any, i bet
 
I saw return a.map(f) and not a => a.map(f)
It's just curried
I was just reading the code wrong
 
You can do Array.from(({length:'whatever'} and use it with a callback
 
and then it understands the type of s from type T of a
inside the iteratee
 
For what its worth can we have an RO rotation system, where ROs must step down after n months, so that other people can be ROs?
 
10:46 PM
We don 't have an RO cap
 
We need that and a rotation
 
And forcing an active RO to step down because of some arbitrary timer is silly
 
yeah, that's asking for trouble
 
Why would we need that?
 
A K
having another typescript error here, this time it's with my combineReducers
 
10:47 PM
@Cerbrus thats how usually all form of govt's work
 
we have an activity requirement, which helps
 
@Shrek no it's not
 
We're not a government.
 
@Shrek that assumes you have a large pool of people to draw from
we don't have the population to replace all ROs every year
 
@Shrek Also, look at how that's working out for the US :D
 
10:47 PM
@Cerbrus ;D
 
Or the Netherlands, actually.
 
hehe, term limits
 
@Shrek that's how some republics work, and it's a very small part of all government employees
 
Term limits are weird
 
Pretty sure trump will tweet in 2020, "They are asking me to step down after 4 years, 4 years aren't enough to #MAGA, support T"
@Mosho I just find it weird how we have had the same RO's forever, we need Zigi to be RO too :D
</joke>
 
A K
10:49 PM
  3 | import { listReducer } from './listReducer';
  4 | import { footerReducer } from './footerReducer';
  5 |
> 6 | export default combineReducers({
  7 |     listReducer,
  8 |     footerReducer
  9 | });
typescript doesn't like this
 
it's not defined
 
not every expression can be exported as default. put in in a variable first
 
I don't think Trump even actually wants to be president
 
@AK read typescript docs
 
@AK why? What's the error?
 
10:50 PM
they have a full blown doc about exports
 
@Luggage I don't think that's true?
 
@Mosho it is
it has to be something static
 
example please
 
I have had trouble "export default"ing valid expressions.
 
oh
 
A K
10:51 PM
Error: Reducer "listReducer" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.
 
^
 
you can't export the output of a function call, like there
 
interesting
 
it has to be known before the module is executed, for obvious reasons
 
brb googling ts playground
 
10:51 PM
export is 'special'.
 
@Shrek we did it with you, you were RO, then you were rotated - the system works.
 
imports and exports are all established before running code
 
@Mosho be careful with that search...
 
@BenjaminGruenbaum Yep, I WANT TO COME BACK!
 
A K
its during initialization that i'm getting erros
initialization with my reducers
 
10:52 PM
@Shrek well, open a ticket (once the current one is done). I'd vote for you, so long as you're around.
 
I am usually around even though I don't participate as much, but I can keep an Eye.
 
const combinedReducers = combineReducers(...);
export default combinedReducers;
 
this looks like it compiles
 
@Luggage WOT, how do you only have so little rep?
 
the playground doesn't do modules, iirc
but it does compile, I wouldn't think it did
 
10:53 PM
@Shrek I don't play on main.
 
A K
i'm still receiving the same errors
×
Error: Reducer "listReducer" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.
i googled that and couldnt find a proper answer to it
 
Also, the reason you can't export a function call result is that it isn't named.
That's a redux error - it's literally telling you how to fix it.
 
@Mosho it might not with es6 module output..
ts is like that.
 
listReducer
check how you are importing it / initializing it.
Do you guys use VSCode for pure JS projects as well?
 
huh.. no error. I've ran into not being export default before, but I can't recall what.
 
A K
10:57 PM
import { ListAction, SELECT_CONTACT } from '../actions/listActions';

interface ListState {
    contacts: any[];
    selected: null;
}

export function listReducer(state: ListState, action: ListAction): ListState {
    switch (action.type) {
        case SELECT_CONTACT:
            return Object.assign({}, state, {
                selected: {...state.contacts[action.id], id: action.id }
            });
        default:
            return state;
    }
}
 
@Luggage that's a good point, AMD/UMD modules are definitely allowed to do that
IIFEs much like that are the basis of how they work at all
 
but i tried in my project that output es2015 modules and no error..
oops, i used .js extension
still no error
 
@Shrek yeah
 
i use vscode exclusively at the moment
well.. VS for mac for a c# project.. but for all JS/TS
 

« first day (2447 days earlier)      last day (2503 days later) »