« first day (2679 days earlier)      last day (2284 days later) » 

6:00 PM
especially when you have disposers and handled/unhandled errors or runtime errors or all the nonsense Java does
 
The best part of being a STEM major is watching the other kids struggle for jobs and then complain that the market is ruined
 
Yeah, if you failed to unlink the lockfile, the next time something runs it'll fail because there's a lockfile
That's something that needs actual handling.
You can't really ignore it.
 
@MadaraUchiha how about you implement a using method
 
@Mosho That exists/existed in Bluebird
 
My girlfriend's a stem major struggling to find a job
 
6:01 PM
Promise.using()
 
major with honors even
 
It was awkward to use.
 
has published research
 
At least, last I checked.
 
using needs language support, I think
has to be a block of its own
 
6:02 PM
like a function?
 
@SterlingArcher my brother is a UPS driver, wants' a new career. I told him to learn programming. "Rob, no one is going to hire a 34 year old new programmer"
uhhhhhhh
 
you can implement almost anything as a userland function, it just sucks
 
yeah
I guess so
 
@Mosho Extra level of indentation, need to forward throws and returns
 
I actually have a try/catch/finally wrapper much like that for my tests
uses the async hooks to keep track of all resources and fail the test if any leak
 
6:03 PM
there's plenty of companies hiring low experience devs, you just have to pretend to not be low experience
 
It would still stuck, although possibly less than a nested try/finally/try/catch block
 
but again, it sucks compared to just having a try (...) { ... } block
 
tell them you know fizzbuzz, bam, instant job
 
"It's been a hobby for 10 years, now I want to make it a career"
 
"my brother is a programmer and I know his twitter handle"
#hired
 
6:04 PM
> Hired
 
brogrammer
 
hoegrammer
 
@SterlingArcher "lemmy just snap off my nails before I do this"
 
You're good until they ask you to implement a b+ tree on the whiteboard
"I didn't realize we programmed on whiteboards here, maybe this place isn't for me"
 
if they ask you to implement anything on a whiteboard, walk out
 
6:05 PM
what is a b+ tree
 
chat.stackoverflow.com/transcript/message/41268922#41268922 So basically for that MVCE, an example of it working in plain JS is right here: codepen.io/michaelrwiley/pen/JpOdaJ I'm guessing react is messing with the scoping. I don't need someone to tell me the issue, but I don't even know how to diagnose it.
 
A tree that's still a disappointment to its parents
2
 
I don't even know. I think it's a modified binary tree
 
@KevinB 80%
 
funky self balancing tree
 
6:06 PM
if they even own whiteboards, as a company, leave
 
and why would i need to know how to implement one on the spot
 
don't work for any organization that biased
 
@Cereal n-ary
 
I was following data structures until red black trees or whatever they're called
 
By the way, thank you everyone for the birthday wishes. I greatly appreciated them.
 
6:07 PM
For some reason it just confused me and I subsequently failed that class
 
wait wat? benadryl slumbertoes was the voice of Sauron in the Hobbit
TIL
 
You mean smaug?
 
git status
 
all good, you just pushed
throw your laptop out the window, you won't lose any work
 
6:08 PM
@KevinB because you get asked to in an interview
 
@Vap0r can you show me the non-react verion? mine does the same thing (not much)
 
If i were asked that at an interview, i would know that the job wasn't for me
 
@hilli_micha hide in the shower
 
6:09 PM
Huh
 
he obviously won't follow you
 
@Luggage if I had to guess, the minified/uglified script they load in is expecting a certain type of scope that react obscures?
 
I'm pretty sure he'd melt if he was clean.
 
@KevinB SV companies ask it
because it normalizes candidates
 
what's SV?
 
6:10 PM
silicon valley
 
Water is proprietary and egregious, I do not use it.
 
i mean... i wasn't asked that by linkedin
 
not companies known for responsible, reasonable, or useful hiring practices
 
or anything similar
 
you get asked DS&A stuff by google, facebook, MS etc.
 
