« first day (2320 days earlier)      last day (2622 days later) » 

7:00 PM
I was thinking about it, but then again, I'd end up using gh for "business" and I'd have to pay for it if I put hooks on it to just send the code over to github. If I make people use github instead, that would be nice, but they can still remove/edit the projects and break stuff
also, beginners would be deincentivized by seeing that they need to use this weird thing called github
I remember it being a complete nightmare when I was still using windows. Even if there are easy ways to use it for sure, it's still a huge barrier
also, it seems weird that there isn't already a site like that
the other thing is that if there is and I can't find it, it's either because the competition is bad at doing what they do, or because there actually isn't that much of a demand for it
I'd certainly love something like that, but most people may not
which is why I'm asking for an opinion :)
in the end, any challenge site does it
it's just not called "education"
 
you'll get a shitload of opinions
best thing is to just start something
and go from there
lots of people will say why X won't work, ect :P
 
well, on one side you're right
but on the other side, I could be trying to do something equivalent to competing with facebook and not even realizing how stupid it is
 
@SterlingArcher wowwwwww
some of these are so fucking insane
 
the alcohol in the car is soooo cool
 
7:08 PM
you mean butane?
 
man get on the ground and roll
holy shit
 
@Loktar love me some darwinism
 
these people wil faces on fire (outside)
fucking bury your face into the grass/dirt
 
that guy... gets up like spiderman or iron man or some shit lol
 
7:10 PM
It's like a reverse super hero landing
 
hahaha yea
 
he didn't actually land that badly
 
that roll LOL
looks like something a kid does pretending to be in the army
some of these are really good reversed
^ immediate badass
 
7:16 PM
should sql even be a thing that devs should learn anymore?
only for ms-heavy projects maybe?
and most major companies are ms-heavy, right?
 
is that a real question?
 
yes
me noob
 
almost every job req i see has some sort of sql skill requirement lol
 
Jordan is having a hard time with my high texts so I present you all with the news that I got ajn offer from Target Corporate as a Sr Front End Developer
4
 
Are you gonna take it?
 
7:18 PM
I told one of my interviewers yesterday that I didn't like SQL, he just shook his head at me
Yes I think I'm gonna take it
 
> think
 
I don't remember what she said the salary was though
 
the thing is that I think I should be mastering sql because I only know the basics, but 1) the only reason I've ever used sql was to practice and teach about sqli 2) it seems like it's only ever used in ms projects, so 3) there's no immediate easy intended way to practice sql on a local db on my linux machine
 
some target gift cards
 
and a cheese sandwich
 
7:19 PM
@ndugger congrats :D
 
SQL is used everywhere, not just MS.
anywhere except mongo and other alternative DBs
 
it seems as though if there is an alternative to sql, it will be chosen
 
sure you can practice on your own machine, just install an sql data like poke postgres, or even easier, sqlite
No. All relational DBs use SQL. It's a normal language and skill.
 
It's not a normal language
 
@ndugger grats
you get a decent discount?
 
7:21 PM
15% before additional discounts, like coupons
 
niiiice
 
if sql is a language, then so is html. case closed
 
we shop at target all the time
 
how is it not a normal language? used in all environments for half a century.
 
thats pretty badass
 
7:22 PM
Thanks for the offer of an offer, though. I wanted to wait to see if Target would come through; if they said no, I would have said yes
 
yeah np man
just wanted whatever to work out for you regardless :p
 
@towc no
 
you no
 
@Loktar thanks fam <3
 
of course html is a language, it has "language" in the acronym!
 
7:24 PM
sure, a markup language.
 
> language
BAM
 
I'm not disagreeing.
BAM
 
19 secs ago, by Sterling Archer
BAM
YOU CANT BAM A BAM
 
You just saw me.
 
But you can BAM a BAM BAM!
 
7:25 PM
Evidence is not on your side.
 
shit @ndugger you will be officially part of BlackFriday
our holy holiday
 
