These are chat archives for FreeCodeCamp/HelpJavaScript

6th
Nov 2018
Pagnito
@Pagnito
Nov 06 2018 03:04
anyone familiar with next js?
as in worked with it before
b3twiise
@b3twiise
Nov 06 2018 03:07
whats nextjs
I personaly think there are two many frameworks out there
Serious need for a framework destroyer virus
Pagnito
@Pagnito
Nov 06 2018 03:16
lol
its framework that makes react apps into server side rendering apps
its like create-react-app
but server side rendering
b3twiise
@b3twiise
Nov 06 2018 03:18
I just had a look and it seems cool. Never used it
Pagnito
@Pagnito
Nov 06 2018 03:21
yea it seems pretty cool, i dunno tho
now that i know the limitations of ssr im not really a fan
but i gotta know it
b3twiise
@b3twiise
Nov 06 2018 03:22
"server side rendering?"
Pagnito
@Pagnito
Nov 06 2018 03:24
yea, like, in the beginning thats all there was
ur browser makes a request
and a server sends u an html page
and everytime u clicked a linked the borwser would make another a request for lets say about page
and the whole page would reload basically with the new html page
ur browser didnt have to execute any javascript, the server would send u a rdy page
b3twiise
@b3twiise
Nov 06 2018 03:26
a haaa. Sounds funz
Pagnito
@Pagnito
Nov 06 2018 03:26
but then javascript came
and ppl started making pages more interactive and then came
SPA
b3twiise
@b3twiise
Nov 06 2018 03:26
I am going back to the basic css. Will check that after i hit the js part
Pagnito
@Pagnito
Nov 06 2018 03:27
oh yea, u dont need to think about SSR for a while
b3twiise
@b3twiise
Nov 06 2018 03:29
My stupid internet was lagging so I did not receive all your chats tilll seconds ago
Pagnito
@Pagnito
Nov 06 2018 03:31
lol
i hate when that happens
b3twiise
@b3twiise
Nov 06 2018 03:32
I just switched to a better network, so that should be fun
So what project are you working on
Pagnito
@Pagnito
Nov 06 2018 03:43
right now im im going through a course on udemy
'roadmap from jnr dev to snr dev'
and im on ssr section'
im about to build a small site using next js
so atm im thinking what kind of site to make and whether i should include aauthentication
b3twiise
@b3twiise
Nov 06 2018 03:44
I have in the past had trouble liking udemy
Pagnito
@Pagnito
Nov 06 2018 03:45
how come
b3twiise
@b3twiise
Nov 06 2018 03:45
I also had the RAR philosophy from fcc
I never had success with udemy
Pagnito
@Pagnito
Nov 06 2018 03:46
proly cuz u had picked bad courses
if u find the right instructors on udemy its priceles
like the last two courses i took on udemy were shit
b3twiise
@b3twiise
Nov 06 2018 03:47
I will check it again. I know at some point I will need to for some of the fcc challenges
Pagnito
@Pagnito
Nov 06 2018 03:47
but overall ive taken like 7 courses on udemy and the other 5 were great
yea i recomend stephen grider
b3twiise
@b3twiise
Nov 06 2018 03:47
any recommendations on algs and code golf materials?
these two have serious experience and teach very good
and they teach you for high standards
make sure u take advantage of all the beginer stuff like codecademy and fcc properly tho
i took codecademy javascript course like 3 or 4 times
and went over some of the fcc javascript material multiple times
b3twiise
@b3twiise
Nov 06 2018 03:50
@Pagnito yupp, I decided to start all the way from the beginning
Pagnito
@Pagnito
Nov 06 2018 03:50
essentially i went over the same stuff over and over lol
b3twiise
@b3twiise
Nov 06 2018 03:50
hahahe
Pagnito
@Pagnito
Nov 06 2018 03:50
yea if it dont stick, u cant go on lol
btw
b3twiise
@b3twiise
Nov 06 2018 03:50
what they say about repetition
Pagnito
@Pagnito
Nov 06 2018 03:50
sometihng i learned today
emotion + new learning = permeanant memory
b3twiise
@b3twiise
Nov 06 2018 03:51
yupp,
Pagnito
@Pagnito
Nov 06 2018 03:51
every project u work on, make sure u transform into something u like, even if it makes it harder
b3twiise
@b3twiise
Nov 06 2018 03:53
I will keep that in mind
What do you think about bootcamps charging 10k-30k
Pagnito
@Pagnito
Nov 06 2018 03:54
its worth if they have good job placement programs
otherwise u better off doing it urself
plus in 3 month i feel like no matter what a persons knowledge area will be very slim in my opinion
b3twiise
@b3twiise
Nov 06 2018 03:56
that makes sense.
Pagnito
@Pagnito
Nov 06 2018 03:57
like i dunno how somebody can become full stack develoepr in 3 months, it seems crazy
i been doing it for about a yr and a half now
b3twiise
@b3twiise
Nov 06 2018 03:57
Do you have some cs background? Which of the challenges do you find more challenging?
Pagnito
@Pagnito
Nov 06 2018 03:57
i dont have any cs background
i was selling pot for a living a few yrs back lol
b3twiise
@b3twiise
Nov 06 2018 03:58
@Pagnito Some do it online and want to charge similar rates
Pagnito
@Pagnito
Nov 06 2018 03:58
yea its ridiculous
for me the hardest challanges r def the ones involving maths
thats why once im done with my next 5 cours im taking cs intro and cs harvard course
but also a big challange is like u said
THERE IS TOO MANY FUCKING FRAMEWORKS AND CONFIGURATIONS
b3twiise
@b3twiise
Nov 06 2018 03:59
yupp, are you talking about cs50?
Pagnito
@Pagnito
Nov 06 2018 03:59
yaaaa
i heard that shit is amazing
and its free so im fukcing siked for it
b3twiise
@b3twiise
Nov 06 2018 04:00
yupp, I tried it so many times and quit so many times
Pagnito
@Pagnito
Nov 06 2018 04:00
damn O.o
shit must be hard af
b3twiise
@b3twiise
Nov 06 2018 04:00
Not that it is that hard
Pagnito
@Pagnito
Nov 06 2018 04:00
alot?
b3twiise
@b3twiise
Nov 06 2018 04:00
I work full time and get tired of everything. lol
Pagnito
@Pagnito
Nov 06 2018 04:01
ah i feel u
b3twiise
@b3twiise
Nov 06 2018 04:01
yea, like 70-80 hours a week
Pagnito
@Pagnito
Nov 06 2018 04:01
damn what do u do
b3twiise
@b3twiise
Nov 06 2018 04:02
as a cook. lol
Pagnito
@Pagnito
Nov 06 2018 04:02
ooh shit
b3twiise
@b3twiise
Nov 06 2018 04:02
full days and shit
Pagnito
@Pagnito
Nov 06 2018 04:02
yea i worked at a kitchen once
that shit was od lol
b3twiise
@b3twiise
Nov 06 2018 04:02
that is where all the siko go. lol
Pagnito
@Pagnito
Nov 06 2018 04:02
do u have a family?
like wife and kids ?
b3twiise
@b3twiise
Nov 06 2018 04:02
it is some type of no law land
nope nope.
Pagnito
@Pagnito
Nov 06 2018 04:03
dude then u should get a different job and focus on coding
b3twiise
@b3twiise
Nov 06 2018 04:03
just first born with lots of siblings
Every new beginning is scary as hell
Pagnito
@Pagnito
Nov 06 2018 04:03
yea it is
but it def shouldnt stop u
how old r u
b3twiise
@b3twiise
Nov 06 2018 04:04
Am trying to span this curriculum into a full year and see how it goes
am 25
Pagnito
@Pagnito
Nov 06 2018 04:04
oh damn bro
u DEF need to get a different job
and focus on learning
like whaaaaa
b3twiise
@b3twiise
Nov 06 2018 04:05
I know. lol
Pagnito
@Pagnito
Nov 06 2018 04:05
by the time u 30 u can be doing w/e the fck u want
if u put in a good 2 and a half yrs now
b3twiise
@b3twiise
Nov 06 2018 04:05
yupp.
The realities
Pagnito
@Pagnito
Nov 06 2018 04:05
yea man haha
this coding shit is popping right now
b3twiise
@b3twiise
Nov 06 2018 04:06
are you familiar with other programming languages?
I know, man. Am trying to sneak up and grab it
Pagnito
@Pagnito
Nov 06 2018 04:06
a lil bit of python, but i wouldnt even say i know python, i just took an intro to pyton once
but im def gonna learn python by end of next yr
i dont even think it will take that long to be honest
b3twiise
@b3twiise
Nov 06 2018 04:07
python is fun. I just think it is uptight about white space
Pagnito
@Pagnito
Nov 06 2018 04:08
yea but i think its because it doesnt use ';' as much
im not sure tho
b3twiise
@b3twiise
Nov 06 2018 04:08
Next time I will try black space and see how it goes :trollface:
Pagnito
@Pagnito
Nov 06 2018 04:08
lol
b3twiise
@b3twiise
Nov 06 2018 04:09
are you from the east coast?
Pagnito
@Pagnito
Nov 06 2018 04:09
ya
u?
b3twiise
@b3twiise
Nov 06 2018 04:11
yea, am chilling with jay z lol
I just checked your website. It is popping
what is webgl
I mean deckgl
lol
Pagnito
@Pagnito
Nov 06 2018 04:12
u know uber right?
the taxi thingy company
well ubers tech team created this framework to visualize their data
deck.gl
if u go to examples, ur computer might not be able to open them if u have a weak graphic card
cuz its using webgl
and webgl requires a good graphic card
b3twiise
@b3twiise
Nov 06 2018 04:15
it is super cool
Pagnito
@Pagnito
Nov 06 2018 04:15
yea, their visualization are dope
b3twiise
@b3twiise
Nov 06 2018 04:18
yupp, my computer cant open anythting there
What type of laptop are you using?
I will need to upgrade my machine pretty soon
Pagnito
@Pagnito
Nov 06 2018 04:20
i have a shit laptop too, i got a 2011 macbook pro, when i was working with deck gl i used my brothers gaming laptop lol
my brother is serious about his video cards so i was set to go
b3twiise
@b3twiise
Nov 06 2018 04:21
I will need to get one of those monsters
did you need any data structures to do the game of life challenge?
Pagnito
@Pagnito
Nov 06 2018 04:25
nah
i still dont really know about data structures
i heard about trees or w/e
i know its like one of the first things taught in cs, but i havent taken any cs courses yet
b3twiise
@b3twiise
Nov 06 2018 04:30
I think the game of life challenge is ... a challenge. lol. Just no clue where to start
Pagnito
@Pagnito
Nov 06 2018 04:30
yea i feel u
i i tell u what
i wish i knew about flexbox flexbox wrap and align content flex-start back then
woulda made it so much easier lol
b3twiise
@b3twiise
Nov 06 2018 04:34
I will make sure I take flexbox seriously when I get to its exercices
Pagnito
@Pagnito
Nov 06 2018 04:34
yea flexbox is awesome
im so glad bootstrap is dying
b3twiise
@b3twiise
Nov 06 2018 04:35
the chat is so quiet. Is it like that everyday>
Pagnito
@Pagnito
Nov 06 2018 04:35
nah
b3twiise
@b3twiise
Nov 06 2018 04:35
Ohh no. not bootstrap!
Pagnito
@Pagnito
Nov 06 2018 04:35
usually there is like 4 regulars here
im not a fan of css frameworks, they r def usefull but i feel like once javascript got involved in css frameworks it got a bit confusing and a bit over the top
like css frameworks will always have their place i feel, but sometimes i just them to be really simple
like i wanted to try grommet
cuz they r the only css framework whos design i actually like
but if u wanna use grommet u gotta download a whole app
fck that
b3twiise
@b3twiise
Nov 06 2018 04:42
lol
yea, a whole lot of frameworks out there
Pagnito
@Pagnito
Nov 06 2018 04:42
lol ya
damn i was gonna make a gif generator website thinking i would the first
but clearly i was dead wrong
b3twiise
@b3twiise
Nov 06 2018 04:52
hahah. there is already one?
Pagnito
@Pagnito
Nov 06 2018 05:00
yea giphy.com
its actually pretty awesome
but i think im still gonna make clone of it cuz i think it will be a really good challenge for me and ill learn alot
b3twiise
@b3twiise
Nov 06 2018 05:07
that site is already up there
Pagnito
@Pagnito
Nov 06 2018 05:08
yea
thats proly where all these dope memes come from
Mohammed Boudad
@matrixersp
Nov 06 2018 05:12
Hi guys, I'm creating chat app using Electron, React and websocket. I don't know what's the right way to implement the server
Can someone help me with that?
b3twiise
@b3twiise
Nov 06 2018 05:13
@Pagnito yupp, I looked and could recognize so many of them
Pagnito
@Pagnito
Nov 06 2018 05:14
@matrixersp r u using express?
Mohammed Boudad
@matrixersp
Nov 06 2018 05:14
No I'm not using it
Pagnito
@Pagnito
Nov 06 2018 05:15
do u know what express js is?
Mohammed Boudad
@matrixersp
Nov 06 2018 05:15
Yes, it's a framework for Node.js
Pagnito
@Pagnito
Nov 06 2018 05:15
so do u not want to use it?
Mohammed Boudad
@matrixersp
Nov 06 2018 05:16
Do I have to use it to create a server? I think I could create it without express
Pagnito
@Pagnito
Nov 06 2018 05:16
yea u can
its just its alot easier
Mohammed Boudad
@matrixersp
Nov 06 2018 05:16
The problem is that webpack bundles the code and run it on the client
Pagnito
@Pagnito
Nov 06 2018 05:17
express wont be in ur webpack
ur server.js will be in the parent directory of ur client dir
Brad
@bradtaniguchi
Nov 06 2018 05:18
@matrixersp You need to create a totally different application to get your server going.
Mohammed Boudad
@matrixersp
Nov 06 2018 05:19
It's an electron app, How to have them in one package?
Electron uses both Node.js and Chromium runtimes
Brad
@bradtaniguchi
Nov 06 2018 05:20
@matrixersp How will your electron app on your client-side talk to someone else?
how does it even know of other clients? (it doesn't)
You must have a server somewhere to act as the middleman, otherwise your going to have an interesting time connecting people (you can, its peer to peer, but much harder than having a server somewhere)
Mohammed Boudad
@matrixersp
Nov 06 2018 05:21
I don't know, but I find implementation of chat app in a book I don't know how they did it
b3twiise
@b3twiise
Nov 06 2018 05:21
what book are you working on?
Pagnito
@Pagnito
Nov 06 2018 05:21
im sure if u youtube it, ull find step by step video
Mohammed Boudad
@matrixersp
Nov 06 2018 05:22
Wait I'm gonna give you a link
b3twiise
@b3twiise
Nov 06 2018 05:22
ok
thanks
I'm in chapter 4
b3twiise
@b3twiise
Nov 06 2018 05:23
thinks, nice. Any idea about the name of the book?
Mohammed Boudad
@matrixersp
Nov 06 2018 05:24
Cross-platform Desktop Application Development Electron, Node, NW.js, and React
Brad
@bradtaniguchi
Nov 06 2018 05:26
I can't tell the architecture their entire chat app, so I couldn't tell you for sure what exactly you need, I can only tell you from what I know, your going to need a server somewhere other than the client.
Mohammed Boudad
@matrixersp
Nov 06 2018 05:27
@bradtaniguchi of course I need a server, please if you have time to check that book and help me understand how they did it
I'm using a different library for WebSockets ws
Brad
@bradtaniguchi
Nov 06 2018 05:30
I feel uncomfortable clicking on any of these links on this site.
Mohammed Boudad
@matrixersp
Nov 06 2018 05:30
Well the name of the books is: Cross-platform Desktop Application Development Electron, Node, NW.js, and React
Brad
@bradtaniguchi
Nov 06 2018 05:49
I don't want to search for a book to help you with a chapter, I'm sorry I'm lazy :/
Mohammed Boudad
@matrixersp
Nov 06 2018 05:55
@bradtaniguchi I know it's a bit too much, thanks anyway
Brad
@bradtaniguchi
Nov 06 2018 06:04
@matrixersp Yea I'd be willing help you hash out potential things (to the limit of my knowledge hehe) tho
Mirkan Çalışkan
@mirkancal
Nov 06 2018 06:52

Hey guys, there is a challenge in functional programming chapter, called "Functional Programming: Sort an Array Alphabetically using the sort Method", however the solution code on the get a hint page is incorrect https://guide.freecodecamp.org/certifications/javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method/

I've used sort function without compare callback like that and I've passed the exercise
"return arr.sort();"
I'm kinda new in FCC environment so who can check that issue and edit the get a hint page?

Mohammed Boudad
@matrixersp
Nov 06 2018 07:33
@mirkancal Yes, it works both ways, probably they wanted to show us that you could pass a callback function to the sort() method. A case where you would use it that way is when you have an array of objects, let's say you have an object of names that you want to sort alphabetically, that's how you would do it:
 function alphabeticalOrder(arr) {
  return arr.sort((a, b) => a.name > b.name);
}
Mirkan Çalışkan
@mirkancal
Nov 06 2018 07:41
@matrixersp Yes, but the code snippet on the solution part is not accepted.
Mohammed Boudad
@matrixersp
Nov 06 2018 07:45
In programming you usually find several ways to solve a single problem
Mirkan Çalışkan
@mirkancal
Nov 06 2018 07:46
Bro, I get that, but the solution code on the get a hint page is not working, is not valid for the exercise.
Mohammed Boudad
@matrixersp
Nov 06 2018 07:56
Ah, right
Claudio Restifo
@Marmiz
Nov 06 2018 08:21
@mirkancal are you using chrome?
there's a knonw bug in Chrome for sorting methods. Try the same function in the firefox console
or at least there used to be an issue, don't know if they fixed it
Mirkan Çalışkan
@mirkancal
Nov 06 2018 08:57
@Marmiz Wow man you really know what you are doing. Yeah, now I tried the solution code on firefox and it worked. Also my code (the one without callback) is working too on firefox. Thanks!

https://stackoverflow.com/questions/48201502/strange-javascript-sorting-bug
"By default, the sort() method sorts the values as strings in alphabetical and ascending order."

However, I don't know why they are using sort with compare function on the solution code when the question is about strings. Default sort works fine too. I wouldn't get in that much trouble for that, I know that there could be many ways to solve but it's just confusing.

Claudio Restifo
@Marmiz
Nov 06 2018 09:58
@mirkancal sorting in general is a pain. The reason on FF and Chrome behave differently is that the later use in-place sort.
You can be specific and convert string into their UTF-16 unicode and compare those :)
that's probably the most "sound" way to sort it. Or so I think
michel perez
@MichelPra
Nov 06 2018 12:08
someone knows why this pass the test ,
// define ADD, addMessage(), messageReducer(), and store here:
const ADD = `ADD`;

