« first day (3630 days earlier)      last day (1301 days later) » 

12:42 AM
🚽
 
 
6 hours later…
6:58 AM
Hello
 
@srinivaschaitanya Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
2 hours later…
9:08 AM
https://stackoverflow.com/questions/64006015/how-to-measure-how-much-time-take-took-executing-each-line-of-code
I think what I'm looking can be very useful. maybe my edit helps. Can you review it for reopening? Or let me know how to fix it again
 
9:38 AM
I'm looping through an array to display some data and for some reason I can only display 1 of the values in that array. The whole array is being logged to the console so I can see that it does contain all the information but when it goes to display it... nothing...i.imgur.com/JYtixwk.png i.imgur.com/yPp7nVh.png
 
 
1 hour later…
10:42 AM
anyone knows the name of the list of must haves for applications?
such as CI/CD, unit tests, etc
every year a new list was posted
 
dependencies?
wait, there's a list?
 
the idea of the list was basically "if your software is missing any of these things, it sucks"
 
well that's kind of subjective isn't it?
I'll agree that dependency injection and unit tests are important, but I wouldn't necessarily agree to the whole list
 
it probably is, but all items on the list were kind of like "ye, for a production business, you really should have this"
DI probably isnt on it
VCS is, CI/CD (automated deployments) is, unit testing is
 
there's that checklist of things that a software company should do or they suck
 
10:54 AM
cant come up with others atm
 
it's a little outdated, but things like test-driven development and automated builds and such
do you mean that?
 
I dont think they would be included
but I mean, there is a group of people that produce/alter a list of must-haves and publishes it each year
what is on the list atm is irrelevant for me
I just want to know the group of people that publishes it
 
no idea
 
hello can someone tell me what is process for reading from a json url. I need a certain field in json url.
 
11:27 AM
Depending on the API you might be able to change the URL you're calling to get that information. So thisismyurl/fruit
 
I wonder why there are so few actual stories about continuous delivery. I mean there's a lot of talk about how it's cool etc. But very few anecdotal stories of the line between "hey here is a codebase, and commit abc is ready for production" and "ok here is a container with all settings correct".
Especially that step seems to be just ignored and all advocates of CI/CD seem to sway "it just happens magically".
 
@paul23 well to those who didn't setup the ci/cd, it should feel magical
 
11:51 AM
question about this statement
for (let i = 0; i <= 2; i ++) {console.log(`iteration ${i}`);}
does i ++) {console.log(iteration ${i});} run at the same time ?
 
no
i++ runs directly after the block is run
 
