These are chat archives for FreeCodeCamp/HelpJavaScript

6th
Jun 2018
YongweiWu
@YongweiWu
Jun 06 2018 01:55
}B67$8O4NV6]IQFPY65IWLT.png
how to complete this task
abraham anak agung
@padunk
Jun 06 2018 02:22
@YongweiWu try chinese room in gitter, https://gitter.im/freecodecamp/chinese
Francois Beyers
@Blusoup
Jun 06 2018 06:43
i'm trying to capture errors on a form, but there are no distinct classes or id's. I was thinking of capturing them through their css style color, but not sure how I would do that. I need to capture the error text and oush it into an array. Has anyone got any ideas? Any help will be greatly appreciated!
Blauelf
@Blauelf
Jun 06 2018 08:13

@YongweiWu You are supposed to first append the item to the arr, and then remove and return arr's first element. slice is the wrong method. arr.shift() is right, but it returns the element it removes, and you should return that removed element.

And yes, there's also FreeCodeCamp/chinese channel.

@Blusoup If there are no ids, how are you going to identify them? Especially, what is "error text" in your context? (I don't think that's a property of an input element)
Francois Beyers
@Blusoup
Jun 06 2018 08:16
@Blauelf This is what I'm trying to figure out. They do have individual id's but there is no way of knowing exactly what they are. The only thing I can see to capture them is through their CSS Style, but i dont know how to do that.
Blauelf
@Blauelf
Jun 06 2018 08:29
Do they have inline CSS style associated?
Not exactly a great way to target them...
Francois Beyers
@Blusoup
Jun 06 2018 08:29
yes. style="color: red; display: inline;"
I know its not idea, but unfortunately its my only option
Blauelf
@Blauelf
Jun 06 2018 08:32
Maybe a CSS selector including [style*="color: red;"] can help.
Francois Beyers
@Blusoup
Jun 06 2018 08:38
@Blauelf https://codepen.io/Blusoup/pen/GGqOQR how would i be able to capture them purely by their CSS style and push them into an Array?
Blauelf
@Blauelf
Jun 06 2018 08:40
That's no inline CSS.
Francois Beyers
@Blusoup
Jun 06 2018 08:40
sorry it does have inline, i just didn't add them in the pen
I'll do it again
Blauelf
@Blauelf
Jun 06 2018 08:46

Just tried

let text = [...document.querySelectorAll('[style*="color: red;"]')].map(elem=>elem.innerText);

Something like that?

Francois Beyers
@Blusoup
Jun 06 2018 08:47
@Blauelf thank you very much! Legend!
Rick Adams
@rickadams2
Jun 06 2018 09:22
What's a good fix for error ?
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -4058, true ]
Blauelf
@Blauelf
Jun 06 2018 09:26
Does it tell you on the line before which file could not be found?
Rick Adams
@rickadams2
Jun 06 2018 09:38
afbeelding.png
afbeelding.png
who has a solution ?
Pieter Stokkink
@forkerino
Jun 06 2018 09:49
@rickadams2 go to the build-slack... folder
and run it from there
Shubham soni
@shubhamsoni2617
Jun 06 2018 10:45
function makeClass() {
  "use strict";
  /* Alter code below this line */
class Thermostat{
  constructor(Fahrenheit){
    this.F=Fahrenheit;
  }
    get temperature(){
return this.F;

  }
  set temperature(Celsius){
    Celsius=5/9 * (this.F - 32)
  }
}
  /* Alter code above this line */
  return Thermostat;
}
const Thermostat = makeClass();
const thermos = new Thermostat(76); // setting in Fahrenheit scale
let temp = thermos.temperature; // 24.44 in C
thermos.temperature = 26;
temp = thermos.temperature; // 26 in C
Anyone, please review this.
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object/
Shubham soni
@shubhamsoni2617
Jun 06 2018 10:56
The test passes every time, even if I make a lot of changes in the set function. Not sure if this one is correct or not.
Moisés Man
@moigithub
Jun 06 2018 13:04
@shubhamsoni2617 i think ur set is not correct..
check the example
Shubham soni
@shubhamsoni2617
Jun 06 2018 14:18
@moigithub I am still unable to get it correctly.
Shubham soni
@shubhamsoni2617
Jun 06 2018 14:32
function makeClass() {
  "use strict";
  /* Alter code below this line */
class Thermostat{
  constructor(Fahrenheit){
    this.F=Fahrenheit;
  }
    get temperature(){
return this.F;

  }
  set temperature(C){
this.F = C * 9.0 / 5 + 32
  }
}
  /* Alter code above this line */
  return Thermostat;
}
const Thermostat = makeClass();
const thermos = new Thermostat(76); // setting in Fahrenheit scale
let temp = thermos.temperature; // 24.44 in C
thermos.temperature = 26;
temp = thermos.temperature; // 26 in C
Is this Okay?
Moisés Man
@moigithub
Jun 06 2018 14:36
if u check the last 2 lines...
its using the setter thermos.temperature = 26; to set 26...
and getter temp = thermos.temperature
which return the same number value