@SterlingArcher i.imgur.com/V5qaLnk.mp4
 
1 message moved to Trash can
@Allenph Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
7:28 PM
-_- I did use Ctrl-k, I just messed it up by trying to unformat my text I guess.
 
also, don't mix code and text. you can format the entire message as code or none of it
 
ok, am i right on thinking you cannot do a fadeIn / fadeOut on a dom element? (hoping i read it right)
 
That's the only thing you can fade in or out
 
oh.. hmmmf.... must have read it wrong XD
 
@Allenph I see no export in that sample
 
7:30 PM
it was basically an article on injecting a piece of code into a div, and fading it in, but because it was using .html it said it couldnt be done with document.getElementById.
 
Who does delivery deep dish pizza?
 
pizza hut?
 
I don't think they have deep dish
 
export.User = sequelize.define('user', {
firstName: {
type: Sequelize.STRING
},
lastName: {
type: Sequelize.STRING
}
});
My bad.
 
7:31 PM
dominoes? i can only suggest national brands.. i don't live near you
 
@KendallFrey It might be the pot, but that's fucking hilarious
 
it's the pot
 
iI snorted
 
@Allenph module.exports ?
or is it export.. my memory is failing me
yea, exports
export.User = 'makes no sense'. do module.exports = sequelize.define(...); and the it'll be the main export
let User = require('./user.js');
 
Oh god yes, Davannis does deep dish
oh shit, they're closed
day ruined
 
7:35 PM
time to grind up and vaporize lunch
 
Ugh, documentation... Had to rollback an edit by a persistent user that had 2 similar edits on there rejected already...
 
was it in Nick's arrow function section?
 
how is everyone btw :) hope all is good!
 
@Luggage Thanks for that. I couldn't seem to find that.
Why doesn't it make sense? Shouldn't models be singletons, or the code itself doesn't make sense?
Because that's literally an example from their docs.
 
I mean, that's now how you export in node..
link?
 
there is no export.User = ... in there. That's the part I was saying makes no sense.
 
Oh. I think I'm misunderstanding how modules work. I'll do some more reading.
 
exports with an "s" does..
 
I was under the impression that adding a variable as a property of exports would just make that variable a property of the module when it was acquired.
Not become the module itself.
@Luggage That was just me making a stupid typo.
Not used to the syntax yet.
 
It does. I thought you wanted it to be the module itself, so I was suggesting module.exports = ...
I thought the original complain was needing User.User
 
7:51 PM
It is.
Now I'm all confused.
 
// user.js
module.exports = ...;
// otherFile.js
var User = require('./user.js'); //no User.User, just User
All you need.
fixed typo.
 
All right, so in that case what if I DO want it to just be a property? Then I ommit the module from module.exports and just use exports?
 
you don't need ot omit module. but module.exports.someName = ...;
"exports" is just an alias to "module.exports". To replace exports you need to do it from module.exports.
// imaging this is at the top of every file
module.exports = {}; //starts as an empty object
var exports = module.exports; //a not-so-handy alias;

// then, at the end of the file, whatever is in module.exports gets exported.
so exports.User = ...; will export an object like { User: ... }
This is all just normal commonjs (node) modules. You should be able to find plenty of info.
 
@Luggage That makes a lot of sense.
Honestly, I probably should have Googled a bit more before I asked.
 
yup
 
8:01 PM
I've turned into one of THOSE people.
Kind of ironic because it pisses me off when people do that and ask about PHP.
 
I am one of those @allenph :( :S
 
We should both avoid it. In my experience you usually end up understanding and learning more when you figure it out yourself, even if it takes more time.
 
@Allenph you have become self aware
 
Now you're a real boy.
 
8:04 PM
Socratic paradox my friend. I always just assume I'm being an idiot, and in the rare cases I'm not, I'm pleasantly surprised. xD
 
haha
 
holy crap i just contributed to a question.... XD...
 
nice!
 
1st time for everything Loktar :)
quite quiet in here tonight! :)
 
