text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
want to tolerate a username there so I | 6,317.84 | 4.839 |
think we just want the carrot symbol | 6,320.159 | 4.921 |
there there's a subtle bug that no one | 6,322.679 | 4.48 |
yet mentioned and let me just kind of | 6,325.08 | 5 |
highlight it and see if it jumps out at | 6,327.159 | 4.921 |
you now it's a little subtle here on my | 6,330.08 | 6.119 |
screen I've highlighted in blue a final | 6,332.08 | 7.44 |
bug here maybe some Smiles on the screen | 6,336.199 | 6.801 |
yeah can we take one hand here why am I | 6,339.52 | 6.36 |
highlighting the dot in twitter.com even | 6,343 | 5.28 |
though it definitely should be there so | 6,345.88 | 5.4 |
the dot without a backlash mean any c is | 6,348.28 | 5.879 |
up a new line yeah exactly it's not it's | 6,351.28 | 5 |
means any character so I could type in | 6,354.159 | 5.52 |
something like Twitter uh question markc | 6,356.28 | 6 |
or Twitter anything C and that would | 6,359.679 | 5 |
actually be tolerated it's not really | 6,362.28 | 4.839 |
that bad cuz why would the user do that | 6,364.679 | 4.48 |
but if I want to be correct and I want | 6,367.119 | 4.681 |
to be able to test my own code properly | 6,369.159 | 4.201 |
I should really get this detail right so | 6,371.8 | 3.64 |
that's an easy fix too but it's a common | 6,373.36 | 3.96 |
mistake anytime you're writing regular | 6,375.44 | 3.719 |
Expressions that happen to involve | 6,377.32 | 5 |
special symbols like dots in a URL or | 6,379.159 | 5.48 |
domain name a dollar sign in something | 6,382.32 | 4.48 |
involving currency remember you might | 6,384.639 | 4.121 |
indeed Need to Escape it with a | 6,386.8 | 4.12 |
backslash like this here all right let | 6,388.76 | 4.399 |
me ask the group about the protocol | 6,390.92 | 5.08 |
specifically https is a good thing in | 6,393.159 | 4.881 |
the world it means secure there is | 6,396 | 4.199 |
encryption being used so generally you | 6,398.04 | 4.599 |
like to see https but you still see | 6,400.199 | 6.4 |
people typing or copy pasting HTTP what | 6,402.639 | 6.52 |
would be the simplest fix here to | 6,406.599 | 6.08 |
tolerate as has been proposed both HTTP | 6,409.159 | 6.601 |
and and https I'm going to propose that | 6,412.679 | 5.841 |
I could do this I could do HTTP vertical | 6,415.76 | 6.919 |
bar or https which again Means A or B | 6,418.52 | 6.04 |
but I think I can be smarter than that I | 6,422.679 | 4.201 |
can keep my code a little more succinct | 6,424.56 | 4.84 |
any recommendations here for | 6,426.88 | 5.56 |
tolerating HTTP or | 6,429.4 | 6.04 |
https we could try to put an question | 6,432.44 | 5.719 |
mark behind the S perfect just use a | 6,435.44 | 4.44 |
question mark right like both of those | 6,438.159 | 3.241 |
would be viable Solutions if you want to | 6,439.88 | 3.719 |
be super explicit in your code fine use | 6,441.4 | 5.6 |
parenthesis and say HTTP or https so | 6,443.599 | 5.241 |
that you the reader your boss your | 6,447 | 3.679 |
teacher just know exactly what you're | 6,448.84 | 4.24 |
doing but you know if you keep taking | 6,450.679 | 4.081 |
the more of verbose approach all the | 6,453.08 | 3.32 |
time it might actually become less | 6,454.76 | 3.52 |
readable certainly once your regular | 6,456.4 | 3.799 |
Expressions get this big instead of this | 6,458.28 | 4.16 |
big so let's save space where we can and | 6,460.199 | 3.761 |
I would argue that this is pretty | 6,462.44 | 3.32 |
reasonable so long as you're in the | 6,463.96 | 3.639 |
habits of reading regular expressions | 6,465.76 | 3.28 |
and know that question mark does not | 6,467.599 | 3 |
mean a literal question mark but it | 6,469.04 | 4.159 |
means zero or one of the thing before I | 6,470.599 | 4.761 |
think we've effectively made the S | 6,473.199 | 5.081 |
optional here now what else can I do | 6,475.36 | 6.08 |
well suppose we want to tolerate the www | 6,478.28 | 5.72 |
dot which may or may not be there uh but | 6,481.44 | 4.759 |
it will work if you go to a browser I | 6,484 | 4.52 |
could do this | 6,486.199 | 5.201 |
www. uh wait I want a backslash there so | 6,488.52 | 4.24 |
I don't repeat the same mistake as | 6,491.4 | 3.44 |
before but this is no good either | 6,492.76 | 5.359 |
because I want to tolerate www being | 6,494.84 | 5.48 |
there or not being there and now I've | 6,498.119 | 4.04 |
just required that it be there but I | 6,500.32 | 4.44 |
think I can take same approach any | 6,502.159 | 5.401 |
recommendations how do I make the www do | 6,504.76 | 5.879 |
optional just to hammer this home we can | 6,507.56 | 6.72 |
like group uh make a square | 6,510.639 | 6.56 |
and question mark perfect so question | 6,514.28 | 5 |
mark is the short answer again but we | 6,517.199 | 3.48 |
have to be a little smarter this time as | 6,519.28 | 3.839 |
Maria's noted we need parentheses now | 6,520.679 | 4.401 |
because if I just put a question mark | 6,523.119 | 4.681 |
after the dot that just means the dot is | 6,525.08 | 4.28 |
optional and that's wrong because we | 6,527.8 | 5 |
don't want the user to type in wwwt w i | 6,529.36 | 6.16 |
TT e r we want the dot to be there or | 6,532.8 | 5.2 |
just not at all with no www so we need | 6,535.52 | 4.76 |
to group this whole thing together put a | 6,538 | 4.56 |
parenthesis there and then a parenthesis | 6,540.28 | 5.839 |
not after the third W after the dot so | 6,542.56 | 6.2 |
that that whole thing is either there or | 6,546.119 | 5.161 |
it's not there and what else could we | 6,548.76 | 4.2 |
still do here you know there's going to | 6,551.28 | 3.24 |
be one other thing we should tolerate | 6,552.96 | 2.92 |
and it's been said before and I'll pluck | 6,554.52 | 3.76 |
this one off what about the protocol | 6,555.88 | 4.08 |
like what if the user just doesn't type | 6,558.28 | 4.879 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.