« first day (3223 days earlier)      last day (1950 days later) » 
00:00 - 16:0016:00 - 00:00

16:01
The transitions, colors, animations, etc is just all perfect here cssgradient.io/gradient-backgrounds -- some guy had too much time on his hands
too slow
user9655385
@ndugger I miss working with overly biased, opinionated code. You can do whatever you want on a 3 man team
hi, why does $('#formId').submit(); not work but $("form")[0].submit(); works even if the id is right?
is submit a method on a jQuery object?
What do you mean by "work" and "not work"?
what is the "working" condition?
16:04
well the submit is not executed
the submit event?
yes
i have another script
what is the event handler?
with
$('#formId').on('submit', function (event) {
event.preventDefault();
$("form")[0].submit() bypasses the event handler
16:05
oh
entirely ignores it
okok
that makes sense
its a way of forcing the submit then?
alright thanks :)
it's a way of triggering the submit action without triggering bound events. so you can prevent default action on submit by user, perform an ajax call or whatever, and then trigger the submit action after it is complete, etc
16:06
@tahtoh just a heads up, if you're doing a personal project or something like that, jQuery is a bit like latin... dead in the modern world. I would recommend you start moving away from it, especially if you're just learning now
stackoverflow still uses it
its on a corporation project
on personal ones i dont actually use it
thanks anyways @KevinB
That's fair then
even on new stuff apparently
@KevinB just because someone else uses something doesn't mean you should too. I think Russia still uses sarin gas.
16:08
you claimed it was dead
you're wrong
:)
no u
I still use cobol
If I want to be extremely pedantic, I did say it was "a bit like latin". It's definitely dying
cfml
(besides, knowing the people in charge of SO, using them as an example of doing anything "the right way" would be dishonest)
I'm totally not bitter, you guys
16:12
I'm still not convinced about frontend frameworks at all
My reservations all stem from HTML/CSS being a really clunky solution. If the underlying tech made more sense, then I feel like frameworks built on top of it would feel nicer too
See, composition is just the correct way to build user interfaces. HTML doesn't lend itself well to that, and neither does your traditional pre-processor server-side shit.