8:27 PM
Angular2 question:
 
Angular2 answer.
 
Angular2 criticism!
 
oh god, i lost my text on submit . one moment
 
ohhi
 
Angular2 question:

When a route is dynamically created, do I need to specify the route path in, let's say, in the user component route?
 
8:33 PM
Angular2 non-fact-backed insult
 
example:

for (let i = 0; i < components.length; i++) {
            let component = components[i];
            this.addTab(component);
            this._router.config.push({path: component.path, component: component.component});
        }
 
@rolu for (const component of components) {
(unrelated to your specific question)
 
@Luggage, what's your opinion of Angular 2? My understanding is that it's a shift from MVVM to more of a Singleton design pattern.
 
I've never used it, actually.
 
I have to rewrite the front end for one of our apps in a month or so. I'm thinking about moving.
I keep procrastinating trying it out. I have to admit though, the MVVM is kind of weird.
 
8:41 PM
but I avoid it due to my assumption that it's a "do-it-all, our way" type of framework, which isn't how I roll.
 
Isn't that the point of a framework?
Having a standard protocol for everything is a certain structure?
 
unless you know how to pick and choose smaller libraries for the individual tasks and get a more custom setup
angular is for people that need the structure provided to them. I don't say that as an insult, though.
like corporate environments, for example, are plagued by new developers and benefit from a framework-in-a-box.
 
meh even then
libraries ftw :p
 
I, of course, agree, but am trying not to poop all over it.
 
@Luggage I don't take it as one. I'm predominately back-end, so I like having the structure provided for me.
 
8:43 PM
@Allenph A framework where all the technical decisions and abstractions were made for you is great if you have a team of mediocre developers, and you don't really trust them with important decisions.
 
since I have never actually used it, so I have no really strong opinions.
 
I just wrote my own framework in PHP because I had the same problem and I usually need the same base things all the time.
And because I wanted the router to work my way.
 
I personally have always preferred writing my own "framework" tailored for the app.
 
anyone here know about code-splitting via import? Does it even make sense to use it this way?
 
walk down the isle and throw a router in your cart, then a template/view engine, then a state management library.
 
8:44 PM
export async function makeRequest(endpoint = '', ...options) {
  await import('isomorphic-fetch');
  const { BASE_URL } = await import('app/config');

  return await fetch(`${BASE_URL}/${endpoint}`, ...options);
}
 
@MadaraUchiha Doesn't that get complicated if you're building an SPA?
 
It can be.. but for those of us that have done it enough, it's nothing but lots of choices.
 
@Allenph Not really
Depends on the scale
 
I mean, pleasant choices.
 
I built an SPA in jQuery once years ago. I know that's not the same thing, but...wow that sucked.
 
8:46 PM
To be fair, I haven't designed something really big in a long while.
 
Yea. jQuery is a poor choice for that. :)
 
@Allenph I also built an SPA in jQuery a while back and had a pleasent time of it.
 
What I'm working on now went from being really simple to very complicated. We started reselling the service and it added several levels of management.
 
As long as you take jQuery for what it is: A DOM abstraction library, it's a pretty fun experience.
 
Currently switching from a jquery spa to ng2 Universal =)
 
8:46 PM
The management side is more complicated than the actual service provided. :p
 
People hear jQuery and think 5k LoC functions inside of $(document).ready()
 
^
 
It doesn't have to be like that, you know.
 
To be fair, this was during my learning stage where I thought theory and architecture was useless.
 
urgh, postgres is so 90s
 
8:48 PM
Fair enough
 
And before I realized it's mostly theory and architecture and code is just the implementation.
 
but jQuery brings nothing to the SPA table, so I think it's right for us to assume it's being abused when someone says they used it for that.
 
@MadaraUchiha sadly, I dont have to imagine what it looks like
 
^
 
I once did an app with abstracted components with jQuery.
 
