« first day (2083 days earlier)      last day (2868 days later) » 

10:00 AM
Good code @BenFortune
thumbs up
I am checking the code
let me update you its result
 
I feel ashamed with some questions I did on the past
 
@Neoares i found this forum i used to visit back in ~2003, and read through all those old posts..
therewastoomuchcringe
 
I was a regular jQuery user
 
@Neoares it's okay.. tell me all about it
 
@bitten I didn't know so much about javascript
 
10:15 AM
@Neoares show me in sublime text where jQuery touched you
 
@bitten I thought I should load jQuery in every project
 
@Neoares aw well that's not too bad ^^
 
yes but I used jQuery for everything
like, adding events, getting elements by id...
 
but that was until I discovered vanillajs
that changed my mind
 
10:21 AM
I was in ave when I discovered querySelector
 
it was hard to thint that I could do the same things in vanillajs that in jQuery
that's the story of my life
 
10:36 AM
Will angular 2 ever get popular?
Im honestly pretty sceptical.
 
@Paran0a Will it ever get stable is the real question
 
@OliverSalzburg It's currently in an unstable state? I never got into v2 thanks to typescript. I only messed with v1.
 
@Paran0a Well, they're still in beta or even alpha
But I really don't get why they had to change everything
And I'm really annoyed by Angular projects moving to v2, as if it was a natural progression, leaving their broken v1 version behind and only supporting their v2 version, which is in alpha state
So, it's not getting popular with me anytime soon!
 
They left a sour taste with changing everything, atleast for me. I wanted to spend more time on it but after that I was left wondering if it's really worth my time. And it seems like it's not. I bet I'm not the only one and they lost a bunch of people with the same opinion.
 
react + redux is the future :)
 
10:44 AM
Now I wonder if ember is "the one".
 
@elsololobo I'm a strong believer in that, no matter what you use, if you use it long enough, you hate it
2
If you're not hating the tools you use, you're not using them right
 
What is redux? Why is it so hard to explain what redux is? Every time I read up on it it seems to change.
 
@OliverSalzburg I hope your are wrong :P
 
@OliverSalzburg Haha thats a good one, one of the reason why I wan't to move away from my current stack, with the time all the imperfections start to annoy you ,and usually those imperfections only grow
 
If you're not hating the tool, you might hate the community around it or the supporting projects or the fact that it's written in CoffeeScript
 
10:46 AM
@OliverSalzburg perhaps also, if you love something, you hate it. whatever you hate, you also love
 
Would anyone here be able to have a quick look at my code and tell me what areas I need to improve in?
in general
 
@yosefrow Sure
 
but it sounds plausible what @OliverSalzburg said, cause if you hit the point you are not learning sth new which improves some workflow you had before, you see the things that are not made as you wish
 
@OliverSalzburg Fucking Atom
I always have ideas about extending it, but I can't stand coffeescript
 
10:48 AM
COFFEESCRIPT?!? DID SOMEONE SAY COFFEESCRITP!?!?
 
@BenFortune I had a love / hate phase with Atom, but due to how slow it becomes with addons I went back to Sublime 3 again
the performance of sublime 3 never ceases to amaze me
 
@yosefrow better than anything i could write, nice stuff man
 
@bitten thanks. I'm sure you've got some good code as well :)
 
Frameworks are best for medium-large apps , once you start going into XXL apps you want to create your own frameworks as limitations of others start to be too much
 
@yosefrow somewhere, sometime, maybe ^^
 
10:50 AM
@bitten we all have good days and not as good
unfortunately often the good gets overlooked
 
What is a great indication for a programming language to suck? If there is any correlation with 'coffee', you might want to step back. CoffeeScript, Java, ...
 
lol
what about correlation with pizza?
pepperoni.js Mozzarella Framework
 
Damnit, now I'm hungry
 
eat your computer
 
im already registering the trademark
 
10:52 AM
@Paran0a for which one?
 
@yosefrow doesn't taste the same
 
pepperoni
 
@Neil did you use salt and pepper?
@Paran0a let the legal battles begin!
 
@yosefrow I'm generally not a fan of single-letter variables, not even in for loops. Also, value is not a great variable name. So, variable names :P
Other than that, just personal code style preference stuff. LGTM
 
@OliverSalzburg me neither, but even for iterators?
hmm
 
10:53 AM
i think single letters for iterators are ok , but it's a personall preference
 
I just felt that single letter values let you kknow which loop came first
 
@yosefrow no, you got me. Should have tried that first
 
@yosefrow Yeah, there's usually something better to come up with, even elementIndex would be preferable IMO
 
@Neil ok, come back when your computer is in your stomach
 
hello
 
10:55 AM
@yosefrow rowIndex, columnIndex are often clearer when traversing a grid
 
