« first day (2336 days earlier)      last day (2837 days later) » 

14:09
why my this code is not receiving latest rss feeds ?https://jsfiddle.net/wf1y5fs2/1/
can someone suggest me anything ?
@jagdish CORS
That's bullshit. I have almost no hair and I am in constant pain.
u must be bald
@Luggage check your body for forks.
Wooooo
14:19
I have experience, forks in places forks shouldn't be hurt.
Thanks to @ASPCA and @WagsandWalks Sunny and I are finally fostering our 1st pitbull! Meet Ginger. I'm in LOVE.ā€¦ https://twitter.com/i/web/status/839604439094710272
man, PS has got some guns on him
76 and still killin it
damn, I didn't realise his wife was 38.
if you're such awesome and a gentleman, then you can have that too
I've lots of respect for him and McKellen
Just read that Nicole Kidman's weird clapping at the oscar was caused by ... a ring. It's an expensive ring and she was afraid to damage it.
Difficult to believe lol
14:38
anyone know where to find contracts here?
sign up for cellular service
lease a car
I need a bigger monitor. when I tile my windows 50|50 the webbrowser is too narrow and triggers mobile/tablet views
makes reading docs a pita
I'm getting a 4k one for work \o/
I keep mine split [browser|term] [code|code] for the most part
and my term / code tile in themselves
but then the webbrowser body is only like ~950px wide
@BenFortune where?
14:42
Work
I need work :D
mind if you share?
I need to dig out a smaller monitor so I can have a third dedicated strickly to the term.
I'm looking for outsourcing jobs
coding etc.
@rlemon Get one that you can have vertical
14:43
I don't have additional monitors yet; just the macbook. Target is a bit slow moving lol
I operate on just a macbook and no external monitors.
you're insane
you're insane
he's insanse
nah, it's fine. I'm not arguing against anyone getting as many monitors as they like, though.
14:44
I'm insane
anyone knows where i can find a job?
@OliverSalzburg All major mobile targets - iOS and Android - supports all common ES6 feature, so IE is the main problem. Which is a hindrance that would prevent you from updating to modern web technologies like flexbox, notification, touch, or simple quality-of-life improvements like Element.remove.
@RexAdrivan monster.com
@RexAdrivan Not by repeatedly asking in here every few minutes.
We come here to avoid work.
haha @Luggage
why?
14:46
human nature.
@RexAdrivan Do you accept kudos as a method of payment?
Jobs are for schmucks
@Alesana only xoom
I work to live, not live to work.
I work to support my wood addiction
14:47
^ that's why lemon works. Tim Hortons does not accept bits of string.
cool
i see i'm looking for work ofcourse
@Luggage no, but accept bits of paper ripped off the previous cups rim
@rlemon Ah that was going to be my next question for him
true story
Joking aside, this is the wrong place for just popping in and getting a job. People that get jobs from this room do so because they were regulars and built a rapport with someone that then later had an opening.
Networking.
14:48
I wish I would be laid off again. It's like a free vacation with the severance
that's why I wanna retire into the workshop. it's like a paid vacation. It's what I do on my vacations now.
(anyone/everyone) Do you put a "Component" suffix on your react component class names? I've been doing this and I don't know if I like it.
// e.g.
// dateEditor.js
export default class DateEditorComponent extends React.Component {}
So I have the navigation for my web app just load a new html (or php) page into the content div of my website to avoid reloading. To avoid any interaction from functions/event listeners/variable from one HTML to another should I just wrap all the JS on each html page in function pageName() {insert js here}; then call pageName() after the function? It seems to work fine and prevent other pages from accessing the variables inside the function but I don't know if there are any unnoticed problems
@Luggage I describe what they are..
class This_Is_A_Date_Editor ? :)
14:52
yes, minus the snake case.
wait, really?
class FooPage
class UserInputControl
class UserInputControlButton
etc..
ohh, yea, that's normal
though 'Control' is a suffix with a vague meaning, too.
basically the same as 'component'
I don't append Component or Control to my components
if I was noting Component as a suffix, wouldn't it apply to literally everything in react?
Control <- I see as form controls only.
14:53
I'm using angular
so it is slightly more descriptive
well, that's why I am questioning it...
Angular is gross
Sometimes it feel right in the class name, but then it's inconsistent.
haha lol whatever
14:54
Also, note that Iam only talking about class names. I would still use the file / variable name without the Component/Control suffix.
I have a class T
so probably don't ask me
there's no class in javascript am i right?
there is fake classes
You are not right.
Target has an internal framework built up on top of angular 1.5 that we're supposed to use for internal apps, but it's a nightmare. I very quickly veto'd it and am leaning towards react for our project
14:55
There are real classes.
there is a real class keyword.
only objects
And it's sugar over prototype to use a class pattern. It's a real class in every way that matters.
and prototypes
Prototypal classes still count as classes
14:56
yes, saying there is no class is splitting hairs.
but being the internet.. that's normal.
prototypes
Oh wait is (function() { insert js here })() used for exactly what I described?
Pedanticism is the name of the game
@Alesana google IIFE
make sure safe search is on
@RexAdrivan JS does have "real" classes now. It's still prototypal inheritance, but the syntax and functionality is there
14:58
IIFE porn?
Maybe. You can never bee too careful.
@Luggage I should have read your message before googling
That cat would make a great coat.
You wouldn't get much fur out of it
breed it first.
14:59
Maybe a handbag or something
a cat-fur thong
Let's hope you don't have an undiscovered cat allergy or else that would go south very quickly
I don't. I like cats, actually, and would never turn them into a coat.
Kill all cats
Except for @BadgerCat
I used to hate cats until I adopted one. Now I hate all other cats than him
15:01
@Luggage dalmatians otoh.
that cat is scary
@Luggage And i'm here with 3 monitors :|
one laptop and 2 big screen
meh work
anyone want to give me work?
remote work
last warning. stop begging for work in here please.
user1596138
jobs.stackoverflow.com
15:14
So I read up on IIFE and I'm still kind of iffy on if I should use them or not
user2620028
wait... a lambda?
user1596138
@HatterisMad If you immediately invoke the lambda lol
user2620028
so it gets a whole new terminology if you decide to call it immediately
Ī»
user2620028
way too many terms that have little meaning
15:17
@tow you get 2 more today. Use them wisely. :)
aye cpn :D
user2620028
@Jhawins i reached $3k spent on my car last night
@Alesana modern JS often does not need IIFEs as modules deal with accidental globals and arrow functions deal with the other reasons.
user1596138
@HatterisMad Total or in repairs
@Luggage I declared some globals myself, usually just set to null though for later redeclaration.
user2620028
15:21
@Jhawins total
That's why I would need to give them a scope
I think?
I know of no legitimate reasons to use a global.
user2620028
which means i am approaching the price of repairs exceeding what i paid for the vehicle initially
@Alesana globals are just a dependency you aren't handling well
I need to learn JS better than :|
15:22
you may want to construct something and pass it, you may need DI
user2620028
welding up the frame and having the interior reupholstered is going to take the car into the $4-5k spent range :(
user2620028
but it will be nearly fully restored at that point so..... thats cool
DI is for angular?
expressjs
DI is for anything.
15:23
nope, anybody can use it
It's just a pattern.
Ah I misread/misunderstood
having globals is often a code smell, where the global dependency should actually be injected
or just referenced in a require() sometimes.
yeah, and either one is pretty easy to refactor, since you're just declaring the variable at a smaller scope
15:24
e.g., if you are going to use the dreaded jquery, at least: let $ = require('jquery'); and not depend on globals.
constructor injection is the only way to go <3
use THIS
if you want to make a prototype and not use the global
user2620028
THIS is an outrage
Okay so an example that I use (using the dreaded jquery and a plugin called dataTables) is globally defining var statsDataTable; so that I can put statsDataTable = $("#id").dataTable({options}); in a function that can be called from anywhere, and doesn't have to check if statsDataTable needs to be defined for the first time or is already defined
15:27
// this?
function someGlobalFunction() {
    let statsDataTable = $("#id").dataTable({options});
}
or is statsDataTable global?
statsDataTable is global, it can be accessed/redefined from multiple functions/event listeners
actually, lets back up. How does one of your .js files get into the browser?
- Included directly in a <script tag>
- concatenated into a big .js and that is in a <script> tag
- webpack, browserify or another bundler
- other?
film suggestion?
Human Centipede
(not really, the idea of that movie revolts me)
mind-bending/thought-provoking...?
15:30
so.. not Transformers..
pontypool
user2620028
@towc mulan
For right now, the first one (directly in script). I was planning on looking moving each pagesjs into a seperate .js file when I am finished but I'm not sure if it would make things much better.
it gives you a deep look into the canadian psyche, eh
pontypool: a canadian horror fil...
wait... canadian... horror...
do the mosters come up to you and say sorry?
user2620028
15:31
@towc ran out of syrup
@towc If you're alright with low-budget cheesy movies, John Dies at the End is pretty good
@Alesana I highly recommend a module loader / bundler. I use webpack. It's extremely flexible, but there are simpler options if you have issues with it.
user2620028
@towc Pocahontas... :O maybe we are the savages
@HatterisMad that's just you m8
But.. I'd need to see code to help you migrate to proper modules instead of a bunch of loose files and dependencies. It may be a lot of work, but it is NEEDED if your project will continue to grow.
a lot of work now, or an impossible amount of work in the future
15:33
@Luggage I actually haven't looked into any module loaders. I am planning on making my app available for distribution to where each would upload it to their own server, would they also need to install it with a module loader to make it work on their own server?
they wouldn't need to, but if they were using one, they would work together
If it's going to be loaded into another app, that's another reason to avoid globals.
It is standalone
Hmm
but modules loaders (like webpak) and be told to package up all your files to be included in another app without them needed to care what you used to make the library. So, no, they won't need a module loader.
@Sheepy No, they don't. If you were trying to say that the latest off-the-shelf versions of the respective products are likely to support ES6, then, yes. But taking that and oversimplifying it as "Android and iOS can do ES6" is simply wrong
15:34
you should almost always distribute a UMD module
ohh, i misunderstood. Standalone app. Still, the module loader makes a .JS bundle that includes everything it needs.
it's good practice, since they work with everything else
user1596138
@HatterisMad lmao is that a fused relay
It is a CMS by most definitions
user2620028
@Jhawins yes it is
user2620028
15:36
seems like a great idea to me
user1596138
Well there should already be a fuse.
user1596138
Oh are you completely rewiring
user2620028
yep
I guess I will start researching into module loaders, and UMD modules
user1596138
Haha go for it.
user2620028
15:36
i am going to remove all hotwires going to switches
I actually have no idea how they work right now
user2620028
and only run hotwires to relays
user2620028
so fused relay seems perfect
@Alesana you don't need a deep understanding to start using them
Go learn a module loader / bundler with a small sample project if yours is too complex to learn on. webpack or browserify. The structure you learn here is not specific to them, they are jsut tools that allow you to use the 'right' code structure, since JS in the browser doesn't give you those tools out of the box.
user1596138
@HatterisMad They're like $13/each on Amazon lol
(It's got Oli in it too)
user2620028
@Jhawins yeah they aren't as expensive on ebay but they are still more expensive than the $1 relays i planned on getting
user2620028
but when you figure that i would also need to get a fuse block
user2620028
or inline fuse holders ( kill me now )
user1596138
15:38
I would ust put all my relays in a box and all my fuses in a box
user1596138
But that's just me :P
Good idea @Luggage. Does it deal with PHP as well or only client-side scripts?
all JS.
user1596138
Okay I will start on a sample project. Hopefully it's not too complicated
15:40
Imagine.. you have a deep organized directory structure with files referencing each other. Then you run this tool, it looks at all the files, sees "ohh, your app uses '../some.js', i'll include that in the big .js file I made for the browser"
Ahhh I see
The you are never left hand-editing a bunch of <script> tags. You just write your JS.
There are certain situations where I echo a PHP variable into a <script> tag. It is not user-provided, so it's not a security flaw, but it wouldn't work in a .js file
@SterlingArcher nice to see Oli still doing harder stuff as well
Also, this step, while seemingly 'extra work', is a point where you can apply transforms to he JS. Use modern JS in your code but have it downgraded to what your users's browsers support.
15:41
Right?
user2620028
@Jhawins i think i am missing something here.... i see a spot on each fuse for an input..... where is the output though
@Alesana you can replace that with an API call, ideally
and WSS is fantastic with everything they touch anyways
youtube.com/watch?v=AWggPLXeOkU this was the first BMTH song I ever heard lol
or an "API call" that loads a mostly static page
15:42
@Alesana ohh, ig you are having your php generate .js then.. that'll need to be changed. These tools I speak of are all about JS and don't run in php
user1596138
@Alesana For quick testing you could still echo it to a global variable and reference from your .js. Tho you would want to look into serving that data via Ajax for the long term
@ssube such as Ajax?
haha, yeah, they changed quite a bit
that's one way, yeah
you can also have PHP generate a separate script tag that is just a JSON object
The problem is they come, indirectly, from $_POST variables.
15:43
inline your config, essentially
If your app is a bunch of separate html files generated by php (not a single-page-app) these things will be more complex. You'll have to separate the plain .js common files from the php-generated code.
and make sure PHP is generating the least possible
It is only ever one line at the top of my script.
This is why the community is moving toward all-JS clients that only talk to the server through an API. Having a mixed PHP/JS front end is very complex.
If it's one line, that'll make re-factoring much simpler.. and possible.
^ this and more.
15:44
there's also no scaling concerns with a pure HTML/JS frontend
So, good on you for that.
@SterlingArcher got to see Make Them Suffer and Betraying The Martyrs on sunday
user1596138
@Alesana You really want to use an API. But to get you up and running and into modules, just echo your php shit to window.phpShit and then in your .js reference window.phpShit lol
It is var phpobj = <?php echo json_encode($jsobj); ?>; which would contain an object of variables such as an id which would be used in an Ajax call to get information from the ID
@GNi33 oh im so jealous, I love Make them Suffer so much
DId they play Fake?
user1596138
15:45
Can't do it allllll at once.
yeah, mainly went because of them, so good
yep, they did
hnnnnnggggggg
this is a recommended I just heard, not bad
started off with Widower as I hoped they would. That intro is so good live
and I had a chat with them after the set, very cool guys (and gal)
@Luggage So, still use the module loader as normal but just access the phpobj variable from the window?
@GNi33 do you like Avatar or DevilDriver?
15:46
in webpack, you would set phpobj as an external
yeah, don't listen to that kind of metal as much as I used to anymore, but still like it
external = global?
sorta, yes.
@rlemon youtube.com/watch?v=h7ZmuSzCKz0 I think you're gonna really like this song
user1596138
Or just prefix with window
user1596138
15:47
No need for externals
user1596138
It's tempo anyway
external = "I'm positive this will exist, don't worry about it"
looking for a global variable is ONE way of accessing an external.
but Hail The Apocalypse is just such a great song :D
user1596138
Same thing underneath. Just faking out webpack
15:48
@ssube you can also tell it to use a non-webpack require() for externals, but yea.. global is the default method
@GNi33 omg did you see their live performance of it?
externals work where window doesn't exist
They're amazing live
it's alright.
quick question; in an event listener (suppose it's scroll), can you make it apply to a single target, but not propogate to parent targets?
15:48
no. I think I might have seen DevilDriver once
@Luggage yeah, externals are more robust
but not Avatar
user1596138
@ssube lol not if he is referencing window.thing for his external..
anyone here who could help me with angular2 please? :)
user1596138
No matter what in his situation he will have a window
15:48
!!welcome ALSTRA
@ALSTRA 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.
{/* Want this div scrollable, but disabled on parents */}
<div onScroll={this.handleScroll}>
  {children}
</div>
But in my situation it should work to just let PHP echo the JSON into one global variable in a <script> tag?
15:49
Jhawins right. that's what we're saying. He (or she?, Alesana) says all his pages use window.phpobj to get thair data. ssube suggested externals: ['phpobj'] to let that keep happening.
user1596138
Move your entire app to jQ UI stop listening to these plebs
!!back to university or not
@GNi33 back to university
@Alesana you need to make sure it gets assigned to something and is valid, but yes, that's the idea
alright, if you say so
user1596138
15:50
@Luggage It will do literally nothing. That's not what externals do. You can do import phpObj from 'phpObj'; if you make it an external tho
that's what we are suggesting.
Hmm okay
user1596138
Nobody told him that..
it's in the docs for externals
user1596138
He doesn't know how it all works. You'll have to tell him what that means to make it an external lol
15:51
we didn't cover every detail and won't/can't. Alesana needs to go learn how to use webpack first.
@BadgerCat did you kiss yourself yet?
Haha I will start learning
or just modules in general.
actually watch the video tho
15:52
Love this music video
best music video ever
Since I've heard so much about webpack I will start learning it
Can you guys help me find an example for my boss?, I am trying to give an example of a site that uses select boxes and inputs in sentence format. Like a semantic form, but google gives me garbage, I knopw I have seen examples before.
nvmd literally the next link I clicked
Natural Language Form
seriously tho, LoG playing at your birthday party as a private show would be the absolute best thing ever
user1596138
15:53
Googled "select box input sentence" lol. Cool
Randy Blythe looks better with dreads tho not bald lol
Now, I am almost done with my app. I will finish the JS for it first just because what I need to do is fresh in my mind then after implement webpack
I kept getting tutorials on what select boxes are šŸ˜¤
user1596138
Imma start a WatchBox for @SterlingArcher
@Jhawins thanks
user1596138
15:55
Seeing too many of these today lol
lemon said he'd build me one someday :P
once I get good with wood
user1596138
He's gonna forge it
I've got some plans already in the mix.
@SterlingArcher I miss when you use to change the room name to different things. Some of those were great.
15:56
@SterlingArcher OHH FUCK! bluetooth! imagine if that sumbich opened with a phone app.
Anyone have experience with CircleCI?
Or i guess unit testing with node.js in general
@jake lol I still change it but people change it back pretty quick
@rlemon that would be sick
user1596138
@rlemon I'll QA it for you.
user1596138
So. Take one for free
room topic changed to JavaScript+Bluetooth: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentationā„¢ Helps. Room meta discussions: github.com/JavaScriptRoom/culture [ecmascript] [ecmascript-6] [javascript] [nodejs] [typescript]
15:57
@ROODAY not Circle specifically, but unit testing in other CI tools
user1596138
This year @rlemon is giving away hand made watches for 12 days.
I'm getting this error:
> [email protected] test /home/ubuntu/sci-fi/frame-server
> lab -c -L


/home/ubuntu/sci-fi/frame-server/node_modules/lab/lib/cli.js:5
const Fs = require('fs');
^^^^^
SyntaxError: Use of const in strict mode.
when did making a box upgrade to building watches?
user1596138
Wait.... What
@ROODAY update your node, it's < v4
15:57
That's the first thing that runs in the circle ci test
user1596138
Fuck.
user1596138
3 mins ago, by Jhawins
Imma start a WatchBox for @SterlingArcher
user1596138
This meant like those stupid monthly boxes, not a literal box to house watches hahaha
Ok, hopefully circle supports newer node
Oh no we were talking about watch homes :P
user1596138
15:58
Hahaha omg..
@ROODAY they do
Ok cool, thanks!

« first day (2336 days earlier)      last day (2837 days later) »