...sooo
2 ways u can do

  1. store Fahrenheit value and do convertion in setter and getter to return celsius
  2. store Celsius value (do convertion in constructor) and return whatever u stored

@shubhamsoni2617

Shubham soni
@shubhamsoni2617
Jun 06 2018 15:01

@moigithub

function makeClass() {
  "use strict";
  /* Alter code below this line */
class Thermostat{
  constructor(Fahrenheit){
    this.F=Fahrenheit;
  }
    get temperature(){
return this.F;

  }
  set temperature(C){
return this.F =()=>5/9 * (Fahrenheit - 32);
  }
}
  /* Alter code above this line */
  return Thermostat;
}
const Thermostat = makeClass();
const thermos = new Thermostat(76); // setting in Fahrenheit scale
let temp = thermos.temperature; // 24.44 in C
thermos.temperature = 26;
temp = thermos.temperature; // 26 in C

??

Moisés Man
@moigithub
Jun 06 2018 15:11
get and set should work/return CELSIUS values
@shubhamsoni2617
Christopher McCormack
@cmccormack
Jun 06 2018 15:13
:wave:
Shubham soni
@shubhamsoni2617
Jun 06 2018 15:16
@cmccormack Hey
Jason Luboff
@JLuboff
Jun 06 2018 15:16
@cmccormack Morning
Shubham soni
@shubhamsoni2617
Jun 06 2018 15:16
@moigithub Alright! Thanks for your help.
Christopher McCormack
@cmccormack
Jun 06 2018 15:17
@JLuboff did you try any of the euler/Rosetta projects?
Jason Luboff
@JLuboff
Jun 06 2018 15:18
@cmccormack Only the first problem (multiples of 3 and 5)
Christopher McCormack
@cmccormack
Jun 06 2018 15:18
@JLuboff be sure to save them locally, don't think FCC saves them at all. I ended up doing the first three twice last night (Euler)
Jason Luboff
@JLuboff
Jun 06 2018 15:19
@cmccormack Yup... looks like you're right. Lame.
Christopher McCormack
@cmccormack
Jun 06 2018 15:19
Some of them are confusing because PE had a specific scenario in mind but FCC has different scenarios and the solution doesn't quite match up they are asking for
unless I just don't understand
Jason Luboff
@JLuboff
Jun 06 2018 15:20
FCC hasn't always been the clearest..

Here's my solution for the first one

const multiplesOf3and5 = (number) =>[...Array(number).keys()].filter(e => e % 3 === 0 || e % 5 === 0).reduce((a, b) => a+b)

multiplesOf3and5(100000);

I imagine there is probably a shorter way..but this works