8:48 PM
Why is the Singleton pattern so popular in JS?
 
Communication between components only through jQuery events
 
because it works
 
Is it just a byproduct of prototypical inheritance?
 
@towc it's a database engine. it stores data. What do you expect? :)
 
Worked beautifully, and I got a pretty nice abstraction out of it.
 
8:49 PM
@Luggage mongodb seems extremely more useable
 
@MadaraUchiha Essentially you were just building Angular directives by hand. :P
 
@Allenph It's because people come from OO languages and are used to the keywords "class" and "interface"
 
if you hate performance and data reliability
 
both to learn about from a beginner's standpoint without having to spend too much time on it, and simply to get a minimal thing running
 
Without the language to force them to behave OO, they fallback to 5k LoC functions in $(document).ready().
@Allenph That was long before Angular was a thing.
 
8:50 PM
@towc...just do yourself a favor and learn relational architecture.
 
connecting from node should be similar with both mongo and postgres
 
The only time I'm not using relationals is Redis.
 
but yea, you have to create tables in postgres.
 
@Allenph who are you to talk?
 
Does he need credentials?
 
8:51 PM
@Luggage oh. That must mean I haven't found the right resources yet
@Luggage I need address and certificate of birth + residence
 
@towc Well...I mean...I know enough that I know not to use Mongo. :p
 
you installed postgres already?
and created a db under your user?
 
@Allenph Mongo is great in some cases
 
@Luggage I tried through various resources, got something going, but it seems so not worth it compared to the very few lines to get a useable mongodb
 
btw, sqlite is also an SQL database, but with less setup. the DB is just a single local file.
 
8:52 PM
And recall that Postgres didn't always have a robust JSON type.
 
@MadaraUchiha It's not scalable.
 
I'll look into that
 
@Allenph You don't always need it to be vOv
 
postgres has decent json for the last 4 years
 
I also did want to learn about postgres, so there's that
 
8:53 PM
@MadaraUchiha Isn't it generally a rule that you should assume you're going to scale it eventually no matter what?
 
For documents that are changed in human frequencies (updated user profiles, etc) rather than automatic internal program things, mongo works great.
 
You don't like Maria @towc?
 
Mongo won't do millions of writes per second, sure
 
@Allenph you what now?
 
@MadaraUchiha At some point the objects become a mess.
 
8:54 PM
@Allenph vOv it depends on how you model your data.
 
maria is a mysql variant.
stick with postgres.
 
What am I missing about MySQL?
 
Mongo encourages denormalization, under the assumption that when you read, you want to read the whole thing or a large part of the whole thing
 
postgres follows standards. MySQL is the internet explorer of database engines.
 
MySQL is ms. 'nof said
 
8:55 PM
what
 
I stand corrected, I guess. I bow to you, @towc.
 
no it isn't
 
So that if you want a user's profile, you don't need to join with 4 tables to get all the details
You have everything there in one IO
 
@MadaraUchiha With ORMs, who cares?
 
@KevinB he doesn't mean literally, that's his way of saying "bad"
 
8:55 PM
@Allenph Reads are faster vOv
 
ok, settle down. I want to learn stuff that would be very useful for jobs, although they shouldn't be the main focus of the job. What do I do?
 
@MadaraUchiha You NEED the normalization or at anytime a change could throw a wrench in the whole architecture.
 
I'm not saying Mongo is amazing and you should all use it
 
@towc learn how to learn, by learning everything you can.
 
@towc use sqlite. it's still SQL but simpler setup.
 
8:56 PM
I'm just saying it has valid usecases.
 
@MadaraUchiha I know. I'm just talking.
 
@towc you could get a job already
 
no server, just 'mount' a local file
 
@Luggage k, doing that now
 
@towc I started working WAY before I was ready...
 
8:57 PM
@Loktar I work for/with mosho :P
 
If you're arguing about DBs I assume you know enough.
 
at his company?
or as like a side thing?
 
really part-part-time
 
