« first day (1942 days earlier)      last day (3011 days later) » 

user1596138
5:00 PM
But in an orca
 
@jhawins Yup, well-known issue
 
@crl wait are you caubruitn on github?
 
user1596138
@KendallFrey :( Guess I've made the biggest thing I can
 
You have 3 options: Don't have more than a couple hundred parts in one spot, lower the maximum physics time step, or wait for the update where they fix it
 
user1596138
I even tried turning EVERYTHING down all the way. I'm guessing it's a in the physics
 
5:01 PM
TURN DOWN FOR WHAT
 
I can't remember if lowering or raising the time step is what speeds it up
@jhawins it is
I think lowering
 
user1596138
@KendallFrey Update where they fix it? Do they even look at the game anymore
 
alright
I'm migrating to gitlab.
 
@jhawins lolwat
 
user1596138
/me hasn't seen new content in like 6 months
 
5:02 PM
I think it might be fixed in 1.1
 
user1596138
Shit, a entire year
 
@jhawins The last update was 3 months ago
 
@ssube Almost nine months of doing everything right, my score has gone up four points. That means at this current rate, we're looking at 12 points in three years.
 
they generally release updates every few months
 
@crl at first I had a group of images in a div .. and then onDrgaStart I was setting the dataTransfer.effectAllowed and the getData("src", e.target.src) but now each img is being wrapped around an li .. so I put the onDragStart and draggable=true on the li .. but it doesn't seem to work .... I even added a e.preventDefault in the hander for onDragOver
 
5:03 PM
@Trasiva what do you mean "Everything right"?
 
user1596138
@KendallFrey Meh. I just know it was about 2 whole years ago I was running into the exact same problem with my iMac
 
crl
@AwalGarg yes
 
user1596138
I remember talking to you about it
 
it won't just magically go up over time without doing stuff
 
crl
@argentum47 you need to e.preventDefault() in dragOver
or something like that
ah ok you did it, give some fiddle
 
5:05 PM
@jhawins the physics thing? of course you were, they didn't downgrade the game
 
@ssube Everything is paid on time, my credit card has ~8% of a balance on it, no credit inquiries, no outstanding loans (aside from the FAFSA, but that's deferred right now). Credit card gets used twice a month for gas, and paid off the balance, leaving about $15 on it.
 
its not even going into the function .. I tried to log ...
 
user1596138
Oh it was only February of 2015
 
ok fiddling
 
crl
there should really be a classList.toggle(cls, bool)
 
user1596138
5:05 PM
@KendallFrey Point was that it's still the exact same :P
 
And?
They're finally fixing it
 
@Trasiva it's not going to go up, you don't have any credit.
 
be happy
also I think we get 64-bit
 
@crl hey if you are the cauburtin on gh thanks for the bug report! I also have a bundling version of it if you wanna try
 
One line of revolving credit you don't use and no fixed lines of credit won't do a damn thing for your score.
 
5:06 PM
@ssube I have a car loan and a credit card.
 
which is big for me now
 
crl
@AwalGarg ah great man!
 
user1596138
@KendallFrey They are? lol didn't we just establish that they aren't
 
no... they are
 
user1596138
5:07 PM
Yeah 64bit would be nice, will it be official? I saw the workaround but seems meh
 
user1596138
@KendallFrey We will see.
 
@jhawins Yes
They're upgrading to Unity 5, which has a whole host of nice things
I dunno why you're skeptical, they're more active than ever in working on the game
 
oh jesus christ, this project just jumped in complexity
 
user1596138
@KendallFrey Oh, well that does sound promising.
 
Just because an issue has been there since the birth of the game doesn't mean it will remain until the death of it
You disgusting pessimist :P
 
user1596138
5:11 PM
@KendallFrey Well 11 months ago I had the same problem. So it makes sense to be a tiny bit skeptical. Maybe there are reasons it would never work properly with that many parts (take Red Faction Armageddon for example if someone tried to make the same work with a GTA V sized world, it's not realistic)
 
I'm now emulating Youtube in this app.
 
user1596138
I am skeptical in the way of "They may have dug themselves into a hole where they can't realistically support massive ships in the current engine"
 
user1596138
But I don't care enough to Google, so it stops there ;P
 
@jhawins That's true, that's why they're upgrading the engine
If you had googled, you'd know everything about this issue
 
can I just chime in with how much nicer Unity 5 is than 4?
 
user1596138
5:13 PM
@KendallFrey There could have not been an engine to (easily) upgrade to :P. I didn't know
 
@jhawins It's simply because they were only using one thread, easily remedied
 
user1596138
@KendallFrey Seriously? That's what I was thinking yesterday
 
user1596138
Well cool. Hopefully it turns out great.
 
I'm getting completely crazy. What is the way to specify icons in manifest.json for progressive web apps and chrome extensions ....
0
Q: How to specify icons in manifest.json?

KasperHow to specify the icons in manifest.json? It seems like some use an array and some use a dictionary. For example: https://developer.chrome.com/webstore/get_started_simple "icons": { "128": "icon_128.png" }, But in this source, they use it like this: https://developers.google.com/...

 
http://www.commitstrip.com/en/2016/02/09/the-childhood-of-a-coder-cant-stop-watching/
CommitStrip
The childhood of a coder: Can’t. Stop. Watching.
CommitStrip
1455038447
 
crl
5:27 PM
@AwalGarg I can test it if you want, but put some minimal example :), how do you call that createBundle function with a simple entry point 'index.js' a bit confusing there's pathList and opts.entry
 
@Feeds I miss that view a lot.
 
aright kids
how can I clean up this method?
the number of edge cases and repetition is absolutely hideous
 
Guys, a recent JS framework with a short name was mentioned here a few weeks ago... And I can't remember its name... Any help ?
 
io.js?
a.js, b.js, c.js....
 
5:36 PM
@ssube Are you deliberately implicitly returning undefined if the if (binding) check fails?
 
@Retsam one of binding or provider will be true, thanks to module.has
 
I've made a wonderful discovery. French fries with ketchup AND cholula hot sauce. It's an amazing combination
 
Gee, I wish the kick notification had timestamps...
 
@ssube why the if on binding, then?
 
@ssube Perhaps drop the check then, and add a comment saying that it's guaranteed to be true, then?
 
5:40 PM
@AwalGarg @Retsam done, with a few other tweaks. Take another look?
 
@ssube This is what my version looks like: gist.github.com/Retsam/c7a9b97e50f7b52f9798
 
user1596138
@Trasiva Sadly it's a hash link once you get to the transcript so you can't keep following it :/
 
@ssube I personally prefer early returning, so I'd do if (!module) throw ... , then continue the rest of the code branch-less, but obviously that's subjective :)
 
@Retsam hm
 
Use assert
 
5:42 PM
I did what Awal just mentioned; consolidated the provider cases; and reused a return on the binding case, I think are the changes I made.
 
@jhawins It works better once more stuff is on the log, haha.
 
yeah +1 for assert. I have recently started doing that a lot more.
 
@copy expect >> assert >>> should
 
>>> maybe
 
>>> what everyone else does
 
5:43 PM
@crl ah yeah docs are lacking lol
 
@ssube What's expect?
 
@AwalGarg @Retsam ok, pulled in those suggestions again.
 
Oh, but you wouldn't use that outside of tests
 
@ssube uh, your example looks wrong
import {Inject, Injector} from 'noice';

@Inject(Foo, Bar)
class FooBarUser {
  constructor(foo, bar) {
    this.fooStuff = foo.doStuff();
    this.barStuff = bar.doOtherStuff();
  }
}

injector.create(FooBarUser);
Injector isn't used and injector gets out of nowhere
 
FIX IT
 
5:45 PM
@ssube copy was talking about using assert in the code
 
When you says "assert" outside of tests, are you using the Chai assert library, or something else?
 
console.assert
I usually write a wrapper around it that gets removed by Closure Compiler
 
function foo(bar) {
    ASSERT(bar > 0);
    return 50 / bar;
}
@Retsam ^
 
I wish console.assert logged a "assertion passed" message in console when it passed.
 
That'd destroy the console with usually meaningless messages.
 
5:48 PM
yeah, I hate assert in production code
 
that's why we can filter console messages :)
 
I've never even seen it before; Hell, I didn't know it existed. Just played with it in the console, and I agree, no message for a success seems a bit odd.
 
@FlorianMargaine I mean, I get the concept of assertions; I just didn't realize JS had an assert statement. (Having it tied to the console is rather ugly...)
 
@ssube It conveys the same message as your comment, but also checks the condition and you need to maintain it
 
5:49 PM
@ndugger it's only supposed to display when something's wrong
 
@FlorianMargaine you are a bad man
 
/** @define {boolean} */
var DEBUG = true;

function assert()
{
    if(DEBUG)
    {
        console.assert.apply(this, arguments);
    }
}
 
Is it just a message display, or is an error thrown as well?
 
Closure Compiler removes all invocations of assert. You can even call it with side effects and it'll preserve them
 
5:50 PM
It appears to just display a message; most languages have assert throw errors, I think.
 
@copy the only reason I don't like that is that unless I place it in a blackboxed file, it mangles line numbers :(
 
Granted, it's incredibly trivial to write your own assert that throws errors, but it'd still be a nice language feature to have.
 
Huh; seems more useless than not. I'd rather be explicit about my errors/messages
 
anybody here good at designing maps ?
@AwalGarg Hi ? dude why are you not replying venkatesh ?
 
@AwalGarg You mean it minifies them?
 
5:52 PM
@Abhishrek What kind of map? HashMap? Cartographical Map?
 
Game map
 
Tile based?
 
Nope
 
Well, then we definitely need more information
 
@copy I mean, when assertion fails, the line number in the console points me to the line number of the wrapped assert function, not to the line at which it failed.
 
5:53 PM
I want concepts of good map design
I need maps for
a space game where there are 2 teams
the map is top down
 
@Abhishrek you have to setup a build and gh repo
 
@AwalGarg Oh, yeah
 
@AwalGarg did you tell him that ?
 
@Abhishrek You could just use a space background, right?
 
Yes
the harder part is making asteroids
and things in right places
 
5:54 PM
@Abhishrek I already told you I am not in a position to be able to talk to him
 
so that it doesn't simply become victorian era battle with spaceships
 
@ssube I've seriously considered using it
 
@AwalGarg Email either ?
 
@FlorianMargaine I've used that for some time in a project and then got rid of it
 
he bugged me for you not talking on mails, I told him you are in shit load of problem
 
5:55 PM
@FlorianMargaine how are these examples? github.com/ssube/noicejs#injector
 
@Abhishrek lets not discuss this stuff here, hangouts please
 
@Trasiva Now do it without editing
 
@Abhishrek seems to me that asteroid placement should be algorithmic in nature, not something manually placed
 
@ssube what is MyInterface? It's not like we have those in es...
 
@ndugger hmm so i should generate the map procedurally ?
 
5:56 PM
ssube is a typescript warrior
 
> This is a DI library for JS
 
@FlorianMargaine this is true, but I'm not sure how else to show DI
 
@Abhishrek Well, it depends on your goals. If you want the map to remain the same, so the players can develop tactics for that specific map, then you need to place them manually, but if you want it to seem like just some random space battle, I would go with procedurally
 
crl
s/JS/CK/
 
@ssube show a full example?
 
5:57 PM
@ssube that looks much better than the original version!
 
or only support typescript?
 
@FlorianMargaine it's not for TS
 
I don't know, it looks very incomplete there
 
@ndugger with procedural there is always an issue
of super easy maps generated at times
 
That's true
 
5:58 PM
just telling you what's wrong, not how to fix it :D
 
it is... I wanted a short example, but that seems to just confuse people
 
and super one sided ones too
 
I'll flesh it out after lunch
 
making a top down space game fun is hard* without tactics it essentially becomes better ship === win
 
@ssube it can still be short if you e.g. import MyInterface from 'interface'; import MyImplementation from 'implementation';, and show what they could have later on
 
5:59 PM
@FlorianMargaine would Contract be a better term within JS than Interface?
or is that still not a concept most people are familiar with?
 

« first day (1942 days earlier)      last day (3011 days later) »