« first day (3953 days earlier)      last day (1218 days later) » 

00:00
@JBis All of those things are going "native-web"
Import maps are another fun one
And with Web Bundles to wrap it all up, into one or more bundles, it feels a lot more like a native development experience
I do agree that WASM will become further into the forefront in the near future, but I also think that the majority of the web will continue to be driven by HTML
I fought against HTML for quite some time, thinking of ways to replace it. Every alternative I imagined up was just HTML and CSS with different syntax, so I just waited to see where I thought the Web was going, and HTML modules changed my mind to be in favor of an HTML-first approach
posted on August 12, 2021 by Krishna Govind

Hi everyone! We've just released Chrome Beta 93 (93.0.4577.37) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

I'm gonna add more to the compiler that any JSX that isn't the "embedded HTML document" acts as document.createElement calls, so you could do const div = <div/>... I dunno, just some more sugar here and there.
 
6 hours later…
05:48
I don't understand, why document.body.addEventListener("load", function(){ alert("load body");});
is not working.
 
3 hours later…
08:58
'sup
@DamodaraSahu Try onload instead of load
I tried. Not working.
Try passing false as a third parameter, says stackoverflow somewhere
09:19
@DamodaraSahu where is that event set?
chance is high that its load event got fired before that statement is executed
why don't you listen on the document level itself?
09:46
Actually, I am learning addeventListener. So tried to make alternate approach, instead using document.body.onload(). I tried with false as third attribute. Finally it works. Thank you.
@DamodaraSahu the useCapture flag is something nice, but rarely used :)
I even have a bookmark for that, if you're curious; quirksmode.org/js/events_order.html#link4
the whole page might be informative for you as well
10:46
wow that page is ... old
10:57
Y'all know how can I start creating a search API with Javascript, I mean I have a database in a Linux server and one of my friends wants access for his users. This access means that he inserts a piece of code in his website and after that moment his users can search in my database and show the result in his website. If y'all have key words, information or something I would appreciate reading them, thank you.
@JackMore 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.
*generally* when requesting information, there are several things that each request might want to specify:

1. Filter - if they only want a subset of the data. E.g., `name = "bob"`
2. Sorting - if they want the data in specific order.
3. Skip - if they want to omit some number of records from the beginning.
4. Limit - if they want to get only a slice of the data, not everything.
You can have none or some of these. 1. and 2. might even have multiple values. 3. and 4. come into play when paging is involved. So, this order is also how the parameters should be handled. Filter before sorting, sort before skipping, skip before limiting.
As for how you should handle the parameters, that's up to you. You can define your own search syntax or you can use a library that implements some sort of search syntax for you. I don't know any for Node but I assume they should exist.
11:24
Skip and Limit are kinda same, as "pagination"
11:36
@KarelG They are for pagination. You could also do 10 per page and page 2 - I've seen some implement it that way, but I personally prefer skip/limit and calculating the page size for the request.
best approach is to use cursors, but that's lots of more work :)
That is true, however if you have an API, you might get all sorts of requests. Ideally, you'd give some sort of lease to the client and have a cursor for the data it needs. But that's harder to implement. It's also hard to provide useful leases if the API is open to the public.
Although, care should be taken so requests that continually ask for the last page won't just bog down the server.
 
1 hour later…
13:17
Thanks @VLAZ and @KarelG . I will use that information, you know I really appreciate it. There are sometimes some websites that uses the Google Map, I mean inside the web but it's not the google maps web. For example there's some contact text and in a square there's the google map pointing where's that office or something. If I open the view-source that comes from a script from Google. That's what im trying to recreate with my friend. in my friend website there is going to be a search bar.
An that bar comes with a script that searches in my database. Is that called an API no? Its kinda confusing. Im going to try it. I usually program with PHP, im going to try work that as well.
 
1 hour later…
14:25
@KarelG cursors? Like ?after=something
yeps
Why is that more complicated? Can't you use date? Most tables have a date entered column
hmm for typescript, how to know if a package has typings internally or if one should use @types/packagename instead?
Especially after updating older packages it gets confusing
Install packagename, and check in node modules
Or look at repo On github
hmm so that's painful when updating and suddenly it starts supporting types internally...
14:30
@JBis entered date does not say when it got updated
Yet the typing internally is incomplete, and it would mean I have to look at the package internals for external use.
@KarelG ugh, last modified column is pain usually
Gochta
I'm not really familiar with TS
what does @types/packagename do?
It's just a community effort to provide type definitions to existing packages.
(Which the typescript compiler recognizes)
@KarelG as paul said - it's a package of types for some library. E.g., you can install jQuery but it's plain JS, so if you want the correct typings for it, you can install @types/jquery and you'd get intellisense support as well as compilation warnings/errors if you pass the wrong type when calling something.
@JBis cursor is usually a DB level thing. Instead of getting all the data and then filtering it and similar, you can get a cursor over a result set then go over the records at DB level manipulating or filtering them with more complex logic. One of the things you can do is get a cursor for paging purposes, so it produces X records and pauses until you ask for more then immediately gives you the next batch without having to re-do the query.
In computer science, a database cursor is a mechanism that enables traversal over the records in a database. Cursors facilitate subsequent processing in conjunction with the traversal, such as retrieval, addition and removal of database records. The database cursor characteristic of traversal makes cursors akin to the programming language concept of iterator. Cursors are used by database programmers to process individual rows returned by database system queries. Cursors enable manipulation of whole result sets at once. In this scenario, a cursor enables the sequential processing of rows in a result...
14:51
This is weird, two projects and in one typescript is giving a compile error
 
1 hour later…
15:51
ok, someone made a mistake when doing regex replace on tags within a whole directory leading to various HTTP 500 exceptions I have to solve
sad part: revert commit is not an option, because it's a huge change
why doesn't someone solve their own mess? :)
saddest part: I am trying to use regex to fix broken tags that needs to be in correct tags
flips swiss knife
@ThiefMaster one of negative perks of being a team lead as he's unable to handle his mistake. But hey, as a punishment, he's going to get me a bag of chocolate.
was smart enough to even tell the expected weight
 
1 hour later…
17:23
posted on August 12, 2021 by Srinivas Sista

The Beta channel has been updated to 93.0.4577.42 for Windows, linux and 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. Srinivas Sista Google

 
2 hours later…
19:04
so fucking helpful, thank you
i mean
it is
i would never use it
i'd need it so infrequently that i'd never remember the keybind
 
3 hours later…
21:53
Rotten Tomatoes rated a TV show NaN, is it too good or too bad?
22:50
@JBis clearly it's tomato out of 10
3
||> "tomato" / 10
@VLAZ NaN Logged: [ ] Took: 0ms
See?

« first day (3953 days earlier)      last day (1218 days later) »