Christopher McCormack
@cmccormack
Jun 06 2018 15:20
nice!
I just did a simple for loop haha
Jason Luboff
@JLuboff
Jun 06 2018 15:22
Haha
I thought you would have gone fancier than me!
Christopher McCormack
@cmccormack
Jun 06 2018 15:24
@JLuboff knock em out first then cleanup :)
const multiplesOf3and5 = (num) => {
  let sum = 0

  for (let i = 3; i < num; i++) {
    if (i % 3 === 0 || i % 5 === 0) {
      sum += i
    }
  }

  return sum
}
easy as it gets
I liked the first rosetta code one you should try that today
@JLuboff isn't .keys going to give you strings? did that still work?
Jason Luboff
@JLuboff
Jun 06 2018 15:28
Mmm.. it works let me check
Christopher McCormack
@cmccormack
Jun 06 2018 15:28
nm it does, neat
Jason Luboff
@JLuboff
Jun 06 2018 15:28
:+1:
Christopher McCormack
@cmccormack
Jun 06 2018 15:29
without .fill it will be all undefined pointers but when you spread it I guess something something I don't get it haha
> Array(10).keys()
{}
> [...Array(10).keys()]
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
I usually use this but yours is shorter
Array(10).fill(0).map((v,i) => i)
Ohh .keys() is an iterator, it doesn't return an Array
so spread operator will iterate over the keys
Jason Luboff
@JLuboff
Jun 06 2018 15:36
I think I learned mine from @forkerino
JJ Megma
@megma_jj_twitter
Jun 06 2018 15:46
@YongweiWu arr.slice(0) is just going to give u the arr again
JJ Megma
@megma_jj_twitter
Jun 06 2018 15:52
@YongweiWu Also you do not want to return the item, the item should just be pushed to the arr
Blauelf
@Blauelf
Jun 06 2018 16:54
@cmccormack I tend to use Array.from({length:10}, (_,i)=>i). Not sure whether it's any more or less efficient.
Christopher McCormack
@cmccormack
Jun 06 2018 17:06
@Blauelf neat didn't know it took a map function as a second argument!
Blauelf
@Blauelf
Jun 06 2018 17:07

@JLuboff There's a faster solution:

const multiplesOf3and5 = (number) => (--number - number % 3) * (number - number % 3 + 3) / 6 // -- because of < instead of <=
                                   + (number - number % 5) * (number - number % 5 + 5) / 10
                                   - (number - number % 15) * (number - number % 15 + 15) / 30);

O(1) :D

Blauelf
@Blauelf
Jun 06 2018 17:18
Oh, rogue ) at the end. Cannot edit on mobile.
Christopher McCormack
@cmccormack
Jun 06 2018 17:22
@Blauelf I now make it a point not to use algebraic solutions for these problems, but I do like to read up on them after submitting the solution. It's interesting, but doesn't really require any programming
Christopher McCormack
@cmccormack
Jun 06 2018 17:27
@Blauelf that said this is fascinating, thank you for sharing
Jason Luboff
@JLuboff
Jun 06 2018 17:48
@Blauelf I am super lost on that solution haha
IsmailHusseinCR
@IsmailHusseinCR
Jun 06 2018 18:33
hi guys do u also help with some typescript errors ?
class Game {

    private cells : NodeList;
    public  board : Array<number>;
    private huPlayer: Human 
    private aiPlayer : AI; 
    private combos : any;

    constructor() {
        this.board = new Array(9);
        this.huPlayer = new Human('O')
        this.aiPlayer = new AI('X')

        this.cells = document.querySelectorAll('.cell');
        this.combos = [
            [0,1,2],
            [3,4,5],
            [6,7,8],
            [0,3,6],
            [1,4,7],
            [2,5,8],
            [0,4,8],
            [6,4,2]
        ]
        this.StartGame();
    }

  private StartGame() {
     // document.querySelector(".endgame").style.display = "none";

      for (let index = 0; index < this.cells.length; index++) {
        this.board = Array.from(Array(9).keys()); 
          this.cells[index].innerText = '';
          this.cells[index].style.removeProperty('background-color');
          this.cells[index].addEventListener('click', this.turnClick,false)     
      }
  }

