« first day (3754 days earlier)      last day (1416 days later) » 

01:55
@Loktar do you or I have access to stackoverfiow?
02:33
^ the site has a new design
 
2 hours later…
05:07
Does anyone know how to implement this? stackoverflow.com/questions/65854452/…. I hope the question is clear enough. Thank you in advance. 🙂
@DavidLeal 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.
05:34
@duhaime you got any idea, about how we can place markers using javascript api?
 
3 hours later…
ABC
ABC
08:33
How to call api without using the useeffects
 
2 hours later…
10:38
@JBis How do people use backpressure with node.js iterables
 
4 hours later…
14:18
@Lime interesting
sup
alamobungus
@TylerH can I have a dynamic <p> element under a heading. Like say Im pulling a WeekOf item through AJAX call, and I want whatever that week is to be under my heading <h1>Weekly Report</h1>
14:53
@Lime sneaky overfiow
@ShrekOverflow can you give an example?
15:17
o/
\o/
15:48
{
   "d":{
      "results":[
         {
            "Team":"Cowboys",
            "WeekOf":"2021-01-15",
            "OffensiveReport":"Insert something about the offensive report",
            "DefensiveReport":"Insert something about the defensive report",
            "SpecialTeamsReport":"Insert something about the special teams report"
         },
         {
            "Team":"Redskins",
            "WeekOf":"2021-01-15",
            "OffensiveReport":"Insert something about the offensive report",
This is my JSON being called, I try to populate it into HTML with Mustache.js like so
<span class ="dynamic" id="team-name">{{d.Team}}</span><br/>

Offensive Report: <span class="dynamic">{{d.OffensiveReport}}</span><br/>

Defensive Report: <span class="dynamic">{{d.DefensiveReport}}</span><br/>

Special Teams Report: <span class="dynamic">{{d.SpecialTeamsReport}}</span><br/>
N thats how it populates?
 
1 hour later…
16:52
Hmm I notice that I can import from material ui using either:
import {IconButton} from "@material-ui/core";
or
import IconButton from "@material-ui/core/IconButton";
Which is better for tree shaking?
import {IconButton} from "@material-ui/core";
don't use the other one
Tooling auto-generates "the other one" thoug
@material-ui/core doesn't ensure that IconButton folder will exist, your IDE just found it
@paul23 yes, it's wrong
@JBis actually material ui documentation is explicit in that both are guaranteed to exist - for any component that is supposed to be accessible.
material-ui.com/getting-started/usage - in the quick start they even use that 'other" method XD
material-ui.com/guides/minimizing-bundle-size, I see. Most packages don't ensure more than @material-ui/core they seem to. In that case, I guess it is fine but I don't like it.
16:58
material-ui.com/guides/minimizing-bundle-size this is quite confusing to me, especially since with cra yoiu can't just modify the build scripts.
so I wonder if CRA already does what is described there under option 2.
17:12
 
2 hours later…
19:16
Hi can anyobne give me some advice how to solve this problem
🔮
0
Q: Use Socket IO In Node js to update pug template

Pruteanu AlexandruIn one of the projects I use Node Js / Express with Pug.js,I want to use socket io to make everything live,all post actions and bring information or update. I tried to use socket io but all I managed to do was generate html code from js between 2 live users, but i can't figure out how i can use i...

19:32
@KevinB lol
@paul23 CRA def tree shakes by default
20:16
Ive come to the final decision
I am going to haze myself and try to do my whole project with template literals
20:42
Can someone explain how "value" isn't defined
document.getElementById("app").innerHTML = `
<h1 class="app-title">Teams (${teamData.length} Results)</h1>
${teamData.map(function(value){
  return value.team

}).join('-')}
<p class="footer">Week of ${value.weekOf}</p>
`
 
3 hours later…
23:49
var value;
document.getElementById("app").innerHTML = `
<h1 class="app-title">Teams (${teamData.length} Results)</h1>
${teamData.map(function(v){
  value=v;
  return v.team

}).join('-')}
<p class="footer">Week of ${value.weekOf}</p>
`
@bigchungus try that I'm not sure how to explain scopes
other then that simply doesn't work
lmao

« first day (3754 days earlier)      last day (1416 days later) »