6:10 PM
> You must have 3 degrees, be under 21, and be able to implement a B+ tree with your toes while sleeping in our "pods" (that's what we call offices here)
 
at most they asked how to extend a javascript class, and other similar questions around javascript prototypes
 
> No pay, only stock options. We're the next Apple here.
 
i didn't understand the terminology they used to ask it, but after clarified i had no problems
 
general algorithm questions are definitely a red flag in interviews
 
I don't have a CS background, so terminology is often lost on me
 
6:11 PM
@Cereal yea I had no idea he was Sauron
 
if they can't come up with questions relevant to their product, do they really have one?
 
but man, that speaking backwards shit is brilliant
 
@ssube that's what google asks
it's not about the product
 
@rlemon wut?
 
it's not about anything useful
 
6:12 PM
it works for them
with the amount of candidates they have to sift through
 
@MadaraUchiha beepbop cucumber recorded his lines backwards and they played them forwards to give the disembodied feel to the voice.
 
lol, no, having innumerable candidates and being able to try most of them works for them
 
Oh my god that's amazing
 
@Vap0r jsfiddle.net/etu253zd change the load type. when it's in a <script> it works, when onLoad() it does not
 
@ssube they do filter candidates using general algorithm questions
 
6:14 PM
I think that script waits for the loaded event, but int he react version that already passed
 
@Luggage I can simulate the loaded event right? I just feel like that might invoke functions I don't intend to invoke
 
it might...
 
I could throw the whole thing in an iframe but that comes with it's own host of issues, since the third parameter to the immediately invoked function is the search container, which needs to be outside of the iframe
 
thinking
 
mmmmk I've been spinning my wheels for about a day now trying different stuff. Thanks.
 
6:19 PM
@KendallFrey christ, I almost forgot what default textures look like i.imgur.com/vzfE8tk.png
 
that's such a nice station :(
 
it's okay
 
you're okay
 
are you okay?
 
@Vap0r I'm going to guess pbk needs to be global
for that script to find it
 
6:23 PM
@Mosho yeah I saw all the global.pbk stuff inside the uglified script, but I can't attach a variable to global scope in react, can I?
 
you can do whatever you want
 
Can't you add it to the initial state?
 
it's JS
 
e.run = function(t) {
    y(t), k.serverSide || "complete" === t.document.readyState ? f() : t.addEventListener("load", f)
}
this looks like it should handle the differnt load orders ok..
 
@Mosho I thought react was automatically in strict mode, so I wouldn't be able to access global variables?
 
6:25 PM
ohh, yuea, it was as simple as making pkb global
 
@Vap0r Why would it?
 
@Vap0r what does it have to do with strict mode
 
The insides of react maybe, but why would your code be in strict mode if you hadn't put it in strict mode?
 
@MadaraUchiha ok then it was just a misunderstanding on my part
 
@Vap0r there is always an "object" that is the global context in JS. In the browser it is ...
think of the most base object there is
 
6:26 PM
window?
 
bingo
 
lol
 
@Luggage {are:'belong to us'}
 
I could've sworn I tried that. It worked in the codesandbox I presented?
 
yea. at least stuff showed up. I didn't test exhautively
 
6:27 PM
My potatoes at lunch tasted like fish
 
the ndugger potato special
i am not a fish
 
const your = {};

your.bases = [{belongsTo: 'us'},{belongsTo: 'us'},{belongsTo: 'us'}];
 
@rlemon wash your dishes
 
  componentDidMount() {
    window.pbk = {};
    (function (u, k, m) {
      var d = document, h = d.getElementsByTagName('head')[0], l = d.createElement('link')
        , s = d.createElement('script'), t = window.pbk.settings = window.pbk.settings || {};
      u = '//' + u + '/ehi-pbk.'; l.href = u + 'css'; s.src = u + 'js'; l.rel = 'stylesheet';
      s.async = !0; t.kicker = k; typeof m == 'string' ? t.contentContainer = m : t.modal = !!m;
      h.appendChild(l); h.appendChild(s)
    })("pbk.partnerbookingkit.com/testtest", "#car_rental_search", "#car_rental_content")
 
I went to Boston Pizza
 
6:29 PM
@Luggage I tried and it didn't seem to work. I just changed all references to pbk to be window.pbk
 
Why did you buy a potato at a pizza place
 
to eat potatoes?
 
they sell more than pizza
 
you went full potato
 
I had steak and potatoes
steak was okay. not great
potatoes tasted like fish
 
6:30 PM
probably rubbed with some fish at some point
 
they sell fish, so that's probably correct
 
var ppk = window.pbk = {};
or just window.pbk = {}
 
with(window) { pbk = {} }
 
Can you save your codesandbox and send it? We must have some other difference because I've done that
 
don't listen to lemon
 
6:31 PM
ohh no
 
@Luggage lol I know
 
dammit
don't make me the new towc
 
someone has to be
 
next youngest
 
6:32 PM
Only for 49 minutes
 
@Luggage ...
You mispelled pbk ppk
 
oops
 
If you fix it the code stops working...
 
cool, cool
 
I'm so unbelievably confused
 
6:34 PM
yours works now
 
this tylenol has some next level child proofing
 
i clicked your old link
 
where is my hammer
 
@Luggage wait this is not real or did I just reserve a Kia Soul
 
got me
 
6:35 PM
@Luggage so I'm guessing the script checks for the existence of the t var, and if it's not there checks window for it. At any rate thanks man.
 
should pbk be defined before line 14?
because it is.
 
well, it looks for "pbk" and when not found locally, find it on window
 
(I just got here)
 
my mispelled version still spelled it right on window, so that's why it worked
 
@Luggage locally?
 
6:37 PM
with(rlemon) { pbk.help = "late" }
 
locally = the current context
 
hey, I was eating fishy potatoes
    console.log(pbk);/// huh? { settings: .. }
    var ppk = window.pbk = {};
 
@Luggage current context of what
 
@rlemon that's because the console is showing you the altered object
 
the script is added to the head
 
6:37 PM
Basically it's showing you what has happened to the object since it was console logged
 
yea. and in the orignal code it was just pbk = {}, which is window
 
only if expanded.
 
In chrome there should be a little "i" infoglyph talking about it
 
vapor made it var pkb = {}, so no more global variable that it needed
 
@Luggage yeah, so what's local
 
6:38 PM
It was confusing for a second when I first saw it
 
@Vap0r yea to see the new state, but the preview shouldn't have the props
 
@Mosho the scope of the executing code. keep up
 
before expension that should be empty or Object(..) or w.e
unless that was a recent change to make them always live even before expansion
 
@rlemon no questions it works now
5th
 
> well, it looks for "pbk" and when not found locally, find it on window
what is "it"
 
6:39 PM
in his code, it's in a function.
 
VSCode freaks out if you rm -rf node_modules && npm i
 
@Luggage by "it" you mean the scope resolution inside that function?
 
I was describing why my misspelled variable didn't matter and it found the correct one on window.
 
I want cake
 
@Vap0r see
 
6:41 PM
I thought you meant the appended script
 
once expended you'll see it, but the original logged object isn't live until expanded
 
@rlemon maybe I wasn't clear... 5th
 
no, that's still not clear
 
I'm pleading the 5th
It's my right as a netizen
 
@SterlingArcher i.imgur.com/5HTkZd6.jpg
 
6:47 PM
@rlemon that's an accurate description of him but, like, harsh, dude
 
regex help needed. i have a (url) string that looks like this: /config/users/:userId/edit/otherstuffafterthis. i need to use regex to extract userId out of the string. how can i do this?
 
@ssube :D
@im1dermike is it always the third position?
 
yes. the string is always the same with the exception of the otherstuffafterthis part
 
@im1dermike If at all possible, use a decent router. If not, /:\w+/
 
!!> '/config/users/:userId/edit/otherstuffafterthis.'.split('/')[3]
 
6:48 PM
@rlemon ":userId"
 
@rlemon btw do you keep up with Zach from the HTML/CSS room?
 
no
 
well, he got engaged a week or two ago
 
orly
 
@KendallFrey this is in a react-redux app and, unfortunately, i can't seem to be able to use react-router (specifically the equivalent to this.props.match.params) outside of a component.
 
6:49 PM
didn't even know he had a girl
 
mhm
 
well good for him
 
they've been dating for around a year or a little less
lol
just figured I would share as I know many of the folks from here used to be regs there
 
@rlemon who said he does?
 
he's a man of faith.
 
6:50 PM
still doesn't mean he's straight
 
yes it does
 
@KendallFrey depends on the faith
in some it very much does
 
At most, it means he at least pretends
 
I don't agree with his faith, but I have a lot of respect for his self control in following it as well as he has
@KendallFrey onshape needs a desktop app. chrome can't handle the memory
and I'm convinced, without any evidence, it's chromes fault.
 
opera?
 
6:52 PM
the desktop app (if one existed) is jsut electron, so.. chrome
 
if there was a desktop app, it'd just be electron anyway
 
user1596138
Use Edge
 
@KendallFrey vivaldi
 
lol
 
It needs a cheaper license.
 
6:53 PM
seems like it wouldn't be too bad to write it in Qt
 
I don't need any private documents, but one day I might want one, and I'll have to go learn a whole new peice of software
 
nothing is too bad in Qt, but it's also not super easy
 
no, but converting an existing webapp to qml in theory should be easier
 
so it'll be the same only now shitty qt app
 
@rlemon why do you think it's chrome
 
6:56 PM
I have a couple apps installed that are qt wrapped web apps. They are like real web apps only they can't handle high dpi. some are blurry, some are offset so I click BELOW buttons to use them
 
V8 is pretty good
 
No thanks.
 
I would blame their app before I blame chrome
 
ohh yea, because chrome has a history of not raping my memory
don't get me wrong. Love chrome. won't use anything else for personal use.
 
4kb is enough for chrome
 
6:56 PM
but it hogs memory
 
it hogs memory for it's processes
tabs/extensions
lots of overhead
 
I'm aware of how it works. doesn't mean it isn't still a problem
 
get more memory
 
some overhead, but it also hogs memory in each of those
 
but if the app memory usage doesn't scale
it's probably the app
 
6:57 PM
32 gb is the new minimum
 
yep, I'm shopping for a 64GB kit atm
 
I need to upgrade to 32
 
@Luggage Memory is really expensive right now
 
I paid $285 for 32 gb for my laptop in mid-late 2017
 
shit
 
6:59 PM
haven't watched prices since then
 
that sounds expensive
 
there's a huge cliff around 3000mhz, too
 

« first day (2679 days earlier)      last day (2284 days later) »