  private turnClick(square : Event ) : void {
      console.log(square.target.id);
      this.turn(square.target.id, this.huPlayer)
  }



  private turn(squareID : any , player : any) : void {
      this.board[squareID] = player;
      document.getElementById(squareID).innerText = player

  }
when i compile i get an error that says turn is not a function :worried:
Brad
@bradtaniguchi
Jun 06 2018 18:39
@IsmailHusseinCR Looks good to me, have you restarted the server incase typescript got tripped up and your using a dev server or something?
IsmailHusseinCR
@IsmailHusseinCR
Jun 06 2018 18:42
@bradtaniguchi hmm i restarted my localhost server and tried to tsc build again
still get Uncaught TypeError: this.turn is not a function
at HTMLTableCellElement.turnClick
Brad
@bradtaniguchi
Jun 06 2018 18:42
oohhh
thats different hehe

Maybe try todo

this.cells[index].addEventListener('click', this.turnClick.bind(this),false)

since I think the addEventListener changes the this or something. But this doesn't sound like a typescript error, but a JS one

IsmailHusseinCR
@IsmailHusseinCR
Jun 06 2018 18:44
ohhhhh thats true
Woww thanks @bradtaniguchi its resolved
Brad
@bradtaniguchi
Jun 06 2018 18:45
np, now the this in the callback for eventListener pertains to your class as expected :D
Nate Mallison
@NJM8
Jun 06 2018 19:07
Hey I'm nearing completion of the Voting App, if anyone has time to check it out and give me some feed back I would appreciate it! https://natethedev-votingappfrontend.herokuapp.com
Brad
@bradtaniguchi
Jun 06 2018 19:18
@NJM8 Can you make the animations go the other way when going from a link on the right to a link to the left? (if that makes any sense)
also id make the entire card clickable for each poll, clicking on the see-poll button seems like a small target hehe
Nate Mallison
@NJM8
Jun 06 2018 19:20
@bradtaniguchi thanks, good idea on the button, I'm not sure about the animations, I mean sure it can be but how hard will it be, haha
Brad
@bradtaniguchi
Jun 06 2018 19:21
idk, i was reading an artcile on medium about it, so seems non-trivial haha
Nate Mallison
@NJM8
Jun 06 2018 19:21
yeah i did it on my wikipedia app
but this is a Vue app
so just gotta figure it out
Brad
@bradtaniguchi
Jun 06 2018 19:22
yea, that would be a cool enhancement :D
Nate Mallison
@NJM8
Jun 06 2018 19:22
check it out on my wikipedia app in my portfolio, all vanilla. :smile:
vue can do some really cool animations pretty easily, I'm just not good at them
Brad
@bradtaniguchi
Jun 06 2018 19:24
yea haha,
Jason Luboff
@JLuboff
Jun 06 2018 19:25
@NJM8 I'll check it out in a bit
Brad
@bradtaniguchi
Jun 06 2018 19:48
I was only my lunch break hehe
Brad
@bradtaniguchi
Jun 06 2018 20:01
damn the moment you relize you must refactor your approach :/
Blauelf
@Blauelf
Jun 06 2018 20:07
@JLuboff It's essentially calculating the numbers divisible by 3, 5, 15, and applies the sum formula to all of them. i=1nki=ki=1ni=kn(n+1)2\sum_{i=1}^{n}k\cdot i=k\cdot\sum_{i=1}^{n}i=k\cdot\frac{n(n+1)}{2}. The numbers divisible by 15 are subtracted because I accidentally counted them twice.
Brad
@bradtaniguchi
Jun 06 2018 20:23
whoa, howd you type out formulas? @Blauelf
1/21/2
awesome :sunglasses:
Jason Luboff
@JLuboff
Jun 06 2018 20:42
@Blauelf Fancy. Once upon a time I knew some Math...
Jason Luboff
@JLuboff
Jun 06 2018 21:05
@NJM8 Couple of issues..
  1. I click on See Polls and it just has a selector to choose by user, but there's no users?
  2. I try and sign up..and nothing happens. Can't sign up. Here's the console error:
    Error
    ​
    columnNumber: 151615config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
    ​
    fileName: "https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js"lineNumber: 12message: "Request failed with status code 500"request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
    ​
    response: Object { data: {…}, status: 500, statusText: "Internal Server Error", … }
    ​
    stack: "FtD3/e.exports@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:12:151615\n21It/e.exports@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:6:31989\n7GwW/e.exports/</f[m]@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:12:91445\n"__proto__: Object { … }
    Stack trace:
    FtD3/e.exports@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:12:151615
    21It/e.exports@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:6:31989
    7GwW/e.exports/</f[m]@https://natethedev-votingappfrontend.herokuapp.com/static/js/vendor.4a9270402339af3b609a.js:12:91445
Christopher McCormack
@cmccormack
Jun 06 2018 21:52
I'm getting the same
Jason Luboff
@JLuboff
Jun 06 2018 21:54
@cmccormack Good work
Christopher McCormack
@cmccormack
Jun 06 2018 21:55
@JLuboff :angry:
Jason Luboff
@JLuboff
Jun 06 2018 21:55
:joy:
Christopher McCormack
@cmccormack
Jun 06 2018 21:55
I truly am an idiot. so much time with these auth methods and I still keep forgetting what to do
spent over an hour trying to figure out why req.user was undefined, forgot to actually pass the cookie when I did my fetch
PS - fetch requires that explicitly
fetch("/some-path", {
     method: "GET",
     credentials: "include",
   }
 ).then(res => res.json())
Jason Luboff
@JLuboff
Jun 06 2018 21:57
is that.. on the backend?
Blauelf
@Blauelf
Jun 06 2018 21:57
@bradtaniguchi KaTeX\KaTeX :)
Christopher McCormack
@cmccormack
Jun 06 2018 21:58
@JLuboff nah frontend - so my React app can check for auth or whatever
Jason Luboff
@JLuboff
Jun 06 2018 21:58
Oh.. I'm used to just sending that info to the front end from the backend via template engine
Christopher McCormack
@cmccormack
Jun 06 2018 21:59
I'm testing it out using async/await as well, seems to work well and pretty easy:
  handleValidateAuth = async () => {
    const {isauth,} = await fetch(
      "/isauth",
      {
        method: "GET",
        credentials: "include",
      }
    ).then(res => res.json())

    this.setState({
      loggedIn: isauth,
    })
  }