function addMessage(message){
  return {
    type: ADD,
    message
  }
};

const messageReducer = (state = [], action) =>{
  switch(action.type){
    case ADD:
    return [...state, action.message]
    default:
    return state;
  }
}

const store = Redux.createStore(messageReducer);
and this no?
// define ADD, addMessage(), messageReducer(), and store here:
const ADD = `ADD`;

function addMessage(message){
  return {
    type: ADD,
    message
  }
};

const messageReducer = (previousState=[], action) =>
  [...previousState,action.message]

const store = Redux.createStore(messageReducer);
i think it's some related with the way the default value for previousState it's declarated
michel perez
@MichelPra
Nov 06 2018 12:13
don't know if this it's the more appropiated room to question ...
Johnny
@JohnnyBizzel
Nov 06 2018 12:53
@10vivar Might just be what the test expects. Why are you not checking the action type?
吃下去
@procedure-ape
Nov 06 2018 12:58
i need help
[图片]
michel perez
@MichelPra
Nov 06 2018 15:17
@JohnnyBizzel because in the suggested solution don't do !!
const ADD = 'ADD';

function addMessage(message) {
  return {
    type: ADD,
    message: message
  };
};

function messageReducer (previousState, action) {
  return [...previousState, action.message];
}

let store = {
  state: [],
  getState: () => store.state,
  dispatch: (action) => {
    if (action.type === ADD) {
      store.state = messageReducer(store.state, action);
    }
  }
};
Jason Luboff
@JLuboff
Nov 06 2018 17:59
Morning :wave:
Christopher McCormack
@cmccormack
Nov 06 2018 18:03
@JLuboff yo
Brad
@bradtaniguchi
Nov 06 2018 18:22
@JLuboff hello
Jason Luboff
@JLuboff
Nov 06 2018 18:27
@cmccormack @bradtaniguchi Whats up guys?
Brad
@bradtaniguchi
Nov 06 2018 18:29
Ah gosh darnit, I just realized I spent all of yesterday working on building a feature from the ground up, when I already did 80% of the feature 2 months ago -_-
Christopher McCormack
@cmccormack
Nov 06 2018 18:29
@JLuboff Playing with Palo Alto Networks Panorama Templates :)
Jason Luboff
@JLuboff
Nov 06 2018 18:30
@bradtaniguchi Hah...that sucks
@cmccormack Fun. We have a couple of PAN firewalls
Brad
@bradtaniguchi
Nov 06 2018 18:31
No wonder I had that feeling I felt like I did it before :/
Christopher McCormack
@cmccormack
Nov 06 2018 18:31
@bradtaniguchi you get paid by the commit though right?
Brad
@bradtaniguchi
Nov 06 2018 18:32
I get paid in bananas :D
Christopher McCormack
@cmccormack
Nov 06 2018 18:33
haha
Pagnito
@Pagnito
Nov 06 2018 18:33
anyone use AWS?
Christopher McCormack
@cmccormack
Nov 06 2018 18:34
I'm pretty sure most people do day-to-day in some way
Pagnito
@Pagnito
Nov 06 2018 18:34
i made an account but i cant sign in
its asking for a client id or alias and i dont remember making one
Christopher McCormack
@cmccormack
Nov 06 2018 18:35
maybe logging in through the wrong portal?
Jason Luboff
@JLuboff
Nov 06 2018 18:36
So I officially have my MCSA: SQL 2016 Database Development certification!
Christopher McCormack
@cmccormack
Nov 06 2018 18:36
@JLuboff is that where you were this morning?
Jason Luboff
@JLuboff
Nov 06 2018 18:36
@cmccormack Yup! Was taking my last cert test
Christopher McCormack
@cmccormack
Nov 06 2018 18:37
Congratulations! 🎉🎉🎉
Jason Luboff
@JLuboff
Nov 06 2018 18:37
Thank you :smile:
Christopher McCormack
@cmccormack
Nov 06 2018 18:37
I know it's early but what's next?
Jason Luboff
@JLuboff
Nov 06 2018 18:38
Focus on my work is next :) Perhaps in the future I'll look at some others but for now.. I'm done for a while. With this, I get my last raise as part of taking all of these, so I'm pretty happy today lol
Pagnito
@Pagnito
Nov 06 2018 18:38
oh my autofill was fckn it up for me
Jason Luboff
@JLuboff
Nov 06 2018 18:38
12.5% raise!
Christopher McCormack
@cmccormack
Nov 06 2018 18:39
💵💵💰💰💰💵💵
that's great man
Jason Luboff
@JLuboff
Nov 06 2018 18:39
Ya.. I was stressing over taking the test...so happy its over with lol
Christopher McCormack
@cmccormack
Nov 06 2018 18:39
glad you didn't have to repeat it, good studyin
Jason Luboff
@JLuboff
Nov 06 2018 18:40
Ya me too. Managed to pass 5 different tests over just under a year and a half
Christopher McCormack
@cmccormack
Nov 06 2018 18:41
Are you in that weird mentality where you don't know what to do with yourself now that you've finished?
Brad
@bradtaniguchi
Nov 06 2018 18:42
@JLuboff Thats awesome, nice!
Jason Luboff
@JLuboff
Nov 06 2018 18:43
@cmccormack I'm in that mentality that now that I'm at work for the day...that I don't really wnt to do anything :joy: but nah.. I have lots to do. I'm glad I don't need to focus so much time on studying/practicing and now looking forward to actually implementing a lot of what I've learned into actual day to day procedures
@bradtaniguchi Thanks!
Jason Luboff
@JLuboff
Nov 06 2018 19:03
@bradtaniguchi Hey...do you (or I guess your company) have a form that needs to be filled out when a client is requesting a new application? (i.e Purpose of app, work flow, etc )
Brad
@bradtaniguchi
Nov 06 2018 19:05
@JLuboff I would think so, but idk if we have a formal process for that sorta stuff, since our company is pretty small. But yea I'm to low on the totem pole to know
Jason Luboff
@JLuboff
Nov 06 2018 19:06
Oh :(
I need to either create something or find something figured I'd ask if you had something :)
Brad
@bradtaniguchi
Nov 06 2018 19:10
I've heard of terms like change requests when talking with our largest client, but they are using Remedy. I hate the thing with a passion tho
Jason Luboff
@JLuboff
Nov 06 2018 19:11
Remedy === BMC?
Brad
@bradtaniguchi
Nov 06 2018 19:13
Yea that thing
Jason Luboff
@JLuboff
Nov 06 2018 19:13
Eh ya aint going to even look at that lol
Brad
@bradtaniguchi
Nov 06 2018 19:14
Depending on your requirements, I would think you can easily get one going pretty quick (month tops) or there's plenty of alternatives haha
Jason Luboff
@JLuboff
Nov 06 2018 19:15
Nah...I just need a word document style form for the requestor to fill out
Brad
@bradtaniguchi
Nov 06 2018 19:19
Yea that works too, I would also recommend google forms, but if your not on google that prolly wont work easily
Jason Luboff
@JLuboff
Nov 06 2018 19:22
Eh it'll be something I probably just email directly or place somewhere on our shared network storage
Brad
@bradtaniguchi
Nov 06 2018 19:24
Yea, I wouldn't do anything crazy for it haha
Jason Luboff
@JLuboff
Nov 06 2018 19:24
Ya. I'm just creating something. Can't really find much via searching
Nate Mallison
@NJM8
Nov 06 2018 19:29
How's it going
Jason Luboff
@JLuboff
Nov 06 2018 19:29
@NJM8 It's going GREAT! How about you?
Nate Mallison
@NJM8
Nov 06 2018 19:31
Good, building stuff
Congrats on the raise
I'm unsure of when to ask for one of those in my current contracting position
Jason Luboff
@JLuboff
Nov 06 2018 19:31
Thanks man
I've never worked under a contract position...but from what I've read in various places (ok..really its \r\PersonalFinance on Reddit), I think mainly the best time is when they're looking to renew your contract
Or extend
Christopher McCormack
@cmccormack
Nov 06 2018 19:33
@NJM8 at a minimum you should request a raise if the earning power of your pay becomes less over time. Inflation goes up a little each year and if the company doesn't provide a raise to at least match it, then you're technically earning less each year
Nate Mallison
@NJM8
Nov 06 2018 19:36
I believe I should apply the college cost inflation rate not the actual inflation rate
10%/year sounds good
interesting stuff there
Christopher McCormack
@cmccormack
Nov 06 2018 19:38
I guess, but they moved to CA where the pay is substantially higher due to the cost of living also being much higher
they may have been wealthier staying in MA
Nate Mallison
@NJM8
Nov 06 2018 19:39
He is also the writer of some of the best JS books on the market, so he has a ton of knowledge
Also that's why I've always wanted to work remote. I already make more than most of the local dev shops can offer me as a "junior" dev
Jason Luboff
@JLuboff
Nov 06 2018 19:41
Man...I hope to be making $200k+ one day...
Nate Mallison
@NJM8
Nov 06 2018 19:41
Gotta provide major value to hit that
Jason Luboff
@JLuboff
Nov 06 2018 19:42
Yup..
Nate Mallison
@NJM8
Nov 06 2018 19:42
there are senior Angular dev positions on SO for remote in the $140k range. I'd settle for that I guess. :laughing:
Jason Luboff
@JLuboff
Nov 06 2018 19:43
Hah...ya that amount would be bad either ;)
Nate Mallison
@NJM8
Nov 06 2018 19:46
I'm not there yet, spent 20 minutes today struggling with a .map........ I keep forgetting with Map that you have to return the value.
Jason Luboff
@JLuboff
Nov 06 2018 19:46
lol
Christopher McCormack
@cmccormack
Nov 06 2018 19:47
@NJM8 I'm willing to bet even the pros do that, probably due to arrow functions convoluting syntax
Nate Mallison
@NJM8
Nov 06 2018 19:49
That's what I tell myself at night too
Lol
Christopher McCormack
@cmccormack
Nov 06 2018 19:50
map should take a second argument you can use just to log values or something
I'm pretty sure every time I make that same mistake it's because I wanted to log a value and had to add curly braces then forgot to add a return
Jason Luboff
@JLuboff
Nov 06 2018 19:53
Yup... I always do that (log) to make sure I'm getting what I'm expecting but I also add return in the statement :shrug:
Aditya
@ezioda004
Nov 06 2018 19:53
It does take a second argument but its to change this binding in the callbacks context. I guess its a downside of arrow functions, bad for debugging
Christopher McCormack
@cmccormack
Nov 06 2018 19:57
oh didn't see that MDN has the second argument 2 rows down :)
Brad
@bradtaniguchi
Nov 06 2018 19:58
Or use typescript and watch as your editor glows red since the returned array now has undefined in it :wink:
Nate Mallison
@NJM8
Nov 06 2018 19:59
Ewwww
Jason Luboff
@JLuboff
Nov 06 2018 19:59
Looks like I'll be creating Version 3 of my app... so many changes...
Christopher McCormack
@cmccormack
Nov 06 2018 19:59
will it? That sounds great!
@JLuboff see you need a product owner
Jason Luboff
@JLuboff
Nov 06 2018 20:01
Hah.. that would be nice. My buddy tried to keep them from doing this last big change...but he lost the argument
Christopher McCormack
@cmccormack
Nov 06 2018 20:01
no you need someone in leadership to own it
so they are the funnel from which you get the requirements
and they can push back
Jason Luboff
@JLuboff
Nov 06 2018 20:01
:( Someone in leadership does on it, just not from my leadership
Jason Luboff
@JLuboff
Nov 06 2018 21:30
:fire:
Brad
@bradtaniguchi
Nov 06 2018 21:32
@JLuboff Is the server on fire again?
Jason Luboff
@JLuboff
Nov 06 2018 21:34
Yes...Yes it is
Just feeling good
Brad
@bradtaniguchi
Nov 06 2018 21:36
Good I'm glad :D
Jason Luboff
@JLuboff
Nov 06 2018 21:38
Ya man. Only week and a half until a week off... cant be mad today
Brad
@bradtaniguchi
Nov 06 2018 21:42
damn lucky
Jason Luboff
@JLuboff
Nov 06 2018 21:43
Only have to use 3 vacation days due to 2 paid holiday days
Brad
@bradtaniguchi
Nov 06 2018 21:43
Your taking off thanksgiving week then right?
Jason Luboff
@JLuboff
Nov 06 2018 21:44
Yup
Brad
@bradtaniguchi
Nov 06 2018 21:46
Nice, wish I had that amount of vacation days for that :/
Jason Luboff
@JLuboff
Nov 06 2018 21:46
How many do you get?
Currently.. I get 10 days a year...but started next year I go to 15
Brad
@bradtaniguchi
Nov 06 2018 21:46
Just the usual 2 weeks a year
But I already used all of them during the summer
Jason Luboff
@JLuboff
Nov 06 2018 21:48
Ah.. ya I haven't used a lot of vacation this year plus I usually end up carrying over some
Jason Luboff
@JLuboff
Nov 06 2018 21:57
Hmmm...I made a new branch on my project...which is only going to have one commit.. :joy:
Brad
@bradtaniguchi
Nov 06 2018 22:02
Sounds like something I would do hehe
Jason Luboff
@JLuboff
Nov 06 2018 22:02
Oh well. I'll just commit , merge, delete
Brad
@bradtaniguchi
Nov 06 2018 22:04
merge --squash yo
or rebase
Jason Luboff
@JLuboff
Nov 06 2018 22:04
Never used either :(
Dovydas Stirpeika
@Giveback007
Nov 06 2018 22:06
This place really died down hu?
Jason Luboff
@JLuboff
Nov 06 2018 22:07
@Giveback007 Ya :(
Dovydas Stirpeika
@Giveback007
Nov 06 2018 22:07
I've been looking up elm
anyone here played with it?
Brad
@bradtaniguchi
Nov 06 2018 22:07
@JLuboff It's time
Jason Luboff
@JLuboff
Nov 06 2018 22:08
@bradtaniguchi So I have two branches. master and FixCronJob. I have yet to commit anything to FixCronJob. So what would be my process here?
@Giveback007 Think I've heard of it..but never played with it
Christopher McCormack
@cmccormack
Nov 06 2018 22:10
@JLuboff commit, switch to master (git checkout master), git merge FixCronJob
I think
Jason Luboff
@JLuboff
Nov 06 2018 22:11
@cmccormack Thats my normal workflow
but @bradtaniguchi is saying to use squash
Brad
@bradtaniguchi
Nov 06 2018 22:11
@JLuboff Well on your fix branch youd want to do something on it, and later get the commits back into master. Say you make 3 commits on the fix branch, you can go back to master, then run git merge --squash FixCronJob which will pull all the commits you made on the FixCronJob branch into staging, then when you run git commit you will see an overview of all of the commit messages from the FixCronJob branch allowing you to edit/remove/update all the messages into 1 summary.
Jason Luboff
@JLuboff
Nov 06 2018 22:11
Ah that makes sense
Christopher McCormack
@cmccormack
Nov 06 2018 22:11
oh you meant for squashing
sorry
Brad
@bradtaniguchi
Nov 06 2018 22:12
This allows your branch to basically get squashed down into 1 nice clean commit. So you can spam/do dumb stuff on your branch and at the end of the day only whats left gets put into master, keeping history clean and commits "together"
Jason Luboff
@JLuboff
Nov 06 2018 22:12
@cmccormack No worries broski
@bradtaniguchi Ya...thats good... since I end up with some branches with a large number of commits. Any way to clean up those commits post merge?
Brad
@bradtaniguchi
Nov 06 2018 22:13
You could also do rebase, but I only use it for a specific use case (you want to move all the commits ontop of master, and your ahead of master) I know there's like interactive rebase and more fancy stuff but idk how to use that stuff
@JLuboff Once you merge to master I wouldn't change the commits, since your essentially changing history
Jason Luboff
@JLuboff
Nov 06 2018 22:13
Alright. So don't worry about the past, just the future :thumbsup:
Christopher McCormack
@cmccormack
Nov 06 2018 22:14
rebase messes with history too right?
Brad
@bradtaniguchi
Nov 06 2018 22:14
Yes haha, last thing you want is to delete the past, then WTF was the point of using git haha
@cmccormack Yes, which is why I use to sparingly, some funky stuff can happen haha
Christopher McCormack
@cmccormack
Nov 06 2018 22:16
every time I think I have a grasp on merge vs rebase I realize I don't haha
Jason Luboff
@JLuboff
Nov 06 2018 22:17
Shit. Fucked up my squash commit. Oh well. Lol (I guess I didn't modify right since it says "Squashed commit of the following:...."
Brad
@bradtaniguchi
Nov 06 2018 22:19
@JLuboff Just edit the commit with git commit --amend
Jason Luboff
@JLuboff
Nov 06 2018 22:21
Ah, neat! So.. I see a VIM like enviornment... and it says "Squashed commit of the following" followed by my commit number, author, date, and then the commit message. So, if I only want the commit message I need to either comment out everything else or delete everything else?
Brad
@bradtaniguchi
Nov 06 2018 22:27
Just delete everything else
You could setup git to use notepad++ or some other editor on windows instead of vim if you don't want to use vim to edit the messages (vim has been left todo only this pretty much nowadays on my machines haha)
Jason Luboff
@JLuboff
Nov 06 2018 22:29
Cool, that took care of it :thumbsup:
Alright...now..do I work on the next fix...or wait until they finalize the additional fix beyond that..hmm
Pagnito
@Pagnito
Nov 06 2018 22:32
for some reason when i use input type="file" and when i push into files, it replaces the previous object instead of adding on to the fileList
Jason Luboff
@JLuboff
Nov 06 2018 22:34
ok..
Brad
@bradtaniguchi
Nov 06 2018 22:37
@JLuboff np :D, and requirements always change hehe
Jason Luboff
@JLuboff
Nov 06 2018 22:38
Ya...they keep changing requirements instead of doing a bit of training. Kind of stupid but..oh well.