grats regardless ;P
 
@towc Ah, right, he told us he was encouraging youths to drop out of school in order to work at his sweatshop.
 
8:58 PM
Anyways, @MadaraUchiha I don't know what you mean about the reason JS people like the Singleton pattern.
 
@towc How's that going? Is it interesting?
 
the rest of the time I'm either watching the simpsons, doing physical exercise, or learning new tech/improving my cv+opensourcecontributions+site+stuff
 
@Loktar Yeah
 
atm I'm maintaining test cases
 
@Allenph I've seen people, talented people, with knowledge of OO and abstraction and polymorphism and design patterns, fall back to 0 abstraction when it comes to JavaScript
 
8:59 PM
Why?
 
so it's ok I guess. It gives me a chance to learn their stack and codebase
 
Just make everything a class. Then it's OOP.
 
Is there a reason NOT to use the same paradigm?
@Luggage I remember my first 20 god classes...
 
I believe it's because 1. There are no classes or interfaces in JavaScript (even though that's a lie and they both exist, if you try to learn). and 2. Most "real programmers" still see JS as this toy language for web browsers I don't really want to learn all that much
 
They're in for a rude awakening.
 
9:00 PM
JavaScript's OO is stronger than Java's and C#'s
 
Back-end is basically a CRUD abstraction for me at this point.
 
@towc I hope something of that in there is allocated for the ladies :)
 
I wouldn't say that..
c# has interfaces and generics.
 
Hell, I use JWTs so I don't even authenticate that often.
 
