workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
I had a good 5 hours of sleep.
2017-07-17T01:22:19.820779
Hattie
pythondev_help_Hattie_2017-07-17T01:22:19.820779
1,500,254,539.820779
85,703
pythondev
help
Its 10AM here and the interview is at 6PM
2017-07-17T01:22:31.822187
Hattie
pythondev_help_Hattie_2017-07-17T01:22:31.822187
1,500,254,551.822187
85,704
pythondev
help
ahh
2017-07-17T01:22:37.822844
Marcie
pythondev_help_Marcie_2017-07-17T01:22:37.822844
1,500,254,557.822844
85,705
pythondev
help
that's not too bad i guess
2017-07-17T01:22:40.823196
Marcie
pythondev_help_Marcie_2017-07-17T01:22:40.823196
1,500,254,560.823196
85,706
pythondev
help
if it's a junior position, try and focus on what you've learned in your months with django, try and identify what you're doing well and what you're excited to learn next
2017-07-17T01:23:40.830353
Marcie
pythondev_help_Marcie_2017-07-17T01:23:40.830353
1,500,254,620.830353
85,707
pythondev
help
ensure you know how testing frameworks interact with django, ensure you know how to write some tests, maybe go over the model and filtering examples again so you're aware of filter chaining and foreign key relationships
2017-07-17T01:24:43.838348
Marcie
pythondev_help_Marcie_2017-07-17T01:24:43.838348
1,500,254,683.838348
85,708
pythondev
help
`/reports/<lat>/<long>/` vs. `/reports/?lat=x&long=y` What do you guys think? :slightly_smiling_face:
2017-07-17T02:54:01.690540
Thomasina
pythondev_help_Thomasina_2017-07-17T02:54:01.690540
1,500,260,041.69054
85,709
pythondev
help
Got you. Thanks <@Marcie>
2017-07-17T03:42:07.417543
Alvina
pythondev_help_Alvina_2017-07-17T03:42:07.417543
1,500,262,927.417543
85,710
pythondev
help
<@Thomasina> first one
2017-07-17T04:10:46.932418
Suellen
pythondev_help_Suellen_2017-07-17T04:10:46.932418
1,500,264,646.932418
85,711
pythondev
help
there are always gonna be `lat` and `long` params, and this way it looks pretty
2017-07-17T04:11:11.939795
Suellen
pythondev_help_Suellen_2017-07-17T04:11:11.939795
1,500,264,671.939795
85,712
pythondev
help
hi I have a doubt what is the difference between json.loads(b’byte_string_from_outside’) and b’byte_string_from_outside’.decode(‘utf-8’) because I read docs and experiment a little bit but is confusing because but seem to work, which one should go ?
2017-07-17T04:21:41.137490
Coretta
pythondev_help_Coretta_2017-07-17T04:21:41.137490
1,500,265,301.13749
85,713
pythondev
help
The former will return a `dict` representation of the JSON. The latter just returns a `str`.
2017-07-17T04:24:14.187058
Carri
pythondev_help_Carri_2017-07-17T04:24:14.187058
1,500,265,454.187058
85,714
pythondev
help
in the first case may be returned any type that can be represented in json, not only dict
2017-07-17T04:27:35.253412
Luana
pythondev_help_Luana_2017-07-17T04:27:35.253412
1,500,265,655.253412
85,715
pythondev
help
``` &gt;&gt;&gt; json.loads('42') 42 &gt;&gt;&gt; json.loads('[1,2,3]') [1, 2, 3] ```
2017-07-17T04:27:58.261061
Luana
pythondev_help_Luana_2017-07-17T04:27:58.261061
1,500,265,678.261061
85,716
pythondev
help
<@Thomasina>, have to disagee with <@Suellen>. The second would be my preference
2017-07-17T05:14:03.208345
Meg
pythondev_help_Meg_2017-07-17T05:14:03.208345
1,500,268,443.208345
85,717
pythondev
help
especially with a rest api resource, wince `report` is a verb, and defines a resource
2017-07-17T05:14:28.217300
Meg
pythondev_help_Meg_2017-07-17T05:14:28.217300
1,500,268,468.2173
85,718
pythondev
help
`lat` and `long` are attributes for that resource
2017-07-17T05:14:40.221771
Meg
pythondev_help_Meg_2017-07-17T05:14:40.221771
1,500,268,480.221771
85,719
pythondev
help
but I would suggest definining what the requirements for `report` is... eg `location`
2017-07-17T05:15:51.247182
Meg
pythondev_help_Meg_2017-07-17T05:15:51.247182
1,500,268,551.247182
85,720
pythondev
help
`/report/location?lat=&lt;lat&gt;&amp;long=&lt;long&gt;`
2017-07-17T05:16:10.253566
Meg
pythondev_help_Meg_2017-07-17T05:16:10.253566
1,500,268,570.253566
85,721
pythondev
help
looks awful %)
2017-07-17T05:16:15.255607
Suellen
pythondev_help_Suellen_2017-07-17T05:16:15.255607
1,500,268,575.255607
85,722
pythondev
help
so this is better? `/report/90.49283/-56.934`?
2017-07-17T05:16:43.265257
Meg
pythondev_help_Meg_2017-07-17T05:16:43.265257
1,500,268,603.265257
85,723
pythondev
help
that doesn't make any sense,
2017-07-17T05:16:50.267421
Meg
pythondev_help_Meg_2017-07-17T05:16:50.267421
1,500,268,610.267421
85,724
pythondev
help
why?
2017-07-17T05:16:53.268641
Suellen
pythondev_help_Suellen_2017-07-17T05:16:53.268641
1,500,268,613.268641
85,725
pythondev
help
it's the same thing
2017-07-17T05:16:57.270075
Suellen
pythondev_help_Suellen_2017-07-17T05:16:57.270075
1,500,268,617.270075
85,726
pythondev
help
looking at it, it has no context at all
2017-07-17T05:17:07.273602
Meg
pythondev_help_Meg_2017-07-17T05:17:07.273602
1,500,268,627.273602
85,727
pythondev
help
and why do you need context while looking at the URL?
2017-07-17T05:17:22.278818
Suellen
pythondev_help_Suellen_2017-07-17T05:17:22.278818
1,500,268,642.278818
85,728
pythondev
help
`?`, `=` and `&amp;` have almost no place in 2017
2017-07-17T05:18:10.295465
Suellen
pythondev_help_Suellen_2017-07-17T05:18:10.295465
1,500,268,690.295465
85,729
pythondev
help
oh bull
2017-07-17T05:18:14.296917
Meg
pythondev_help_Meg_2017-07-17T05:18:14.296917
1,500,268,694.296917
85,730
pythondev
help
they absolutely do
2017-07-17T05:18:23.299867
Meg
pythondev_help_Meg_2017-07-17T05:18:23.299867
1,500,268,703.299867
85,731
pythondev
help
As a user, it's more confusing to see `?`, `=` and `&amp;`, then just `/`
2017-07-17T05:18:40.305825
Suellen
pythondev_help_Suellen_2017-07-17T05:18:40.305825
1,500,268,720.305825
85,732
pythondev
help
why do my URLs have to look like that?
2017-07-17T05:18:55.311443
Suellen
pythondev_help_Suellen_2017-07-17T05:18:55.311443
1,500,268,735.311443
85,733
pythondev
help
so, I fail to see how the first makes more sense
2017-07-17T05:18:57.312022
Meg
pythondev_help_Meg_2017-07-17T05:18:57.312022
1,500,268,737.312022
85,734
pythondev
help
location with two numbers in slashes
2017-07-17T05:19:08.315951
Meg
pythondev_help_Meg_2017-07-17T05:19:08.315951
1,500,268,748.315951
85,735
pythondev
help
what are those numbers?
2017-07-17T05:19:21.320255
Meg
pythondev_help_Meg_2017-07-17T05:19:21.320255
1,500,268,761.320255
85,736
pythondev
help
Let's see how FB does it: `<https://www.facebook.com/notes/equine-calculator/how-to-claim-your-vanity-url-for-your-facebook-page/474147772600069/>`
2017-07-17T05:19:22.320835
Suellen
pythondev_help_Suellen_2017-07-17T05:19:22.320835
1,500,268,762.320835
85,737
pythondev
help
`<https://www.facebook.com/help/121237621291199>`
2017-07-17T05:19:43.328359
Suellen
pythondev_help_Suellen_2017-07-17T05:19:43.328359
1,500,268,783.328359
85,738
pythondev
help
Not `<http://facebook.com/?action=help&amp;id=1212376|facebook.com/?action=help&amp;id=1212376>...`
2017-07-17T05:20:00.334220
Suellen
pythondev_help_Suellen_2017-07-17T05:20:00.334220
1,500,268,800.33422
85,739
pythondev
help
doesnt apply here exactly
2017-07-17T05:20:06.336337
Meg
pythondev_help_Meg_2017-07-17T05:20:06.336337
1,500,268,806.336337
85,740
pythondev
help
because `/help` is just one resource that takes in one parameter
2017-07-17T05:20:21.341385
Meg
pythondev_help_Meg_2017-07-17T05:20:21.341385
1,500,268,821.341385
85,741
pythondev
help
`/report/number/number` is pretty crappy design
2017-07-17T05:20:37.346881
Meg
pythondev_help_Meg_2017-07-17T05:20:37.346881
1,500,268,837.346881
85,742
pythondev
help
no, that's way too technical of an explanation
2017-07-17T05:20:40.347867
Suellen
pythondev_help_Suellen_2017-07-17T05:20:40.347867
1,500,268,840.347867
85,743
pythondev
help
doesn't tell me anything abut what `report` is to take
2017-07-17T05:20:55.352998
Meg
pythondev_help_Meg_2017-07-17T05:20:55.352998
1,500,268,855.352998
85,744
pythondev
help
<http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#advanced-queries>
2017-07-17T05:21:31.364973
Meg
pythondev_help_Meg_2017-07-17T05:21:31.364973
1,500,268,891.364973
85,745
pythondev
help
once you visit literally one report page you'll know exactly how to use it
2017-07-17T05:21:34.365900
Suellen
pythondev_help_Suellen_2017-07-17T05:21:34.365900
1,500,268,894.3659
85,746
pythondev
help
and then looking through a list of URL endpoints
2017-07-17T05:22:13.378966
Meg
pythondev_help_Meg_2017-07-17T05:22:13.378966
1,500,268,933.378966
85,747
pythondev
help
where `report` can have multiple filters
2017-07-17T05:22:21.381787
Meg
pythondev_help_Meg_2017-07-17T05:22:21.381787
1,500,268,941.381787
85,748
pythondev
help
&gt; An API is the user interface for a developer
2017-07-17T05:23:19.401724
Suellen
pythondev_help_Suellen_2017-07-17T05:23:19.401724
1,500,268,999.401724
85,749
pythondev
help
you kinda forgot about the users here
2017-07-17T05:23:24.403493
Suellen
pythondev_help_Suellen_2017-07-17T05:23:24.403493
1,500,269,004.403493
85,750
pythondev
help
doing things by the book will only make other developers pat you on the back
2017-07-17T05:23:44.410466
Suellen
pythondev_help_Suellen_2017-07-17T05:23:44.410466
1,500,269,024.410466
85,751
pythondev
help
so?
2017-07-17T05:24:02.416803
Meg
pythondev_help_Meg_2017-07-17T05:24:02.416803
1,500,269,042.416803
85,752
pythondev
help
`/reports` is a good identifier
2017-07-17T05:24:16.421346
Meg
pythondev_help_Meg_2017-07-17T05:24:16.421346
1,500,269,056.421346
85,753
pythondev
help
leaving everything else after that in slashes is crappy design
2017-07-17T05:24:38.428991
Meg
pythondev_help_Meg_2017-07-17T05:24:38.428991
1,500,269,078.428991
85,754
pythondev
help
especially when the purpose is to _filter_
2017-07-17T05:24:50.433179
Meg
pythondev_help_Meg_2017-07-17T05:24:50.433179
1,500,269,090.433179
85,755
pythondev
help
so what happens if a person DOES implement it that way?
2017-07-17T05:25:22.444359
Suellen
pythondev_help_Suellen_2017-07-17T05:25:22.444359
1,500,269,122.444359
85,756
pythondev
help
what's the penalty for crappy design
2017-07-17T05:25:36.448854
Suellen
pythondev_help_Suellen_2017-07-17T05:25:36.448854
1,500,269,136.448854
85,757
pythondev
help
give someone else the project
2017-07-17T05:25:48.453236
Meg
pythondev_help_Meg_2017-07-17T05:25:48.453236
1,500,269,148.453236
85,758
pythondev
help
developers are angry and users are a tiny bit less confused %)
2017-07-17T05:25:52.454846
Suellen
pythondev_help_Suellen_2017-07-17T05:25:52.454846
1,500,269,152.454846
85,759
pythondev
help
with crappy URL structure
2017-07-17T05:25:54.455206
Meg
pythondev_help_Meg_2017-07-17T05:25:54.455206
1,500,269,154.455206
85,760
pythondev
help
then you get a high WTF count and swear plenty at the idiot who came up with the URLs :slightly_smiling_face:
2017-07-17T05:26:16.462767
Meg
pythondev_help_Meg_2017-07-17T05:26:16.462767
1,500,269,176.462767
85,761
pythondev
help
but no complaints from users?
2017-07-17T05:26:34.469284
Suellen
pythondev_help_Suellen_2017-07-17T05:26:34.469284
1,500,269,194.469284
85,762
pythondev
help
users don't give a shit
2017-07-17T05:26:41.471548
Meg
pythondev_help_Meg_2017-07-17T05:26:41.471548
1,500,269,201.471548
85,763
pythondev
help
I could theoretically recite this URL to my mum over the phone
2017-07-17T05:26:50.474680
Suellen
pythondev_help_Suellen_2017-07-17T05:26:50.474680
1,500,269,210.47468
85,764
pythondev
help
the one with `?stuff=thing&amp;other=dunno`? not so much
2017-07-17T05:27:07.480353
Suellen
pythondev_help_Suellen_2017-07-17T05:27:07.480353
1,500,269,227.480353
85,765
pythondev
help
thing about this, you can do what you want
2017-07-17T05:28:33.510501
Meg
pythondev_help_Meg_2017-07-17T05:28:33.510501
1,500,269,313.510501
85,766
pythondev
help
there's just convention, not hard rules
2017-07-17T05:28:55.518045
Meg
pythondev_help_Meg_2017-07-17T05:28:55.518045
1,500,269,335.518045
85,767
pythondev
help
your method to me, is confusing
2017-07-17T05:29:11.523738
Meg
pythondev_help_Meg_2017-07-17T05:29:11.523738
1,500,269,351.523738
85,768
pythondev
help
as a developer and a user
2017-07-17T05:29:17.525958
Meg
pythondev_help_Meg_2017-07-17T05:29:17.525958
1,500,269,357.525958
85,769
pythondev
help
because all it does is tell me this is a report link
2017-07-17T05:29:26.529043
Meg
pythondev_help_Meg_2017-07-17T05:29:26.529043
1,500,269,366.529043
85,770
pythondev
help
with some numbers
2017-07-17T05:29:29.530173
Meg
pythondev_help_Meg_2017-07-17T05:29:29.530173
1,500,269,369.530173
85,771
pythondev
help
nothing about _what_ those numbers are and do
2017-07-17T05:29:37.532717
Meg
pythondev_help_Meg_2017-07-17T05:29:37.532717
1,500,269,377.532717
85,772
pythondev
help
you are trying to know what an URL is before visiting it
2017-07-17T05:29:56.539302
Suellen
pythondev_help_Suellen_2017-07-17T05:29:56.539302
1,500,269,396.539302
85,773
pythondev
help
just open the page and it will be clear as day, you'll never forget those two numbers
2017-07-17T05:30:15.546242
Suellen
pythondev_help_Suellen_2017-07-17T05:30:15.546242
1,500,269,415.546242
85,774
pythondev
help
never forget two eight digit numbers? got photographic memory? :slightly_smiling_face:
2017-07-17T05:31:12.566242
Meg
pythondev_help_Meg_2017-07-17T05:31:12.566242
1,500,269,472.566242
85,775
pythondev
help
so your argument is that its easier to describe over the phone
2017-07-17T05:32:17.588631
Meg
pythondev_help_Meg_2017-07-17T05:32:17.588631
1,500,269,537.588631
85,776
pythondev
help
where theres no copying and pasting involved
2017-07-17T05:32:24.591120
Meg
pythondev_help_Meg_2017-07-17T05:32:24.591120
1,500,269,544.59112
85,777
pythondev
help
and that you're willing to accept the consequences of developer confusion and bad practices for that
2017-07-17T05:33:04.604821
Meg
pythondev_help_Meg_2017-07-17T05:33:04.604821
1,500,269,584.604821
85,778
pythondev
help
Just to add my $0.02; I also prefer the explicit lat/lng arguments, and dislike having things in the main URI path if they don't follow some sort of hierarchy
2017-07-17T05:39:02.727902
Gabriele
pythondev_help_Gabriele_2017-07-17T05:39:02.727902
1,500,269,942.727902
85,779
pythondev
help
It does make the URIs a bit uglier but I don't think that matters in this context
2017-07-17T05:39:31.736973
Gabriele
pythondev_help_Gabriele_2017-07-17T05:39:31.736973
1,500,269,971.736973
85,780
pythondev
help
:cry:
2017-07-17T06:43:21.936807
Suellen
pythondev_help_Suellen_2017-07-17T06:43:21.936807
1,500,273,801.936807
85,781
pythondev
help
Where can I import `MatchObject` from?
2017-07-17T07:16:33.502404
Vada
pythondev_help_Vada_2017-07-17T07:16:33.502404
1,500,275,793.502404
85,782
pythondev
help
for re
2017-07-17T07:16:38.503642
Vada
pythondev_help_Vada_2017-07-17T07:16:38.503642
1,500,275,798.503642
85,783
pythondev
help
+1 on using query parameters. in addition to what was mentioned, doing `/lat/lon` also makes it more confusing as it makes it appear to be a parent/child relationship almost. the other form makes for sense for say, a user photo, where you end up with `/user/123456/photos/1241241`
2017-07-17T07:56:02.175639
Patty
pythondev_help_Patty_2017-07-17T07:56:02.175639
1,500,278,162.175639
85,784
pythondev
help
Thank you all for the input! I really appreciate it. I will be implementing lat/long as query params. On a side note, with SQLAlchemy, what would be the best data type for storing a lat or long? I was going to use a float but I'm not sure if that's overkill.
2017-07-17T08:50:55.338133
Thomasina
pythondev_help_Thomasina_2017-07-17T08:50:55.338133
1,500,281,455.338133
85,785
pythondev
help
float, with `asdecimal=True`
2017-07-17T08:54:38.432944
Meg
pythondev_help_Meg_2017-07-17T08:54:38.432944
1,500,281,678.432944
85,786
pythondev
help
<@Meg> Oh, I was weighing the pros and cons of float vs. decimal. With `asdecimal=True` does this mean I'm using a decimal, or is this some kind of float/decimal hybrid?
2017-07-17T08:56:09.471817
Thomasina
pythondev_help_Thomasina_2017-07-17T08:56:09.471817
1,500,281,769.471817
85,787
pythondev
help
<http://docs.sqlalchemy.org/en/latest/core/type_basics.html#sqlalchemy.types.Float>
2017-07-17T08:56:46.487789
Meg
pythondev_help_Meg_2017-07-17T08:56:46.487789
1,500,281,806.487789
85,788
pythondev
help
&gt;&gt;&gt;Type representing floating point types, such as FLOAT or REAL. This type returns Python float objects by default, unless the Float.asdecimal flag is set to True, in which case they are coerced to decimal.Decimal objects.
2017-07-17T08:57:07.497039
Meg
pythondev_help_Meg_2017-07-17T08:57:07.497039
1,500,281,827.497039
85,789
pythondev
help
Ah, ok, I got it. Thanks!! Is your recommendation of decimal due to its accuracy?
2017-07-17T08:59:10.550020
Thomasina
pythondev_help_Thomasina_2017-07-17T08:59:10.550020
1,500,281,950.55002
85,790
pythondev
help
no
2017-07-17T08:59:40.563354
Meg
pythondev_help_Meg_2017-07-17T08:59:40.563354
1,500,281,980.563354
85,791
pythondev
help
you're storing coordinates
2017-07-17T08:59:45.566012
Meg
pythondev_help_Meg_2017-07-17T08:59:45.566012
1,500,281,985.566012
85,792
pythondev
help
so you need something with that ability
2017-07-17T09:00:00.572460
Meg
pythondev_help_Meg_2017-07-17T09:00:00.572460
1,500,282,000.57246
85,793
pythondev
help
specifically, store decimal numbers
2017-07-17T09:01:09.609567
Meg
pythondev_help_Meg_2017-07-17T09:01:09.609567
1,500,282,069.609567
85,794
pythondev
help
<https://docs.python.org/2/library/stdtypes.html#typesnumeric>
2017-07-17T09:01:17.613467
Meg
pythondev_help_Meg_2017-07-17T09:01:17.613467
1,500,282,077.613467
85,795
pythondev
help
Not wanting to throw an extra complication into the mix, but if you're doing a lot of geographical work, you might want to be using something like PostGIS and doing spatial queries on the DB
2017-07-17T09:01:52.630362
Gabriele
pythondev_help_Gabriele_2017-07-17T09:01:52.630362
1,500,282,112.630362
85,796
pythondev
help
(Also, yes, float isn't quite high-precision enough for most lat/long values that we work with, but only just)
2017-07-17T09:06:05.748606
Gabriele
pythondev_help_Gabriele_2017-07-17T09:06:05.748606
1,500,282,365.748606
85,797
pythondev
help
<@Gabriele> Oh wow! I was doing all the geo stuff from scratch, not realizing there could be something like PostGIS! I was still figuring out an efficient method for finding records with locations within a certain distance of a specific lat/long, but I guess PostGIS can already do that.
2017-07-17T09:13:06.945143
Thomasina
pythondev_help_Thomasina_2017-07-17T09:13:06.945143
1,500,282,786.945143
85,798
pythondev
help
you need to use postgres for it, though
2017-07-17T09:14:06.973666
Meg
pythondev_help_Meg_2017-07-17T09:14:06.973666
1,500,282,846.973666
85,799
pythondev
help
if that's not part of your stack...
2017-07-17T09:14:16.978549
Meg
pythondev_help_Meg_2017-07-17T09:14:16.978549
1,500,282,856.978549
85,800
pythondev
help
see also <https://geoalchemy-2.readthedocs.io/en/latest/>
2017-07-17T09:14:18.979319
Gabriele
pythondev_help_Gabriele_2017-07-17T09:14:18.979319
1,500,282,858.979319
85,801
pythondev
help
Yep, I'm currently using Postgres
2017-07-17T09:14:22.981413
Thomasina
pythondev_help_Thomasina_2017-07-17T09:14:22.981413
1,500,282,862.981413
85,802