I'm dealing with an awfully ambiguous error with React Native. Does anyone know under what condition this code, assuming proper support via babel, should produce an error?
const foo = {
...someObject
}
@clxxxii Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I have a two column layout with flexbox and justify-content space-around so it breaks into a nice single column on smaller screens but while it's two-column and an odd number of items the last one gets centered on it's own "row", is there a way to prevent that? codepen
Since I'm working with pretty much static widths I can add a media-query but that feels hacky
I thought I could override the justify-content on the container with align-self on the last item but it seems I failed to understand how align-self works
@Abhishrek That question ends with "Why are there no justify-items and justify-self properties?", I see the answered got around it with some rather nasty hacks though
So npm test is short for npm run test and you can even run npm t, so why can't npm s be short for npm start? These are the kind of philosophical questions running around in my head
I want to build an interface for a series of terminal commands that our developers use to manage their development environments. I'd like to try to build it in node.js.
Now, I'm thinking I can create it as an HTML5/CSS3/JS application using express, etc... and then would like to package it as a ...
@Nick Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
thanks @neoDev, I'm not really sure what I'm doing tbh. Is there anyway I can edit Javascript in either Chrome/Firefox and it'll automatically update on that page?
I'm ashamed to say that my level of debugging with JS when I can't figure out what it's doing, is to simply delete blocks of code until I figure out what's happening
@Nick sorry not, you need plnkr.co if you want quick auto-refresh every time you change code. if you want to delete all jquery.js temporarily jQuery = $ = undefined
Oh yeah, if I want to do something like select * from things where field = value, with multiple results, in Bookshelf.js, that means I need to use Bookshelf's collections, right? My understanding is correct? Before I go down the wrong path.
It's OK. I've spent the last 3 days doing a crash course in git, Node.js, Bookshelf, Passport, Jade, and Bootstrap all at once. Sometimes I'm too confused to even remember to check the docs.
And amusingly all of that has still been less effort than my usual choice of writing web applications in Java.
I'm not doing to good on the promises front, though. I can't get it to sink in.
It's a good exercise for my C++/Java brain. JS itself hasn't caused me so many problems but the asynchronous nature of Node takes some getting used to.
ouch! yeah, you should really be following your searches on MDN and devdocs.io sources material for HTML/CSS/JS from MDN and makes it available offlinne or in your editor when your roaming
@Luggage redux is vastly more popular than mobx, the good part is that mobx is pretty complete IMO and doesn't need a lot of change and neither does redux
@Luggage we have a lot of community here - thousands. I regularly speak in front of 100-200 people, about twice a month. Then there are conferences which are around 600-1000 people, I get invited to speak at those about once a month but take it about one out of 4 times since it's a paid event so I think it's less important.
@Luggage my "zen" of mobx is simple, don't use anything but computed, observable and observer :D If you do - you're doing side effects outside of react.
The zen is that it's reactive, you never subscribe explicitly. The only things that should be autorun are things that are actual side effects of the UI - and I'd rather wrap those in React and not in autorun.
I get that my view is very skewed towards my use case.
If I want to do something like select * from items where field = 2 in Bookshelf, given a collection Items, how do I actually do that? Items.forge().what? The Bookshelf docs for where() list no parameters, every tutorial focuses on relations, and I can't really seem to find any docs or examples anywhere.
I could still switch at this point. I was trying a few. Objection confused me, then I found Bookshelf and just rode with it. I'll take a look at that too. I'm still kind of evaluating.
@Luggage nice! in my region it's pretty easy, most communities are present on meetup.com, so if you have a topic that's dear to you can easily find those who might be interested in hearing your talk
@Luggage there are obvious side effects, but I'd rather handle them all in React - for example if I have a Title component that modified the <head> I'd still wrap that in React rather than just autorun it.
Since all lifecycle hooks are preserved.
@bitten I don't think so, oddly enough this is the third time I'm going to speak about MobX and the second in Israel and none were recorded :P
Mostly the Toyko one being recorded would've been nice.
I am new to developing mobile apps and I am trying to connect my node.js server to xcode. How do I go about doing so? I understand the process using node.js via a website but its confusing to me when it comes to xcode. Is it the same process?
@JimJones Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I'm struggling to use glob in node. How do I say "collect up every file in every directory that is a child of the directory the script is beign run from, that is one that is a JSON file?" I tried: imports/**/*.json
@JustinGreenberg Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.