JavaScript can have abstractions far more elegant than both those languages
@Luggage JavaScript has interfaces in the form of symbols and duck typing, or TypeScript, if you wanna go hardcore (although that's not exactly JavaScript)
As for generics, the lack of type system really makes them moot.
 
9:01 PM
@MadaraUchiha I don't see any difference except my "classes" are named functions.
 
(Or, again, TypeScript)
 
so, in other words, no interfaces. Don't get me wrong, you can write well structured code in JS
but I wouldn't say it has MORE than c#.
 
But I don't see how one could create an interface.
@Luggage beat me to it.
 
@Luggage It's more powerful in the sense that it can do anything a classical-based OO system can do
All forms of inheritance, polymorphism, design patterns, etc.
 
So really that's it. The Singleton design pattern fits well when you use prototypical inheritance and have no interfaces.
 
9:02 PM
And more
@Allenph Not really
 
Right, you can use JS with any of those patterns, but it provides none of them and needs something like TS to help you enforce those patterns in a large project.
JS's flexibility is it's strength.. i think we agree on that part.
 
I see.
 
but c# is much more complete in the abstractions it provides.
 
It's kind of annoying to have to switch back and forth between design paradigms.
And I don't like Node on the back-end except for things like this service I'm working on. :/
If JS has no interfaces...how does the TypeScript compiler work that out?
 
it provides that feature.
 
9:06 PM
It's kind of weird to me that I compile on the front-end now. I'm used to only compiling C.
 
TS has interfaces. It enforces the rules when you compile, but the resulting JS has none.
 
@Luggage I see. That's kind of lame.
 
It's not lame, it's great that you can use those features, but then have standard JS to feed to any browser
 
Any of this change in ES6? I haven't paid attention.
 
not interfaces or static types.
 
9:07 PM
@Luggage I meant it's kind of lame that it has to be done that way. I might be wrong, but it seems like that would result in a LOT of boilerplate code produced by the compiler.
 
no, it's checked at compile-time and the extra code is stripped out.
 
Ahh.
 
some TS features may add some boilerplate code.. I don't know which.
 
Hello :D
 
9:12 PM
@Allenph don't be so surprised, all of the good tools today depend on analyzing and transforming code
 
Anyone has experience serving Adonis apps ?
 
9:28 PM
@SterlingArcher That's clever, I like it
 
@Luggage well, reflect-metadata does for sure. Other than that you only pay for what you transpile. If you transpile classes you get some boilerplate (but you can use classes in all modern browsers anyway), same for generators, async functions, decorators etc.
Other than reflect-metadata the calls they add are very negligable, even reflect-metadata isn't very expensive
 
hi
I talked to you about this yesterday @Luggage but haven't quite got it correct yet. The compB component when close is clicked, sends an action which updates a prop in compA. When that prop hits compA it should set the prop isTableDisplayed=false back to compB telling it to hide.
So far it seems my prop sent from compB gets back to compA, i.e, requests to compA to be closed.
But the action compA sends back to compB with the isTableDisplayed=false doesn't reach it. I think this is something I need to debug furtehr but is there anything at face you can see wrong with that approach?
 
9:49 PM
@Luggage there is a new flag that consolidates all boilerplate code into separate "helpers" for methods like decorate and assign
 
    Angular2 question:

    I have a tab component service with a method that sets the tabs:

    setTabs(components: any[]) {

            // components: [{ title: 'All Videos', path: 'new-component', component: newComponent2 },
            // { title: 'Showcase', path: 'new-component', component: newComponent2 }]

            for (let i = 0; i < components.length; i++) {
                let component = components[i];
                this.addTab(component);
                this._router.config.push({path: component.path, component: component.component});
 
otherwise you would have those methods in each transpiled file they are needed for
 
10:12 PM
huh, someone commented on this answer of mine which I completely forgot and am pretty proud of, inside one of @MadaraUchiha's rep whore questions
 
@Zirak He logged in just to upvote you!
 
@MadaraUchiha The highest honour one can hope to achieve
hrm, the answer can be improved...
 
user5730329
wow, real time chatting
 
user5730329
awesome
 
@FilipDupanović Well, I mean...SCSS compiles to more code than the SCSS files contain. That's kind of the point. I figured this would be the same, but it might be a bigger margin because TypeScript seems like it would require logic boilerplate and stuff.
 
10:21 PM
@rolu why aren't you just using a router outlet?
it all seems a bit weird
 
@Zirak MadaraUchiha's rep whore questions are what made me the man I am today
 
@monners Naked and sweaty in a Dunkin' Donuts, confused to oblivion?
 
@Zirak I'm sorry, I forgot to upvote this.
forgive me, for I have sinned.
 
never
 
@Zirak No, that's all on you, big guy
 
10:29 PM
Only if you spank me
@monners oh you
Flatterer
 
With this offer letter, I fulfill all of the career goals I ever made. I don't even know what to do with my life anymore
 
@Zirak </3
 
@Zirak 2.9
 
in unrelated news, I've been playing with qemu these days
 
My jQuery navbar at webdbg.ga doesn't works on mobile! You can open it, but the toggle doesnt work it doesnt closes!
 
10:30 PM
it's beautiful
 
@ZeusZdravkov 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.
 
when used with kvm, in addition to being beautiful, it's also fast
("used with kvm" just means adding -enable-kvm to the list of arguments.)
 
10:42 PM
@ndugger uhh, you get to play the ukulele a lot and have people tell you that you could do good by yourself if you worked instead of playing the ukulele?
 
I'd retire right now, and move to an island and play ukulele all day if I could
 
@rlemon THIS SWORD PROTECTS MY VIRGINITY!
erm... I mean...
 
unexpected crossover
 
nahh, you can catfish em in THEN after the kids and the house start with your SW / Samurai obsessions
 
10:49 PM
@rlemon works 99% of the time.
 
@BrianJ how is isTableDisplayed used inside the component? I'll be updated on the next render() or you can see it in componentWillUpdate()
 
a nice question
234
Q: How are globals any different from a database?

Mason WheelerI just ran across this old question asking what's so evil about global state, and the top-voted, accepted answer asserts that you can't trust any code that works with global variables, because some other code somewhere else might come along and modify its value and then you don't know what the be...

 

« first day (2320 days earlier)      last day (2622 days later) »