@OliverSalzburg ok, but other than that, does it smell bad in any way?
 
did anyone here work with selenium IDE??
 
Chakra seems to be kicking ass blogs.windows.com/msedgedev/2016/06/22/…
 
reading
 
@yosefrow I'm not a big fan of using hashes to define important objects in your code, but that's probably personal preference as well
 
10:56 AM
@OliverSalzburg are we talking about the enumerators here?
 
@OliverSalzburg you mean the way I pack like functions and variables into mini modules?
 
@yosefrow Yeah, I'd just pull that code out into a separate class/module
 
I do that mainly so I can store them in snippets and re-use them later
another file?
or another IIFE?
 
Either could work fine
 
10:59 AM
hmm
interesting aproach
why would you do that?
 
I'm so going to cry
 
I feel like it allows for easier composition and possibly testing
 
es2015+ has support for class sort of.. and modules are sweet
 
@towc *hands you a tissue
 
It lets you see the fragment in isolation
 
11:00 AM
@towc is debian kicking your ass still?
@OliverSalzburg but at the cost of more globals i guess?
 
I have 2usbs, one of them is 16GB the other is 1GB, the 16GB had to be reformatted after the first debian install because somehow it only stored 500KB then
 
well thats strange
 
@yosefrow Well, you could namespace your stuff, use some module loader or just have a build process that produces a single module again
 
so I used a windows "diskpart" on my other old laptop to reformat it
 
@towc Partitioning is not formatting
Or can diskpart also format?
 
11:02 AM
now, windows can use the usb just fine, but my debian doesn't like it, it needs a nsf-commons because of the wrong formatting it says
diskpart also formats
 
Did you format it as FAT32?
 
@OliverSalzburg its just an interesting idea to take such a small piece of coe and namespace it
 
there are tools to do that from downloading the img -> to create the usb ;) All with just one click
 
Yeah flash needs to be FAT32
 
so I said, "oh well, might just burn it on the windows machine and boot from usb in my other main laptop"
but laptop still doesn't like it
 
11:03 AM
if you want windows to read it
natively
 
@yosefrow Well, like GameOfLife.Keyboard and GameOfLife.FPS or Yosefrow.Common.Keyboard if you're going to reuse it ;)
 
so I'm like "oh well, I can use my 1GB key to get that new debian iso" but new debian iso is 1.1GB
 
@towc :D
Mount the ISO and delete some shit
 
so I need to install nsf-commons through 1GB drive
 
You burn a USB?
 
11:04 AM
I don't think you can exceed 4GB with FAT32, so a flash drive any larger than that would have to use NTFS
 
@BenFortune doesn't fit at all
 
@Neil You can, you just can't have files larger than 4gb
 
@OliverSalzburg ok so you create a file with multiple IIFE's and each of those IIFE's is a module that attaches to the main namespace object of the file?
 
@BenFortune ah, is that why?
 
@Neil windows usb burners put it in FAT32, and I'm pretty sure if I reformat it I'll lose the burning
so, installing nsf-commons to make my 16GB usb readable so I can dd is properly through debian
depends on certain dependencies
 
11:06 AM
I still remember when disks started exceeding 4GB
 
Burning again :|
 
which depend on countless other dependencies...
 
@cswl, I burn my USBs all the time. Makes a nice plastic heap
 
@yosefrow I guess that could be one way to do it. There are already existing approaches to this
 
11:07 AM
You raw write ISO to the block device... if it has 512kB MBR in the front..
 
and can't find an easier way to just download every package needed
@BenFortune that still won't help
 
@Neil just wait till Extreme Flash becomes more prevalent
XHC
 
Well there is already exFAT for that..
 
SDXC
can technically hold up to 2Terabytes
seems like the largest available consumer SD is still somewhere around 512MB
 
512GB you mean?
 
11:17 AM
@OliverSalzburg which approach were you refering to? I guess I should just google namepsace modules
yes that
thanks @cswl
 
Anyone has any more examples with calendars like this ? fullcalendar.io
 
@Paran0a try searching jquery plugins i guess?
 
I'm trying , having trouble with using correct keywords I guess
 
What the is thing called namespace in ECMAScript..
 
have a look at that list
 
11:20 AM
Looking :D thx
 
cswl namespacing is just a convention I think
at least the way i understand it
 
Ah, in the browser... where you can leak variables into the global scope..
 
@towc did it boot from the USB drive on your main machine?
 
I was thinking node.js where every file is already an function.. no global scope
 
11:23 AM
@FilipDupanović not yet
 
Does anyone use pre-commits? Like linting before commits
 
@towc to be sure again you wrote to sdb and not sdb1 right?
 
yup @Paran0a! no one wants to be that person pushing in lint errors :P
 
