text
stringlengths
0
1.36k
[1054.58 --> 1061.60] And noted, in fact, the spec committee said that we should not do that and go that route because of some of the other tradeoffs that it would have to make.
[1061.60 --> 1068.52] So, yeah, there's just there's stuff that until they're, you know, that one's even out like that one is actually in the spec.
[1068.64 --> 1073.98] We just haven't had enough implementations to know what some of these like really, really nitty gritty details are.
[1075.44 --> 1076.50] So, yeah, yeah.
[1076.56 --> 1082.94] I mean, like you're you're you're by definition kind of on the bleeding edge if you're using features that aren't even actually in the browser yet.
[1084.20 --> 1085.52] Modules are in the browser now, though.
[1086.68 --> 1087.70] In one browser.
[1087.86 --> 1088.02] Yeah.
[1090.22 --> 1090.86] Pretty cool.
[1091.60 --> 1091.78] Yeah.
[1092.00 --> 1094.22] So what features are you staying away from, though?
[1094.32 --> 1095.50] Like actually staying away from?
[1096.18 --> 1097.32] The ones that I don't need.
[1099.56 --> 1102.40] I think proxies are a terrible idea and that nobody should use them.
[1102.72 --> 1104.76] They're just a performance bottleneck.
[1105.72 --> 1108.94] Proxies were a really good idea for like a hot second.
[1108.94 --> 1114.32] It seemed like a really solid solution to a thing that everyone was trying to solve at the time.
[1115.00 --> 1120.60] And then, like, we found different ways to we found better ways to solve those user land problems.
[1120.60 --> 1125.22] And then proxies became this thing that made a lot less sense.
[1126.04 --> 1129.50] Namely, like the get set type problems.
[1129.72 --> 1133.80] Like the way that Ember used to work where you have to do dot get and dot set.
[1133.80 --> 1145.24] Like there was a world where proxies in the future could do more getter setter type stuff to where you could just say, you know, like my object dot foo equals five.
[1145.24 --> 1151.24] And then that would be the same as saying my object set foo five or whatever.
[1151.24 --> 1157.28] It would happen to do like it would need to do that because we need to run functions when things change in order to re-render.
[1157.28 --> 1169.96] But now with like virtual doms and all that kind of stuff, like the community moved on to different techniques for solving that problem that are a little less magic.
[1170.72 --> 1172.52] So I think proxies kind of fell.
[1172.96 --> 1177.14] There are certainly like use cases, but I think they're pretty small.
[1177.14 --> 1183.22] So generally, if you're using proxies, you're hacking the crap out of a closed library these days.
[1183.22 --> 1192.90] Yeah, I remember similar features are in Python metaclasses and the guidance for metaclasses is don't use metaclasses.
[1195.68 --> 1197.52] Other things I'm trying to think.
[1197.76 --> 1202.54] There are definitely like proposals that I think it's less about.
[1202.74 --> 1204.60] I'll use anything that's kind of in the language.
[1204.84 --> 1212.98] Like they're pretty conservative, I think, about by the time it gets in the language, everyone's already been using it for so long that it's not even.
[1213.22 --> 1214.66] That cool.
[1215.54 --> 1222.30] But there are definitely things that are, you know, level two in the spec that I don't think are ever going to make it.
[1222.50 --> 1229.74] Things like you could turn on stuff for like immutable types or even like one thing I don't use is decorators.
[1230.42 --> 1234.70] I am skeptical that decorators are going to go the distance.
[1234.96 --> 1239.06] And so I've been avoiding decorators.
[1239.30 --> 1240.60] I don't have any data.
[1240.60 --> 1243.46] I'm just waiting till they're like more of a sure thing, I guess.
[1244.02 --> 1246.86] I used them when I was a Python programmer.
[1247.20 --> 1250.88] And my general feeling is that they complicate more than they simplify.
[1251.66 --> 1258.48] Yeah, there are some cases where they're like, I think the authentication case for decorators is so pretty all the time.
[1258.48 --> 1267.70] It's just like this is an authenticated function and just like magically makes off something that makes sense like on a per function basis.
[1268.00 --> 1272.96] And so like that's such a cool use case for decorators that it makes you want to use them a little bit more.
[1273.16 --> 1275.76] But I think they have a place.
[1275.90 --> 1278.04] And I know the Ember community uses them a little bit.
[1278.22 --> 1279.82] Like there are also people in the React community.
[1280.82 --> 1285.76] Ember concurrent uses decorators to do some of their stuff.
[1285.76 --> 1288.12] And I think that it's a decent use case for it.
[1288.12 --> 1295.44] But in general, I haven't seen a huge need for them, even though I'd probably use them once they made it into the language.
[1295.96 --> 1299.78] Once they became more of a first class supported thing by the libraries I was using.
[1300.44 --> 1300.70] I don't know.
[1300.90 --> 1303.70] I'm more on the functional programming side of things.
[1303.88 --> 1307.32] And so I just don't like encouraging people to write more classes.
[1307.32 --> 1307.96] Sure.
[1308.40 --> 1311.56] I think, I mean, that's a different conversation.
[1311.88 --> 1319.64] But there are kind of two properties that I think the, I'm pretty happy with the React worlds.
[1320.42 --> 1324.60] There are function components and some people are very big into that.
[1324.80 --> 1328.30] But I actually don't mind the class components.
[1328.30 --> 1335.82] But then all functions that are a part of it are like pure functions and like that kind of stuff.
[1335.92 --> 1344.20] Kind of a mix of some of the better parts of each of the patterns to where you don't have crazy side effects and you don't have these different things.
[1345.56 --> 1354.54] But then your kind of view layer is a little more readable than just, you know, a function that calls a function that sends half of its arguments to another function.
[1354.54 --> 1356.96] So, I don't know.
[1357.04 --> 1358.20] I think there's middle ground there.
[1358.32 --> 1358.88] That's nice.
[1360.14 --> 1360.42] Yeah.
[1360.64 --> 1363.24] I think that we've hit a nice little spot here.
[1364.20 --> 1366.32] I think we can take a short break.
[1366.92 --> 1370.04] When we come back, we're going to get into Create React App.
[1371.74 --> 1377.62] First sponsor of the show today is our friends at Sentry, helping you to find and fix your errors in your applications.
[1378.22 --> 1380.54] You can start tracking your errors today totally free.
[1380.54 --> 1386.16] They support React, Angular, Ember, Vue, Backbone, and no free marks like Express and Koa.
[1386.44 --> 1390.40] You can view actual code and stack traces, including support for source maps.
[1390.86 --> 1393.66] See the errors URL, parameters, and session information.
[1394.20 --> 1397.12] And even prompt your users for feedback when you have front-end errors.
[1397.46 --> 1399.94] Head to jsparty.fm slash Sentry.
[1400.14 --> 1401.78] Start tracking your errors for free today.
[1402.14 --> 1403.06] No credit card required.
[1403.32 --> 1404.62] Get off the ground with their free plan.
[1404.94 --> 1407.48] And when you're ready to expand your usage, simply pay as you go.
[1407.48 --> 1410.86] So, once again, jsparty.fm slash Sentry.
[1411.04 --> 1412.08] And now back to the show.
[1414.18 --> 1418.98] We're going to get into some new features that just landed in Create React App.
[1419.40 --> 1421.60] It actually seems like a pretty substantial change.
[1422.12 --> 1422.76] We've talked about Create React.
[1422.76 --> 1423.24] 1.0.
[1423.58 --> 1424.12] Yeah, yeah.
[1424.18 --> 1427.28] We've talked about Create React App on the show before.
[1427.54 --> 1434.54] But Alex, why don't you give us a little bit of that backstory and a little bit about this in less than 12 minutes.
[1434.84 --> 1435.28] How about that?
[1435.28 --> 1436.40] In less than 12 minutes.
[1436.40 --> 1437.14] That's tough.
[1437.38 --> 1438.72] That's an Alex problem.
[1439.42 --> 1439.64] All right.
[1439.86 --> 1443.32] Create React App is very similar to Ember CLI.
[1443.44 --> 1450.96] If you've ever used Ember, I think Angular has its own CLI tool as well that I don't know the name of.
[1450.96 --> 1461.08] But pretty much the goal of Create React App is to kind of manage all of the things that Michael's always complaining about for you.
[1461.26 --> 1462.56] That way you don't have to care about them.
[1462.56 --> 1474.02] So if you want to color completely in the lines of the suggested React world set of tools.