{console.log(iteration ${i}); gets executed before the c++ part then ?
i++
 
||> for (let i = 0; i <= 2; i ++) {console.log(`iteration ${i}`);}
 
@JBis undefined Logged: `` Took: 1ms
@JBis undefined Logged: "iteration 0", "iteration 1", "iteration 2" Took: 1ms
 
@Amundsen yes
 
12:48 PM
@paul23 that is mostly because it is based on your architecture and your projects
the step you describe is the "deploy" step
in my case, I run deployment scripts (mostly being just sls deploy because I use the serverless framework and setup as much as I can through their configuration)
 
welp
i found a browser bug
 
in other cases, you want to produce a snapshot of a docker container and publish it to a docker container manager
the action is very different for different projects
 
Doesn't mean you can't learn from others, and the struggles.
 
the deployment script is something outside of the scope of understanding CI/CD
just that it runs is sufficient
if you want to learn how to do an automated deployment, you should look for that instead of looking for CI/CD
I can still run sls deploy from my machine and it still works
 
Also for continuous delivery this ought to be automated. Which means you wish to use a toolset for it, which in effect means the step needs to be "made more general so it applies to all/most projects". - Just like automated unit tests became the standard despite in the 90s mantra "testing is unique to the project all problems need to be handled as unique case".
CD stands for continuous deployment => so it should include automated deployment? it's kind of in the name.
 
12:53 PM
it should invoke the automated deployment
but the automated deployment has nothing to do with CI/CD
it must just deploy the thing
 
Wheres Carl
Need some early morning entertainment
 
he still comes here on a regular basis?
... I suppose I just dont :D
 
Then what would you call the idea part of going code to an over-ready-cake of application? The communication between automated tests, builds and sending to a package server to be picked up by kubernetes etc?
 
anyone on chrome windows have a sec to test something?
 
CI/CD is an orchestrator of various tasks
it makes sure the tasks run in a certain order and that the required tasks completed successfully in order to start with the next task
there is no communication between tasks
each task is it's own process
 
1:00 PM
Sure, but one can talk about each step; and provide insight in what problems were and how you think one can improve.
 
sure, but you would have to search for stories about said task
in my case, I would search for stories about serverless.com
 
I'm not really agreeing with that: while the tasks run independent some choices ("we wish task A to make sure it's ready for automation so it gt access needs to be through SSH and using a special account") are specific when you do them as a process instead of tasks on its own.
 
I dont understand that...
 
I mean if I just have to build code I can type "npm install && npm build" and be done with it. Manually making sure the git repos are given a password when the interface requests that.
Or I could do that an manually build the SQLite library as that needs to native libraries to work instead of pure javascript.
However now if I consider it needs to be run inside a build-server which is completely hands-free the task suddenly becomes more complex: I need a way to verify the build server on my git server without providing log in manually through an ide half-way the build process..
Or I need to consider that the build server might not run the same OS as the development server - or indeed the docker in which the final build will run is alpine linux so I'd have to spin up virtual machine to build the code so sqlite is build against alpine linus.
 
@paul23 then it is not automated
you would have to provide the required authentication in some way, either by environment, helper files or through the script itself
the same way how you automate it for your local machine, you would automate it for a CD task
 
1:11 PM
Sure, indeed - but a discussion about what methods are best considering it needs to be fully automated I'd love to read up on.
 
then look them up based on what you use to deploy your stuff
so... what do you use to deploy it?
where do you deploy it to?
 
There's a lot of "yeah you can do x or y or z". But very little anecdotal evidence/experience which actually explains the drawbacks.
 
again, the drawbacks will be based on what you use
serverless' drawbacks include that you cant really upload files to a file service (like AWS S3)
so, if I want to do that, I would have to do that differently
 
Which I'd love to read about.
 
perhaps by encapsulating the sls deploy with a custom script, which then also invokes some aws s3 putobject ... commands
but that is specific to serverless
it doesnt matter which CI/CD I use... or if I use any at all
so, to work around that drawback, I would have to look up stories on serverless with S3
which I soon will have to do :(
later this week, I will make a react website, where the deployment would be building the deployment package and uploading it to the cloud file service
 
1:17 PM
We deploy everything on our own servers, based in the country of a customer - so no paas or similar (privacy concerns are too much an issue with out customers).
So far ci/cd is managed by a home build/historic python script.
 
How historic are we talking? 2.3? :P
 
not that old :P
like 6-8 years.
 
1:53 PM
A React puzzle for anyone interested: https://stackoverflow.com/questions/64017820/how-to-use-a-react-object-with-typeof-symbolreact-element-to-add-css-clas/64029338#64029338
I'm puzzled anyway...
 
2:27 PM
@Matthew hey
 
2:38 PM
{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\":\"en-US\",\"value\":\"The parameter __metadata does not exist in method GetByTitle.\"}}}","responseJSON"
So If I am getting that, I have the "title" column item hidden and not required, but it is default. Should I change the Title item to the name of my first other column? Will that ensure the parameter exists
 
3:10 PM
I see people making statements that ReactJs doesnt like lambdas inside the render function
is there a simple way how I can visualize the problems?
and test various approaches to solve it?
I assume the same happens with Kotlin-React, but Kotlin-React already solves a lot of basic problems with it, so it might solve this as well by default
 
maybe the problems they are making statements about are pebkac
 
the problems are that lambdas are not equal
so, onClick handlers for example, would not be equal even if they are behaviorally the same
therefor it would re-render the component
because the onClick changed
 
i mean... sure... that's been a problem for a while
 
but I dont really understand how to make a unit test to assert that it is problematic
how can I validate that it is a problem and see the results of it?
 
but it's 100% avoidable
 
3:16 PM
(to then try a few approaches and see which is the least work to still solve the problem entirely)
 
well, at least with class components. i don't work with function components enough to know the changes you'd make to a function component to work around the issue
 
or to make the decision that the negative effects are so meaningless that the noise and boilerplate are just not weighing up against the benefit
 
imean, that depends on what you're rerendering and how often
 
true
 
i imagine it's far more impactful on, say, a form with controlled inputs
 
3:17 PM
but I would then have to know what the downsides of the lambda usage is
 
because every keypress is a potential rerender
the more complex the form, the more view logic, the more expensive that render is
 
3:31 PM
Anyone know if "Column Source:" for a sharepoint list item could effect trying to pass parameters into the list? Can't find anything online
 
Dos someone here use SWR with React? I want to know what is the best way to stop the "onErrorRetry" when the user switch the route. Maybe using redux? I'm kinda new. The only option i saw was to use Redux or Context API to store the setInterval id that is used in "onErrorRetry" function, and then call the clearInterval at the beginning of each route component.
 
 
1 hour later…
5:01 PM
anyone ever use github.com/choojs/choo?
 
Don't you love when
alert(JSON.stringify(error));
console.log(JSON.stringify(error));
Returns - """"
 
I don't think you can stringify a proper error object
And it's bad practice to throw anything else
 
5:26 PM
new framework, looks really cool blitzjs.com
new day, new js framework lol
 
There's no code on the homepage
How can you catch a developer's attention without showing any code
Vue 3 was released a couple days ago
I need to give it a whirl
I've had a project on hold for like a year waiting for it
 
i never see anyone using vue
i see a bunch using angular, react, or jquery
 
I believe it has the most market share after Angular and React
In terms of actual frameworks
Of which I do not count jquery
 
is there really a 4th competitor tho?
 
Well you have all the smaller ones like Ember and Svelte et al
 
5:34 PM
the only thing i hate about react is how much of a pain it is to get setup
you can't just write react
 
Yeah but ideally a build system is a one-time cost
In the case of Webpack it almost never is, but that's the idea
 
i'm still too scared to not use cra (or another framework that handles configs)
tho if i spent some time, i could prob come up with good webpack config i could reuse
 
I've yet to give Parcel a serious shot
Or that other one I always forget the name of
 
Im about to punch a hole through my monitor
 
Almost never a good idea
 
5:38 PM
i'd go with a wall, usually cheaper to repair
 
equal regret
So frustrating
 
Hey if anyone can shed some light on some problems I have I'd love it
0
Q: Npm dependency to git repository stays to same commit after npm update

paul23One of the packages in a project is based on an internal npm repository. { "dependencies": { "my-library": "git+ssh://<gitrepo>#dist" } } Where dist is the branch to clone from. This "works" as in it install the correct version. However whenever an update happens to this branch I cannot ...

 
I find two new solutions. Try them both. Still get the same fookin error
|| kill self
 
Your are not authorized to administer this command
 
You are unauthorized to kill yourself
 
5:41 PM
!!stahp
 
HAMMAHTIME!
Invalid command! Did you mean: stop, slap, star? Try help for a list of available commands..‍.‍.‍.‍.‍
 
||slap KevinB
 
slaps @{1} around a bit with a large trout!
slaps @KevinB around a bit with a large trout!
 
wow, nostalgic
 
||kill SharePoint
 
5:43 PM
This conflicts with the First Law.
 
Actually early programming I did was writing irc bots/scripts
 
||kill First Law
loop hole 0.o
 
those were amongst my very first things to write
 
alright alright take it to the sandbox
 
i like james because i can add him to just about any chat platform in like an hour
 
5:47 PM
I seriously don't understand. These solutions I am finding, people said they worked for them. I try. And it puts me back to the original 404 error I was getting. I got it from a 404, to a 403, to a 400, now back to 404... am confuscious
 
do you know why you are receiving an error?
if not... that should be teh focus of your research
not how to make the error go away
 
The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again
but this isn't true.
 
making it go away... without understanding why it is going away, may simply lead to you seeing it again in the future
 
But I shouldn't even see that error as I have full control across the site.
 
...
 
5:49 PM
Why would it deny me access
 
no, you don't
it's sharepoint
lol
 
On the site/subsite I am using/staying in I have full control
 
so you can look at the source to see what code paths would lead to this specific error being returned?
 
6:28 PM
Whenever I look up in the source of console. it says "Failed to load response data"
 
that's... client side
the error is beign thrown by the server
 
And the JSON object shows up in the payload
 
the console isn't where you'd find said codepath
 
Gotcha*
 
posted on September 23, 2020 by Bindu Suvarna

 Hi, everyone! We've released Chrome Beta 86 (86.0.4240.54) for iOS: it'll become available on App Store in next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Bindu Suvarna Google Chrome

 
6:37 PM
Its not the same without Carl
 
lets not speak of the banned
 
Wait he got banned :O
 
ofc
 
I want to be surprised...
But I truly am not
 
suspended, technically, if you care about words
 
6:40 PM
Same difference
 
posted on September 23, 2020 by Ben Mason

Hi, everyone! We've just released Chrome 85 (85.0.4183.127) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
7:04 PM
Im about to fight sharepoint
 
8:01 PM
posted on September 23, 2020 by Krishna Govind

 The beta channel has been updated to 86.0.4240.53 for Windows and Linux, 86.0.4240.55 for Mac. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. G

 
8:44 PM
noob question coming up again: If you would create an express server + react client, would you put it in one big src folder with 1 package.json, or two separate src folders with 2 separate package.json files?
 
both are acceptable... though separating makes SSR... odd or non-existent I'd imagine
 
SSR?
 
server side rendering
 
ah
I see.
 
you could do SSR with them being separate, if you imported it in as a dep, but i mean, at that point they mightaswell just share
 
8:50 PM
follow up question: If I have 1 package.json, do I run the risk of have a bloated client side app? Or is it certain that express code will never "leak" into the browser?
 
@aioobe I want to do the same thing. I was just looking at: dev.to/nburgess/…
 
yep. I have that tab open too :-)
 
I think I saw a better one before though. Just having a look...
 
that's up to your build process
 
I also want to try SSR.
 
8:51 PM
Ok 🤔
 
i've only used it on one site, and ended up just going full SSR with no client-side code, and then scrapped the whole thing
 
If I go for two separate package.json, what's the best way to have a "common" source tree for like form validation logic, data models etc?
 
not because it sucked, but because we already had a working solution that was far simpler that had all the same perks
 
Ya, this is the one I have saved: levelup.gitconnected.com/…
Looks promising...
 
I've googled like crazy, and found solutions where you check out a third common repo into both server and client src directories, which seems plain ugly to me.
 
8:53 PM
that, or iinked folders
 
symlinks?
 
yup.
or, package.json setup that pulls it in from another folder
forget how that works
 
ok. you mean like a file system copy in the build process? or something smaarter?
it seems git handles symlinks really well (TIL!)... going to try that approach out.
 
@aioobe If you try levelup.gitconnected.com/… would you let me know how that works for you?
I probably will but it's lower on my priority list atm.
I'm just running both with a package called concurrently for now.
 
@Matthew since I'm a complete noob at these things, and want to maximize my chances of getting things done with best practice, I prefer using express-generator-typescript and create-react-app
 
9:03 PM
... and a proxy so they are on the same port.
 
I feel like I'm getting an "industry standard" starting point.
 
tutorials are the way to go then ... or at least will get you on the right path.
 
Yeah, I used concurrently too in my first stab at this. (and proxy)

While it's nice to just have to run one command, I didn't really see the benefit
I actually prefer having two windows, one for client stuff and one for server stuff.
instead of the [0] and [1] line prefixes.
yeah, I've looked through a ton of tutorials. They all say slightly different things, and js world seems to move fast, so if a tutorial is ~1 year old, chances are it's outdated.
 
9:42 PM
Anyone want to take a stab at my question: https://stackoverflow.com/questions/64017820/how-to-use-a-react-object-with-typeof-symbolreact-element-to-add-css-clas/64029338#64029338
I'll probably just accept my answer tomorrow (even though some random weirdo downvoted it) if no one can add to it.
 
10:19 PM
 
can you look at my question please? :(
https://stackoverflow.com/questions/64036219/react-infinite-scroll-scrollabletarget-get-id-dynamically
 
@paws Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
10:55 PM
@paws Have you tried with a static ID first? Does that work? Also, the code you posted is not formatted - no one wants to read that.
 
 
1 hour later…
11:59 PM
Hello guys i have issuse with nodeJs tcp server
 
@MohamedMohamed Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 

« first day (3630 days earlier)      last day (1301 days later) »