But at the same time, 80% of the web pages are still static. Why are we drawing them on the client?
I want to be able to design my site compositionally on the server-side and enhance it piecemeal with javascript
The problem with that is losing state on page changes
You can actually export svelte components to just plain js, so that might work in that sense. Then you just mount them like any other jsl ibrary (new MahDatePicker({ mount: body }) or whatever
Using turbolinks for page transitions would maintain client side state I think
but at this point you're just mashing technologies together
hence why I'm still using frontend frameworks :D
I think styling things at a component level is also really important
The github guys have a component pattern for rails that they started making pull requests for into rails core, but that's only 1 piece
Pretty sure ruby is dead like jquery too
16:18
Only to people who don't use it
Everyone moved to js and go, they'll move to something else in a few years
Which is the majority. Ruby was at its peak like 6 years ago. It never really gained widespread adoption. I've seen far less and less job openings for it
I hope people will actually move away from JS and that it's not just a pipe dream
the only cfml ones i've seen were for moving away from cfml
A lot of big sites are on rails, because they showed up when rails was popular
Bruh... you can write C# for the web now... Just gotta get devs to buy into the idea of compiling their code lol
Just like any new sites now will be react
But it's tiring chasing the popular thing
16:20
i think react is an awful tool for building your traditionally static sites
@KevinB react it god awful for forms
@ndugger well, cough babel cough
cough ts cough
My last project was in meteor :D
cough any webpack/gulp cough
Svelte frontend
I was pretty happy with it. Couldn't get ssr working though
16:21
@towc but have you tried compiling a large project in C++? It takes a while. The longest I've ever seen webpack (with babel or ts) take was like 30 seconds
and that was with source maps
we tried ssr with node/react, ended up just building a module system in coldfusion
well, only the first time it takes a while, usually, right?
Probably depends on your compiler
C++'s header files was a big reason for it taking forever, so I'm hoping modules helps with that
16:22
@Cereal they have a funny choice of code style, I'll give you that
but I think it can look quite nice
@KevinB It's always faster/better in whatever you're familiar with :D
@towc I really like the idea. I hate the code style
Might learn it there for my next project
like, the headache of debugging why something displayed incorrectly when you've got both ssr and client-side rendering going on, paired with the fact that it's a huge site and moving it all to react would be a massive project, just not worth it
the latter being the bigger problem
rewriting is never worth it
@Cereal is that a fact?
I disagree with that sentiment
16:24
No, there are cases where you need to
We're rewriting a powerbasic program right now becuase the client needs something that isn't possible to do with the implementation
look at how civil we are being
this is nice
<3
the coldfusion performs very well, even at high traffic. We were having trouble getting node.js to compete, but that's likely more due to my familiarity with coldfusion vs node.js
I'll re-write personal projects to learn frameworks or languages
@towc don't forget there was the Civil War
badum tish
ohai
@Cereal I've been learning R. It has web related stuff too, it's quite nice
it's similar to js in many ways (good lambdas, JIT (extremely J. It compiles as it runs), flowy syntax, RAM hog, ...), and it's lovely to see another point of view
16:27
@ndugger I asked if Ember was the framework being used at current employer
and current employer is public info on said users linkedin
I do every personal project I do in a different language, or framework. Keeps it fun
that's what went down..
I think everyone should be forced to learn C++ and how to manage pointers before they're allowed to write higher level code.
as said user pretended to be someone brand new.. but they had used that account before as a troll account lol.
I don't care what happened
Just not interested
16:28
@ndugger I just implemented a linked list in cobol today
the funny thing was the attempt at broken English
It's petty
*pretty
is user jay-jay?
16:29
Not having a garbage collector fucked up my life
for the good
@ndugger I hate C and co
Segmentation Faults are basically "You're a terrible programmer, figure it out bud"
@ndugger you talk to your boss about getting interesting projects yet?
Maybe you can tell them you want to write c++
still at target?
Target doesn't do C++
I think they do a tiny bit in their california office, but I hear they don't pay competitively there, and I also wouldn't want to live in shitty california, lol
I have my one-on-one with my new boss tomorrow, so I'll mention something about it then
I had created a library in C++ that was basically multithreaded observables, and the amount of segfaults I had to fix was insane. Especially because of the nature of threading, I sometimes got the errors, sometimes I didn't
Had to learn all about locks and things like that
Lots of super painful evenings yelling at the debugger
But damn was it fun
"ndugger yelling at the debugger" should be a rap song
16:40
Never become a rapper
o/
user8729657
17:02
Why @KendallFrey
if you do, you have less time to complain about people becoming rappers
user8729657
@towc, don't worry I like that bar you dropped. I might have to drop a few my self
I'm not sure I follow
He's trying to sound cool
user8729657
17:30
lool
Sam
Sam
19:57
Any of you guys know how to scale up a path inside an SVG to fit its parent? I've made a minimal example here.. codesandbox.io/s/romantic-thunder-i8ix1?fontsize=14, you can see that the star object is tiny compared to its parent
20:10
wtf is jhipster?
spring + angular/react
ew
more like jshitster
0
Q: "jhipster gae" deploys the backend, but not the Angular side

GreatCodeOnce the jhipster app is deployed to GCP the web site says: An error has occurred :-(. It is the error you get when you run "mvnw", but not "npm start". I create a monolithic Spring and Angular 8 application with jhipster 6.2.0. I run the "jhipster gae" command and answer the prompts. I run the ...

> jhipster gae
Are the authors of this library just trolling?
20:41
is there a limit to browser memory for react to have a mount a unmount method on each class?
why is styled-jsx only working the on the first rendering of the page when it is built by Next.js and then after the first refresh of the page it stops?
with material ui components
21:00
probably due to the url being used in the stylesheet tags
on first load it's technically loading from one folder, and on reload it's loading from whatever new url the router moved you to.
21:17
anyone else disgusted by this
why would we be
it's minified code
Using RLOs to make my JS look like garbage, when its actually the code for generating exploitable RLO EXEs
its not minified
its "visually" reversed
using unicode
idk why i made it, I just thought it was funny as hell
its definetly anoyying to remove the RLO from the code
since right arrow goes left
and selecting it is hard as heck... It teleports your selector around when you get to it,
Sadly, it only visually works on some PCs
Do any of you notice anything wrong here?
https://pastebin.com/k7cUamHw
I keep getting back 404
21:20
Kevin do you think this project I made is... considered... exploiting? :P codepen.io/SkylerSpark/pen/bGbEMqV
404?
not interested
wdym... 404...
Im not getting 404
ResponseText is saying: "Not Found". Reckon that is 404 if I remembered correctly.
Also as far as I know, doesnt look like theres anything wrong with the script
Okay. Maybe it's wrong on my backend. Currently running localhosted python flask server
21:23
why python... If your trying to POST, You might wanna try using PHP's simple http server with php
Then Again I use the python server too for local testing
Because we used it in school... so I kinda know my way around it
it really depends on what you want
yeah, it's only local testing lol
Eh... PHP's server is the same concept
slightly different command setup, and the localhost includes PHP built in
@echo Off

start "" /min python -m http.server 8000

sleep 1

start 10.0.1.21:8000
Im assuming this is what you use?
or something similar
Alright, anyway.
Here's the python script so far:
https://pastebin.com/QdsMr58Q

I don't think there is any wrong with that since I manage to call the server with curl
21:25
Oh, Your manually opening it
I thought you meant the python console HTTP server
Yeah, I understood now that you thought that, I didn't explicitly say what type of server
sorry
its alright lol
I was a little frisked when I heard you say python flask. Ive heard of it but never used it.
Python is just not really something I put much of my life into :P
You don't need to, since it's soo easy ;P
slang term, lol nvm
easier than js? Js wasnt that hard at all, i have completed the basic "course" on it in a month, and it seems really fun and easy
I wound up just moving straight to Csharp
I like being able to make my own desktop apps
I originally started teaching myself js, but I thought taking a course might help
21:31
c# is alright
I wouldn't ever choose it to make anything but it's not the worst
I have confirmed that there is no wrong in the python code because I managed to post via CURL and checked through a SQLite plugin in VSCODE that the row had been inserted.
interesting :P
like you said kevin, may just be a backend issue.
Similarly to when i had backend with my router failing to let me visit Localhost sites
@sockevalley your post function is wrong
apparently my dad had some kind of "VPS or VPN" thing in the router that blocks direct access
function postData(url = "", data = {}, expectResponse = true) {
    return fetch(url, {
        headers: {
            Accept: "application/json",
            "Content-Type": "application/json",
        },
        method: "POST",
        body: JSON.stringify(data)
    }).then(response => {
        if (response.ok) {
            return expectResponse ? response.json() : "";
        }
        throw new Error(response.statusText);
    });
}
^ you can't do this
your return statements are not doing what you think they're doing
actually -- my bad, I misread -- you are expecting it to return the promise
so you've got it right, I misread
21:34
:|
I was hoping you found my issue lol
you probably should just be using async/await but w/e
give me a sec
hmm, totally forgot about that lol
where is it going wrong?
it looks right
Most likely wrong in parameters I send to the backend
That could be it
I don't think the problem is in your fetch code
is it logging an error?
21:39
I am gonna take a look here: dev.to/shoupn/javascript-fetch-api-and-using-asyncawait-47mp and see if I can make my code less "cringe-worthy" as well.
the reponse is not ok so it throws the error
your code looks fine
what do you see happening in the Chrome network tab
async/await is just a little easier to read
eh
is it tho
only if you know how it works
well that kind of applies to everything doesn't it
21:41
there's a rather large portion of js devs who will likely never
hmmm
I think people can get by without reading a book about it
some people for sure
Do you disagree that sock's fetch code would be clearer if written with async/await?
No, i don't think async/await is any more clear than .then
it's rather easy to read either and understand what either is doing
I don't think either way is unparseable, but I'd definitely say that async/await is easier to read line-by-line
21:45
async/await suffers from the fact that unless you assume the dev would never use await without async, you won't know that it's an async function without looking to the top of it
with .then, it doesn't matter
certainly less pitfalls for .then vs async/await
returning inside a .then() a value that will be thenned again in the calling function
well yeah I think you're right there
error handling, functional looping,
I think that async/await is risky because people underestimate it, and people do that because it looks so simple
the simplicity is also what makes it easier to read though
easy to read, easy to fuck up
I didn't say easy to write ;)
although it is pretty easy to write if you understand what it's doing under the hood
21:47
yup
ah whatever it's not a big deal for this, async/await won't fix his fetch problem
hahahah
no it wouldn't
but people are being handed it as a first option when they try to do stupid shit like returning from an asynchronous callback
I don't do this on a regular basis so debugging takes a while usually
.then is rarely the option people are handed first now days
21:48
hmmm. Okay you make a good point, I concede that it's probably not what newer people should start with
@sockevalley did you look in the network tab
I find the network tab the fastest way to steal stuff from websites :L
they just gives everything to you with a search bar and the ability to download it
lol
what
whatever guy
In the developer tools
it's not stealing if they hand it to you
21:50
it's all right there on their webserver for your taking
they literally gave it to you
meh, they try pretty hard to ignore downloads and "prevent" extensions that download their stuff... and then I just see it pop up in network tab
some stupid people do yea
I haven't encountered a lot of sites that try to do that nonsense
I mean sure you can "delete' the reference to an swf or video clip AFTER its been downloaded... but you cant really... get rid of the network channels
21:51
some people also try to sell javascript
that logs everything that goes over your file stream
euw js sellers...
ffs
delete the reference?
they preplace the reference with "Javascript:(void)"
idk how :L
but the clip still plays
hmm I'm not familiar with this
ive always assumed that after they download the video and frame it to an iframe or object, that they just change the attribute
since SWFs cant be Lively changed, that would work perfectly
21:53
I think I know what's wrong
makes sense now why all those flash game sites do that :P
weird. ok
So I am running a flask server on localhost:5000.
And I want to fetch on 5000.
But my fetch is only /URL...
And my other server is on 3000, so it becomes localhost:3000/URL
@sockevalley did you find the answers you were seeking in the network tab
hmmm yeah I don't struggle with it anymore so it took me a moment to remember, but I hated the transition towards async/await
21:54
@forresthopkinsa yes, I believe so
it's especially hard to grasp the "every async becomes a promise", and what it entails, or at least it was for me
@FélixGagnon-Grenier interesting perspective
i had less of an issue with async/await than i did with class
@sockevalley you should be able to just pass ":5000/whatever/endpoint" to fetch
my new favorite gun to shoot me in the foot is yielding promises from generators and nexting the result
21:55
class i still feel like i don't fully understand
So my flask server is available on localhost:5000.
On the endpoint localhost:5000/submitOrder I can do a post.
However I think I have called a post on
localhost:3000/submitOrder which returns a 404.
@KevinB no one does
prototypes were very verbose
which meant they were easily understood (imo)
no magic
interesting
I never really had to work with prototypes, when I started here the projects already had webpack toolchain transpiling code using classes
my issue with classes is more the whole... understanding what's happening behind the scenes
i can make them do what i want them to, it's just knowing prototypes first kinda made me want to understand how classes relate to them
21:58
to be quite honest, I really don't know :P
I've been wanting to read the You Don't Know JS books
So, I changed the post to: postData('localhost:5000/submitOrder'... from postData('submitOrder', {
like wtf is super and when do i need to use it, why
and I got:
https://developer.mozilla.org/sv-SE/docs/Web/HTTP/Status/101
wtf
i have my assumptions of what it is, but i'd like to see that translated to the old ways
22:00
we have strayed from the old ways
yeah, that matches up with my assumptions
I'm sorry, i misread, I got a typeerror using "'localhost:5000/submitOrder', {"
> class does a very good job of pretending to fix the problems with the class/inheritance design pattern in JS. But it actually does the opposite: it hides many of the problems, and introduces other subtle but dangerous ones.

class contributes to the ongoing confusion of "class" in JavaScript which has plagued the language for nearly two decades. In some respects, it asks more questions than it answers, and it feels in totality like a very unnatural fit on top of the elegant simplicity of the [[Prototype]] mechanism.
though...
i've never seen super used outside of the constructor
till now
22:02
@forresthopkinsa Hey, how should I change it to 5000?
I looks like this now...
Requested-URL:http://localhost:3000/:5000/submitOrder
magic.gif
postData(':5000/submitOrder', {
makes sense tho
@sockevalley Okay never mind don't do that then
I always forget whether that works
22:04
window.location.origin + ":5000"
> So if you need to do that to track shared state among instances, then you end up going back to the ugly .prototype syntax, like this:
C.prototype.count++; isn't that er... horrible?
What's wrong with general dependency injection?
@forresthopkinsa you do know that is going to be: localhost:3000:5000
meaning, to "share state among instances", injecting an object with said shared state is generally how I reason about this?
I think there's gotta be some settings to fetch where u can change 3000 to 5000.
well, with the old prototype way, there were cleaner ways to do that
22:05
dunno what to google though
you could basically build the prototype for the class using an IIFE, which gave you a private scope you could use to share information between instances
window.location.protocol + "//" + window.location.hostname : ":5000"
@forresthopkinsa super interesting, didn't know of that
@FélixGagnon-Grenier the repo is a gold mine
22:07
dunno how you'd do the same with a class
How is that going to change that fetch() always puts in 3000 as its first argument?
It won't
If you give it a different URL
protocol + '//' + hostname + ':' + port + '/whatever'
@sockevalley on a proper project I'd recommend using something like this while developing instead
assuming that in prod flask will serve the JS and so port changes won't be an issue
posted on August 13, 2019 by Sam Roberts

Summary The Node.js project will release new versions of all supported release lines on, or shortly after, Thursday, August 15th, 2019 UTC. These releases will incorporate security fixes to HTTP/2 Denial of Service vulnerabilities in Node.js, the highest severity of which is HIGH. The Denial of Service vulnerabilities to be fixed are common to a broad range of HTTP/2 implementations. Details a

@forresthopkinsa thanks for the tip, will do in the future.
I managed to change the request to http://localhost:5000/submitOrder now.
I think Milad is on to something:
https://stackoverflow.com/questions/47509140/es6-fetch-how-do-i-change-the-localhost-port-it-calls
well right but if you do that then you won't be able to reach it from another machine
22:21
So if you would download the code etc, you wouldn't be able to execute the code properly on your machine?
 
1 hour later…
23:22
!!magic
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
23:39
@sockevalley not what I mean
00:00 - 16:0016:00 - 00:00

« first day (3223 days earlier)      last day (1950 days later) »