@cswl yeah
going to try to keep going on the nsf-commons route
need to find a way to download and install every dependency tho
 
@Paran0a I dont but I really should set up some worker to do that
@Paran0a i could just write a simple shell script i guess
 
11:30 AM
@towc what do you need? a custom install image?
 
@towc is your mobo BIOS or UEFI ?
 
@Paran0a oh wait you are talking about the git pre-commit hook?
 
@yosefrow yea :D
 
@yosefrow yup, you should switch your repo to NPM
 
user3119231
Firebug at it's finest: i.imgur.com/nj1CjLQ.png
 
11:32 AM
@Paran0a i've used the post-commit hook to deploy my git repo to my website automatically. but a pre-commit hook to enforce code standards could be nice as long as you have a way to make users notice their commits failed and not have it get in the way of the work flow
 
it is common then, for other developers, to look up your package.json to find run scripts docs.npmjs.com/cli/run-script (e.g. github.com/facebook/react/blob/master/package.json#L77)
 
maybe just send a warning when they commit
so echo "WARNING: Lint errors detected"
or something alont those lines
 
@yosefrow elijahmanor.com/npm-precommit-scripts You can look at this
 
oh i see
thats a much better solution
 
@Paran0a I really like this one npmjs.com/package/bumped
 
11:34 AM
no, all I need is every single package needed to get nsf-commons working
 
@FilipDupanović I'll take a look
 
although @Paran0a i was thinking about the server side pre-commit hook git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
@Paran0a its a more extreme measure and only useful if you run custom repos
 
@FilipDupanović Wait so the version gets incremented automatically when you change files?
 
Does anyone here have a specific strategy for naming git feature/bugfix branches in git?
and do you create a branch for every single bugfix/feature
 
@yosefrow haaaaaaaands
 
11:38 AM
I just wing it
 
@yosefrow git flow defaults: feature, release, hotfix, ...
 
Strategy is for the weak
 
knees are for the weak
 
@yosefrow I'm a fan of using a hook to create a branch that cannot have a failing build or tests pushed to it.
 
yeah, this package let's you configure how to package a release, here's one project using it github.com/react-toolbox/react-toolbox/blob/dev/.bumpedrc github.com/react-toolbox/react-toolbox/blob/dev/…
 
11:39 AM
@VeronicaDeane thats a pretty solid strategy
 
@yosefrow arms spaghetti
 
xD
 
the problem with pre-commit hooks is that they kinda start slowing you down if you rebase and extract new commits
 
@yosefrow At work we use a gated checkin with TFS. This means we can't check in code at all if it doesn't build and pass tests.
 
what is TFS?
 
11:40 AM
The idea is great, but it needs multiple branches to work well
 
can you ask the bot to explain the shorthand?
 
@yosefrow Team Foundation Server
 
What's the easiest way store monthly stats for an affiliate program in a database and display it to a website? I know this sounds like an open ended question, but I need some guidance.. Not sure the best way to do it.
 
@yosefrow A terrible source control system and an good collaboration system
 
!!urban TFS
 
11:40 AM
A Microsoft-made version control system
 
Wow first time hearing about it
 
consider yourself lucky
 
I mean I work with oracle...
 
oh then nvm
 
I won't complain about MS products
 
11:42 AM
@Paran0a yeah, because it's vendored as an enterprise VCS
 
@JaysonH the structure of your data matters. First consider that, then choose Relational or non-relational. After that choose a database. For most simple applications relational stores through MySQL via PHP are good enough
 
@yo
 
I think, though, you get TFS on Azure now, so us mortals may get to see it
 
@VeronicaDeane sounds like something worth looking into later
 
@yosefrow I've got that all down. I'm using mongo, vuejs, node.. I know how to store it, just not how to display it, and have it update with the correct month
 
11:43 AM
@JaysonH if you're using mongo and node just display via the nodejs express server
 
Sounds like a lot of "little" problems
 
install the mongo driver for node
 
@yosefrow maybe my question isn't clear.. I know how to display it, I'm just not sure on what my function would look like to pull the data for each month.
 
o_o
 
MONGO is nonsql right?
 
11:45 AM
yes
so your question Jayson then is how do you retrieve a particular set of data from mongoDB?
 
Then I can't even write pseudo code for you
 
wait if you are displaying it, then havent you pulled it already?
im confused
 
Somewhat, I'm pretty sure I can pull each month of data from Mongo, I'm just not sure how to show it on the page.. Would I need to pull it into an array, for each month?
Sorry, I'm having a really hard time trying to explain exactly what I need
 
I'm sorry man, but you seem to keep contradicting yourself
 
@JaysonH how much data are we expecting?
 
11:47 AM
How does the data look?
 
it depends on the structure of hte data and as Neil said, the amount of data
If you store the month as a document its fairly easy I imagine
but if a month is a collection, the request structure will be different
 
DAMNIT I find a good solution and then it's not free :( fullcalendar.io/scheduler
 
aww :(
 
that's what I'm asking @yosefrow .. I'm not sure 1) the best way to store the data, and 2) how to display it on the page (what function I would use to pull it)
 
This is sort of a subjective thing, but I would only retrieve the amount of data to show the user immediately and/or probably
 
11:49 AM
First you need the mongo driver for nodejs. Then on top of that there are abstraction libraries for Mongo
 
OOOOH I think I know what you mean
 
In your case, I would retrieve the current month, no more
 
You'll need stuff like REST Apis
Right?
 
You want us to recommend you a database backend, and a data visualization tool?
 
11:50 AM
@JaysonH I learned how to do it with this tutorial cwbuecheler.com/web/tutorials/2013/node-express-mongo
 
The api's, etc are no problem.. I understand that.. But with my app I need to show the last (quarters) of the year, by month
 
Show us how your data structure looks
 
And we have no idea what the data is.. yeah good luck with that..
 
@JaysonH he uses Monk which is a shallow level of abstraction for mongo which is waht Im comfortable with
 
I wish I was better at trying to explain what I need.. :(
 
11:51 AM
there is a higher level of abstraction available once you understand how mongo works or if you are forced to use it called Mongoose I believe
 
Show us how your data looks when you fetch it
 
Jayson you have to first be familiar with MongoDB and understand the difference between a document and a collection
in order to choose a data structure
because right now it sounds like you dont have any data
or any system
 
you're correct.. I haven't built that part of the system yet
 
Good good
 
user3119231
would you rather <?php include("needed html file") ?> or do an ajax request?
 
11:53 AM
@Maurice in what context?
 
user3119231
I have a html file which contains a taskbar I need in all pages
 
@Paran0a mongo interfaces with node at the hardware level through a driver i think
 
Try to keep the server stateless, secure, and flexible. Do that and the frontend comes easily enough
 
@FilipDupanović the whole issue is that I only have a windows machine connected to the internet
 
You're asking for a best approach for your specific problem as far as i can tell.. data in db -> query for required data -> process and visualize it how?
 
11:54 AM
@towc I'm late but whats your problem?
 
@Maurice some ppl seriously hate PHP, but its a good quick clean solution if you know how to use it
 
user3119231
@Neil more details please, my friend.
 
I avoid using ajax for code injection because ppl can turn off javascript
whereas they cant turn off your server side code
 
I handle rendering server side
 
11:55 AM
@cswl yes! I'm not sure the best way to process and visualize it
 
express , handlebars ez pz
 
@Paran0a what web server are u running
 
user3119231
Include is only good because the php code gets executed as soon as the page is created. JS would go with async (If not you might have rendering issues).
 
@DharmeshHariyani currentRow.innerHTML = currentRow.innerHTML.replace(new RegExp("changeCustomCategory(this.value,'"+_previousId+"')","g"),'changeCustomCa‌​tegory(this.value,'+new_id+')'); ....why?
 
11:56 AM
@Paran0a so youre using node
 
@Maurice well again, very subjective, but I would avoid an ajax call if it can be avoided
 
Yeah , and pm2 as process manager
 
@Maurice if you know php use php and call it a day. its easy and fast and clean
 
user3119231
@Neil Yes, I think it's better if the user sees less of the "system".
 
@Maurice if youre already running a node server use a templating engine for node
 
11:57 AM
@BenFortune adding dynamic row to table
 
@Maurice like handlebars
 
user3119231
I'm doing everything in vanillaJS
 
Even server?
 
@Maurice i never heard of that framework
 
@JaysonH I'd say data visualization largely depends on your business needs..
 
11:58 AM
Congrats then
 
user3119231
@Paran0a Server = PHP
 
Oh oh! kk!
 
Keep the php reasonable. . Don't interject php inside javascript, for the love of all that is holy
 
PHP is not a server though
 
user3119231
@yosefrow It's much better than jQuery.
 
11:58 AM
So I think you mean Apache?
or Litespeed
 
user3119231
Server = Apache = PHP
 
Are you guys trolling each other or is there a serious conversation going on?
Because I can't tell
 
lol @OliverSalzburg
 
This is srs bsn pls go awy
 
a little bit of both I guess
 
user3119231
11:59 AM
you really should try vanillaJS.
 
@cswl I think the best way for me to do it is store the data by month in the database (having the month as the key), then I can pull it into the page easily.. Do you see any issue storing it by month? I'm sure there are db queries I could use to pull by month, but the latter seems easier
 
@OliverSalzburg I think the server is really the clientside..
 

« first day (2083 days earlier)      last day (2868 days later) »