@JLuboff yea that would be a bit easier haha
Jason Luboff
@JLuboff
Jun 06 2018 22:00
It is quite easy haha
I'm working on creating my SQL file that will be used to create my database, tables, and necessary data for my work project (I have one currently...but my database has evolved so making a nice clean file that I can hit execute and it'll do everything!)
Christopher McCormack
@cmccormack
Jun 06 2018 22:02
@JLuboff sounds great
like a make file?
Jason Luboff
@JLuboff
Jun 06 2018 22:02
..Sure? haha
Christopher McCormack
@cmccormack
Jun 06 2018 22:04
whatever makes things simple and requires less human-involvement is great
Jason Luboff
@JLuboff
Jun 06 2018 22:05
Yup. Figure this will make that portion of moving from dev to prod quicker/easier
Christopher McCormack
@cmccormack
Jun 06 2018 22:08
@JLuboff next thing you know you'll be pushing containers to Kubernetes!
Jason Luboff
@JLuboff
Jun 06 2018 22:16
@cmccormack I had to look up what kubernetes is...and I still don't know hah
Christopher McCormack
@cmccormack
Jun 06 2018 22:16
@JLuboff yeah it's a different design than we're used to as non-full time developers I think
Brad
@bradtaniguchi
Jun 06 2018 22:17
that stuff is magic yo
Jason Luboff
@JLuboff
Jun 06 2018 22:26
magic is magic yo
You ever been to magic shop? Shits fucking magic bro
Went to one in Monterey. The dude was toying with me
Brad
@bradtaniguchi
Jun 06 2018 22:27
my code right now feels like magic.... I'm basically dealing with the tree in the forrest falling over, sound riddle thing
but in code form, and with the observer pattern :worried:
Jason Luboff
@JLuboff
Jun 06 2018 22:29
I'm writing SQL code..if that makes you feel any better
Brad
@bradtaniguchi
Jun 06 2018 22:29
would you believe me if I found the issue and it was the lack of a return statement????
ffff that wasn't the issue anyways :/
it was the lack of TWO RETURN STATEMENTS
Jason Luboff
@JLuboff
Jun 06 2018 22:33
Don't forget to return something homie
Brad
@bradtaniguchi
Jun 06 2018 22:35
my functions are like 80% comments after so much refactoring ug
Jason Luboff
@JLuboff
Jun 06 2018 22:36
....my code isn't commented.. except for a little bit here and there
I should probably do so before going production I guess
Brad
@bradtaniguchi
Jun 06 2018 22:37
I commented out my older code, I leave it until things are working, but stuff wasn't working bah
I comment my code pretty heavily, if its critical/complex stuff
Jason Luboff
@JLuboff
Jun 06 2018 22:40
I'll comment more often either to refactor (i.e comment out all code until I know new code works) or leave a comment for the next day so I remember
Brad
@bradtaniguchi
Jun 06 2018 22:42
I used to comment pretty much everything, but then I liked uncle bobs advice that is ends up lying if it isn't updated
Jason Luboff
@JLuboff
Jun 06 2018 22:44
Uncle bob?
Christopher McCormack
@cmccormack
Jun 06 2018 22:45
I just assume my code comments itself
I probably am wrong
Jason Luboff
@JLuboff
Jun 06 2018 22:48
aH
Brad
@bradtaniguchi
Jun 06 2018 22:51
man I feel like I just remade redux by hand -_-
Jason Luboff
@JLuboff
Jun 06 2018 22:53
Errr... My sql code worked...but...my query is taking forever for a table that should only have~45 rows...somethings not right
Oh! I think I know why
..Helps if you close the Transactions :joy:
Brad
@bradtaniguchi
Jun 06 2018 22:56
Man idk why my other stuff isn't working :_(
This is so close to becoming a nightmare...
Yea I just realized I basically have ghetto Redux going on right now :/ geezus
Jason Luboff
@JLuboff
Jun 06 2018 23:03
Now you can contribute to redux!
Brad
@bradtaniguchi
Jun 06 2018 23:04
ive never even used redux, but it sure feels like i have XD
Jason Luboff
@JLuboff
Jun 06 2018 23:09
300 lines later...think I have my database creation script done...
Brad
@bradtaniguchi
Jun 06 2018 23:09
:+1: nice :D
Im debating if I should setup tests on the code I THINK is responsible for the issues, or just keep debugging the entire thin
Jason Luboff
@JLuboff
Jun 06 2018 23:10
If you know how to setup tests...do that.
Brad
@bradtaniguchi
Jun 06 2018 23:10
thats the thing I'm really unsure about testing it, since I'm more or less testing promises
Jason Luboff
@JLuboff
Jun 06 2018 23:11
Mmm... ya I wish I knew more about testing so I could respond to that. :joy:
Brad
@bradtaniguchi
Jun 06 2018 23:12
I think it comes down to i'm not really sure how my code works XD
Jason Luboff
@JLuboff
Jun 06 2018 23:12
The truest words a programmer ever spoke
Brad
@bradtaniguchi
Jun 06 2018 23:14
Oh shit I think I figured out where things are going wrong...
I didn't unflip an if statement during my refactor....
I now proceed to walk outside so I don't go insanne, I'm not even going to check if everything else works at this point]
Jason Luboff
@JLuboff
Jun 06 2018 23:19
haha
@bradtaniguchi Hey let me get your opinion on something... would you be more inclined to include information in a session or in a url (as a parameter/query) for an internal web app?
Brad
@bradtaniguchi
Jun 06 2018 23:21
depends what kind of info we are talking about
Jason Luboff
@JLuboff
Jun 06 2018 23:22
Nothing confidential. Just request numbers, location ids, person ids (database stuff essentially)
Brad
@bradtaniguchi
Jun 06 2018 23:23
Id usually stick with putting that information into the route itself, unless were talking about what the user IS, then put that in the session. Not sure if I understand the situation correctly tho
Jason Luboff
@JLuboff
Jun 06 2018 23:24
Nah that pretty much answers it. I'm throwing everything in my routes and it works..but was debating switching to sessions but I don't think its really necessary
Brad
@bradtaniguchi
Jun 06 2018 23:25
Id keep the user's info in the session, but that's about it. Otherwise your saying if the user is looking at record A, keep that info in the session? I dislike that
Jason Luboff
@JLuboff
Jun 06 2018 23:26
I end up checking the user info on each necessary route through middleware (make sure the user is authorized that way). So ya I'll leave it as is. Thanks
Brad
@bradtaniguchi
Jun 06 2018 23:27
yea that sounds good, and np :D
Christopher McCormack
@cmccormack
Jun 06 2018 23:27
I didn't read any of the above conversation but I firmly disagree!
Brad
@bradtaniguchi
Jun 06 2018 23:28
Omg finally back to square one in terms of functionality before I started the refactor, now let me see if my changes actualy fixed the original issue
Jason Luboff
@JLuboff
Jun 06 2018 23:28
@cmccormack Thats becuase you don't like me
Even though we're Facebook friends...which I mean..is kind of a big deal
Brad
@bradtaniguchi
Jun 06 2018 23:29
fuck, it did not. Good think I'm working from home today i feel like throwing shit :smile:
Christopher McCormack
@cmccormack
Jun 06 2018 23:30
Buy me a beer and we'll talk it out :)
Jason Luboff
@JLuboff
Jun 06 2018 23:30
What kind of beer?
Christopher McCormack
@cmccormack
Jun 06 2018 23:30
@bradtaniguchi throw it anyway! Catharsis!
@JLuboff I've been drinking 805 lately, that's from your neck of the woods aint it?
Jason Luboff
@JLuboff
Jun 06 2018 23:32
I do live in that area code, yes. Although.. If I remember right.. it's not brewed here (but is brewed in california)
Christopher McCormack
@cmccormack
Jun 06 2018 23:33
it's a decent beer, calms the nerves after a long day :D
Jason Luboff
@JLuboff
Jun 06 2018 23:35
I've never tried it hah
Christopher McCormack
@cmccormack
Jun 06 2018 23:36
It's fairly light but with a bit more flavor
Pick up some on the way home for the wife
Jason Luboff
@JLuboff
Jun 06 2018 23:37
She can't drink brah
Brad
@bradtaniguchi
Jun 06 2018 23:37
neither can I, must be why I'm so high strung :P
Christopher McCormack
@cmccormack
Jun 06 2018 23:37
For baby reasons?
Jason Luboff
@JLuboff
Jun 06 2018 23:37
Ya, still breast feeding
Christopher McCormack
@cmccormack
Jun 06 2018 23:38
man that stinks
Jason Luboff
@JLuboff
Jun 06 2018 23:38
I mean...technically she could right after a feeding but she doesn't feel comfortable doing so
Christopher McCormack
@cmccormack
Jun 06 2018 23:38
having babies is like rehab
Jason Luboff
@JLuboff
Jun 06 2018 23:38
haha
It does take some will power
Christopher McCormack
@cmccormack
Jun 06 2018 23:44
Well i'm off to do what @JLuboff wife can't :) have a good night!
Jason Luboff
@JLuboff
Jun 06 2018 23:45
@cmccormack See ya