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 | because if you’re jumping into a project with the core requirements and data in flux, anything you do after that is chasing your tail | 2018-01-18T16:22:48.000644 | Floy | pythondev_help_Floy_2018-01-18T16:22:48.000644 | 1,516,292,568.000644 | 29,724 |
pythondev | help | I'm going to try to build a production system for myself finally | 2018-01-18T16:22:57.000576 | Stefan | pythondev_help_Stefan_2018-01-18T16:22:57.000576 | 1,516,292,577.000576 | 29,725 |
pythondev | help | doing consultancy and fancy new stuff is fun, but I feel like when stuff would get "serious" I'm not prepared | 2018-01-18T16:23:23.001271 | Stefan | pythondev_help_Stefan_2018-01-18T16:23:23.001271 | 1,516,292,603.001271 | 29,726 |
pythondev | help | <@Floy> yea... tough stuff :confused: | 2018-01-18T16:24:20.000814 | Stefan | pythondev_help_Stefan_2018-01-18T16:24:20.000814 | 1,516,292,660.000814 | 29,727 |
pythondev | help | I'll watch the video and stop bitching and start collecting data | 2018-01-18T16:24:51.000023 | Stefan | pythondev_help_Stefan_2018-01-18T16:24:51.000023 | 1,516,292,691.000023 | 29,728 |
pythondev | help | postgres + sqlalchemy = can't really go wrong | 2018-01-18T16:25:12.000936 | Stefan | pythondev_help_Stefan_2018-01-18T16:25:12.000936 | 1,516,292,712.000936 | 29,729 |
pythondev | help | things that will go wrong will just be lessons learned | 2018-01-18T16:25:41.000303 | Stefan | pythondev_help_Stefan_2018-01-18T16:25:41.000303 | 1,516,292,741.000303 | 29,730 |
pythondev | help | I highly recommend reading Mike Bayer’s chapter in `The Architecture of Open Source Applications`. SQLAlchemy is essentially a great example of using Fowlers enterprise patterns. <http://aosabook.org/en/sqlalchemy.html> | 2018-01-18T16:25:48.000950 | Davina | pythondev_help_Davina_2018-01-18T16:25:48.000950 | 1,516,292,748.00095 | 29,731 |
pythondev | help | as you can see i’m a big fan. | 2018-01-18T16:26:02.000487 | Davina | pythondev_help_Davina_2018-01-18T16:26:02.000487 | 1,516,292,762.000487 | 29,732 |
pythondev | help | lol | 2018-01-18T16:26:10.000814 | Davina | pythondev_help_Davina_2018-01-18T16:26:10.000814 | 1,516,292,770.000814 | 29,733 |
pythondev | help | cool, thanks for the reads :slightly_smiling_face: | 2018-01-18T16:26:11.000537 | Stefan | pythondev_help_Stefan_2018-01-18T16:26:11.000537 | 1,516,292,771.000537 | 29,734 |
pythondev | help | I'm curious to your opinion on some talk I saw some time ago | 2018-01-18T16:26:27.000550 | Stefan | pythondev_help_Stefan_2018-01-18T16:26:27.000550 | 1,516,292,787.00055 | 29,735 |
pythondev | help | where ORMs are pretty much described as the worst thing in the world | 2018-01-18T16:26:36.001008 | Stefan | pythondev_help_Stefan_2018-01-18T16:26:36.001008 | 1,516,292,796.001008 | 29,736 |
pythondev | help | i think they have their place. | 2018-01-18T16:26:48.000493 | Davina | pythondev_help_Davina_2018-01-18T16:26:48.000493 | 1,516,292,808.000493 | 29,737 |
pythondev | help | (mostly in relation to functional programming and habits) | 2018-01-18T16:27:22.000852 | Stefan | pythondev_help_Stefan_2018-01-18T16:27:22.000852 | 1,516,292,842.000852 | 29,738 |
pythondev | help | or differently actually | 2018-01-18T16:27:43.000073 | Stefan | pythondev_help_Stefan_2018-01-18T16:27:43.000073 | 1,516,292,863.000073 | 29,739 |
pythondev | help | some cocky dude's presentation | 2018-01-18T16:28:12.000560 | Stefan | pythondev_help_Stefan_2018-01-18T16:28:12.000560 | 1,516,292,892.00056 | 29,740 |
pythondev | help | pretty much any time anyone says "X is the best/worst thing", they're wrong | 2018-01-18T16:29:17.000222 | Garrett | pythondev_help_Garrett_2018-01-18T16:29:17.000222 | 1,516,292,957.000222 | 29,741 |
pythondev | help | it's from the perspective of like | 2018-01-18T16:29:28.000339 | Stefan | pythondev_help_Stefan_2018-01-18T16:29:28.000339 | 1,516,292,968.000339 | 29,742 |
pythondev | help | its a DSL | 2018-01-18T16:29:30.000399 | Stefan | pythondev_help_Stefan_2018-01-18T16:29:30.000399 | 1,516,292,970.000399 | 29,743 |
pythondev | help | non functional programming style | 2018-01-18T16:29:37.000446 | Stefan | pythondev_help_Stefan_2018-01-18T16:29:37.000446 | 1,516,292,977.000446 | 29,744 |
pythondev | help | how am i going to find this video :confused: | 2018-01-18T16:30:02.000028 | Stefan | pythondev_help_Stefan_2018-01-18T16:30:02.000028 | 1,516,293,002.000028 | 29,745 |
pythondev | help | oh. so someone who finds functional programming to be the holiest of programming styles? | 2018-01-18T16:30:20.000978 | Garrett | pythondev_help_Garrett_2018-01-18T16:30:20.000978 | 1,516,293,020.000978 | 29,746 |
pythondev | help | yeah, you can pretty safely ignore those opinions | 2018-01-18T16:30:28.000774 | Garrett | pythondev_help_Garrett_2018-01-18T16:30:28.000774 | 1,516,293,028.000774 | 29,747 |
pythondev | help | things in programming exist because they have a place | 2018-01-18T16:30:41.000555 | Garrett | pythondev_help_Garrett_2018-01-18T16:30:41.000555 | 1,516,293,041.000555 | 29,748 |
pythondev | help | i think the talk came from the "Rich Hickey" bubble somewhere | 2018-01-18T16:31:58.000547 | Stefan | pythondev_help_Stefan_2018-01-18T16:31:58.000547 | 1,516,293,118.000547 | 29,749 |
pythondev | help | or at least in the time i was researching that lol | 2018-01-18T16:32:02.000416 | Stefan | pythondev_help_Stefan_2018-01-18T16:32:02.000416 | 1,516,293,122.000416 | 29,750 |
pythondev | help | another thing <@Bella> is that sqlalchemy is a toolkit. It takes the position that the developer still needs to know something about the database. You’ll end up creating models and really thinking about your data types. There is great value in this practice alone that will also help when learning SQL. | 2018-01-18T16:36:46.001075 | Davina | pythondev_help_Davina_2018-01-18T16:36:46.001075 | 1,516,293,406.001075 | 29,751 |
pythondev | help | > SQLAlchemy takes the position that the developer must be willing to consider the relational form of his or her data. A system which pre-determines and conceals schema and query design decisions marginalizes the usefulness of using a relational database, leading to all of the classic problems of impedance mismatch.... | 2018-01-18T16:37:28.000768 | Davina | pythondev_help_Davina_2018-01-18T16:37:28.000768 | 1,516,293,448.000768 | 29,752 |
pythondev | help | would you advise also learning alembic on the way? | 2018-01-18T16:37:31.000592 | Stefan | pythondev_help_Stefan_2018-01-18T16:37:31.000592 | 1,516,293,451.000592 | 29,753 |
pythondev | help | from the book earlier | 2018-01-18T16:37:33.000516 | Davina | pythondev_help_Davina_2018-01-18T16:37:33.000516 | 1,516,293,453.000516 | 29,754 |
pythondev | help | alembic is great. it complements sqlalchemy really well. | 2018-01-18T16:37:46.000379 | Davina | pythondev_help_Davina_2018-01-18T16:37:46.000379 | 1,516,293,466.000379 | 29,755 |
pythondev | help | and you’ll probably need to do a schema migration at some point. | 2018-01-18T16:37:57.000011 | Davina | pythondev_help_Davina_2018-01-18T16:37:57.000011 | 1,516,293,477.000011 | 29,756 |
pythondev | help | it's why i fear starting | 2018-01-18T16:38:11.000258 | Stefan | pythondev_help_Stefan_2018-01-18T16:38:11.000258 | 1,516,293,491.000258 | 29,757 |
pythondev | help | because i won't know how to migrate | 2018-01-18T16:38:18.000115 | Stefan | pythondev_help_Stefan_2018-01-18T16:38:18.000115 | 1,516,293,498.000115 | 29,758 |
pythondev | help | it feels like that's not something you can google | 2018-01-18T16:38:30.000251 | Stefan | pythondev_help_Stefan_2018-01-18T16:38:30.000251 | 1,516,293,510.000251 | 29,759 |
pythondev | help | you can configure sqlalchemy to autogenerate schema migrations if you like. | 2018-01-18T16:38:34.000632 | Davina | pythondev_help_Davina_2018-01-18T16:38:34.000632 | 1,516,293,514.000632 | 29,760 |
pythondev | help | i use it all the time. | 2018-01-18T16:38:44.001025 | Davina | pythondev_help_Davina_2018-01-18T16:38:44.001025 | 1,516,293,524.001025 | 29,761 |
pythondev | help | lol i now remember i tried starting a week ago but i got stuck | 2018-01-18T16:38:46.000466 | Stefan | pythondev_help_Stefan_2018-01-18T16:38:46.000466 | 1,516,293,526.000466 | 29,762 |
pythondev | help | and django has migrations as part of the framework | 2018-01-18T16:38:49.000051 | Floy | pythondev_help_Floy_2018-01-18T16:38:49.000051 | 1,516,293,529.000051 | 29,763 |
pythondev | help | yep, in the old days it used something called south. | 2018-01-18T16:39:00.000969 | Davina | pythondev_help_Davina_2018-01-18T16:39:00.000969 | 1,516,293,540.000969 | 29,764 |
pythondev | help | now it’s built-in | 2018-01-18T16:39:10.000237 | Davina | pythondev_help_Davina_2018-01-18T16:39:10.000237 | 1,516,293,550.000237 | 29,765 |
pythondev | help | an example of a third party django package becoming core to the framework | 2018-01-18T16:39:30.000711 | Floy | pythondev_help_Floy_2018-01-18T16:39:30.000711 | 1,516,293,570.000711 | 29,766 |
pythondev | help | the main reason i don’t do django is b/c of my affinity for sqla. | 2018-01-18T16:39:58.000137 | Davina | pythondev_help_Davina_2018-01-18T16:39:58.000137 | 1,516,293,598.000137 | 29,767 |
pythondev | help | I have no idea actually how to find a solution to this | 2018-01-18T16:40:05.000584 | Stefan | pythondev_help_Stefan_2018-01-18T16:40:05.000584 | 1,516,293,605.000584 | 29,768 |
pythondev | help | i can’t let it go. | 2018-01-18T16:40:09.001124 | Davina | pythondev_help_Davina_2018-01-18T16:40:09.001124 | 1,516,293,609.001124 | 29,769 |
pythondev | help | :smile: | 2018-01-18T16:40:13.000827 | Floy | pythondev_help_Floy_2018-01-18T16:40:13.000827 | 1,516,293,613.000827 | 29,770 |
pythondev | help | lol | 2018-01-18T16:40:13.001146 | Davina | pythondev_help_Davina_2018-01-18T16:40:13.001146 | 1,516,293,613.001146 | 29,771 |
pythondev | help | I don't even understand the relation in there really | 2018-01-18T16:40:14.000588 | Stefan | pythondev_help_Stefan_2018-01-18T16:40:14.000588 | 1,516,293,614.000588 | 29,772 |
pythondev | help | haha | 2018-01-18T16:40:20.000540 | Stefan | pythondev_help_Stefan_2018-01-18T16:40:20.000540 | 1,516,293,620.00054 | 29,773 |
pythondev | help | how can I make a `Pair` table which pretty much combines 2 currencies? | 2018-01-18T16:40:35.000392 | Stefan | pythondev_help_Stefan_2018-01-18T16:40:35.000392 | 1,516,293,635.000392 | 29,774 |
pythondev | help | you’ll need a foreign key of both those currencies. | 2018-01-18T16:40:53.000961 | Davina | pythondev_help_Davina_2018-01-18T16:40:53.000961 | 1,516,293,653.000961 | 29,775 |
pythondev | help | I thought a "left" and a "right" column | 2018-01-18T16:40:56.000518 | Stefan | pythondev_help_Stefan_2018-01-18T16:40:56.000518 | 1,516,293,656.000518 | 29,776 |
pythondev | help | `left = Column(Currency)` | 2018-01-18T16:41:11.000973 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:11.000973 | 1,516,293,671.000973 | 29,777 |
pythondev | help | lol | 2018-01-18T16:41:13.000048 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:13.000048 | 1,516,293,673.000048 | 29,778 |
pythondev | help | I tried many many things | 2018-01-18T16:41:21.001001 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:21.001001 | 1,516,293,681.001001 | 29,779 |
pythondev | help | `composite` | 2018-01-18T16:41:29.000779 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:29.000779 | 1,516,293,689.000779 | 29,780 |
pythondev | help | `associative_table` | 2018-01-18T16:41:41.000439 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:41.000439 | 1,516,293,701.000439 | 29,781 |
pythondev | help | but I don't see what kind of pattern fits here? | 2018-01-18T16:41:47.001004 | Stefan | pythondev_help_Stefan_2018-01-18T16:41:47.001004 | 1,516,293,707.001004 | 29,782 |
pythondev | help | join table | 2018-01-18T16:41:53.000592 | Floy | pythondev_help_Floy_2018-01-18T16:41:53.000592 | 1,516,293,713.000592 | 29,783 |
pythondev | help | no sure i would even use a pair. | 2018-01-18T16:41:58.000272 | Davina | pythondev_help_Davina_2018-01-18T16:41:58.000272 | 1,516,293,718.000272 | 29,784 |
pythondev | help | but hard to say without knowing the data well enough. | 2018-01-18T16:42:12.000169 | Davina | pythondev_help_Davina_2018-01-18T16:42:12.000169 | 1,516,293,732.000169 | 29,785 |
pythondev | help | a `class Exchange` has several pairs that can be traded | 2018-01-18T16:42:27.000050 | Stefan | pythondev_help_Stefan_2018-01-18T16:42:27.000050 | 1,516,293,747.00005 | 29,786 |
pythondev | help | so, something like USD to UK pounds? | 2018-01-18T16:42:52.000237 | Floy | pythondev_help_Floy_2018-01-18T16:42:52.000237 | 1,516,293,772.000237 | 29,787 |
pythondev | help | yea exactly | 2018-01-18T16:42:57.000076 | Stefan | pythondev_help_Stefan_2018-01-18T16:42:57.000076 | 1,516,293,777.000076 | 29,788 |
pythondev | help | does order matter? | 2018-01-18T16:42:57.001255 | Floy | pythondev_help_Floy_2018-01-18T16:42:57.001255 | 1,516,293,777.001255 | 29,789 |
pythondev | help | yes | 2018-01-18T16:43:03.000393 | Stefan | pythondev_help_Stefan_2018-01-18T16:43:03.000393 | 1,516,293,783.000393 | 29,790 |
pythondev | help | gotta be careful. you might want to keep third normal form in mind when designing this schema. | 2018-01-18T16:43:12.000651 | Davina | pythondev_help_Davina_2018-01-18T16:43:12.000651 | 1,516,293,792.000651 | 29,791 |
pythondev | help | third normal form? | 2018-01-18T16:43:24.000409 | Stefan | pythondev_help_Stefan_2018-01-18T16:43:24.000409 | 1,516,293,804.000409 | 29,792 |
pythondev | help | <https://en.wikipedia.org/wiki/Third_normal_form> | 2018-01-18T16:43:34.000122 | Floy | pythondev_help_Floy_2018-01-18T16:43:34.000122 | 1,516,293,814.000122 | 29,793 |
pythondev | help | well I thought I'm normalizing as much as I can | 2018-01-18T16:43:46.000418 | Stefan | pythondev_help_Stefan_2018-01-18T16:43:46.000418 | 1,516,293,826.000418 | 29,794 |
pythondev | help | if I could just have a simple table | 2018-01-18T16:43:51.000971 | Stefan | pythondev_help_Stefan_2018-01-18T16:43:51.000971 | 1,516,293,831.000971 | 29,795 |
pythondev | help | I'd like something like | 2018-01-18T16:44:17.000872 | Stefan | pythondev_help_Stefan_2018-01-18T16:44:17.000872 | 1,516,293,857.000872 | 29,796 |
pythondev | help | `pair.left.name` and `pair.right.name` | 2018-01-18T16:44:27.000295 | Stefan | pythondev_help_Stefan_2018-01-18T16:44:27.000295 | 1,516,293,867.000295 | 29,797 |
pythondev | help | this is a poster i kept in my office when i was a DBA> | 2018-01-18T16:44:33.001126 | Davina | pythondev_help_Davina_2018-01-18T16:44:33.001126 | 1,516,293,873.001126 | 29,798 |
pythondev | help | `[pair.left.name for pair in exchange.pairs]` | 2018-01-18T16:44:41.001087 | Stefan | pythondev_help_Stefan_2018-01-18T16:44:41.001087 | 1,516,293,881.001087 | 29,799 |
pythondev | help | do you understand how `class Pair` could be implemented? | 2018-01-18T16:45:36.000288 | Stefan | pythondev_help_Stefan_2018-01-18T16:45:36.000288 | 1,516,293,936.000288 | 29,800 |
pythondev | help | and I also want `backref` right? | 2018-01-18T16:45:42.001076 | Stefan | pythondev_help_Stefan_2018-01-18T16:45:42.001076 | 1,516,293,942.001076 | 29,801 |
pythondev | help | it's very confusing to me this particular case, I thought I understood it all | 2018-01-18T16:45:52.000037 | Stefan | pythondev_help_Stefan_2018-01-18T16:45:52.000037 | 1,516,293,952.000037 | 29,802 |
pythondev | help | sorry to run… i just noticed the clock. gotta commute back home. i’ll think about it more on my drive. | 2018-01-18T16:47:02.000982 | Davina | pythondev_help_Davina_2018-01-18T16:47:02.000982 | 1,516,294,022.000982 | 29,803 |
pythondev | help | so you said Pair is based on two currencies | 2018-01-18T16:47:31.000060 | Floy | pythondev_help_Floy_2018-01-18T16:47:31.000060 | 1,516,294,051.00006 | 29,804 |
pythondev | help | as in convert from one to another | 2018-01-18T16:47:38.000727 | Floy | pythondev_help_Floy_2018-01-18T16:47:38.000727 | 1,516,294,058.000727 | 29,805 |
pythondev | help | and that there is a direction for conversion, one currency to another | 2018-01-18T16:48:10.000660 | Floy | pythondev_help_Floy_2018-01-18T16:48:10.000660 | 1,516,294,090.00066 | 29,806 |
pythondev | help | but not bi-directional | 2018-01-18T16:48:15.000504 | Floy | pythondev_help_Floy_2018-01-18T16:48:15.000504 | 1,516,294,095.000504 | 29,807 |
pythondev | help | so, you already have a currency table | 2018-01-18T16:48:50.000244 | Floy | pythondev_help_Floy_2018-01-18T16:48:50.000244 | 1,516,294,130.000244 | 29,808 |
pythondev | help | and you can think of Pair as a join table | 2018-01-18T16:49:02.000906 | Floy | pythondev_help_Floy_2018-01-18T16:49:02.000906 | 1,516,294,142.000906 | 29,809 |
pythondev | help | where you have `from` foreign keyed to one Currency, and `to` FK’d to another | 2018-01-18T16:50:03.000735 | Floy | pythondev_help_Floy_2018-01-18T16:50:03.000735 | 1,516,294,203.000735 | 29,810 |
pythondev | help | yea exactly | 2018-01-18T16:52:18.001139 | Stefan | pythondev_help_Stefan_2018-01-18T16:52:18.001139 | 1,516,294,338.001139 | 29,811 |
pythondev | help | (from is reserved, so i went with left and right) | 2018-01-18T16:52:25.000515 | Stefan | pythondev_help_Stefan_2018-01-18T16:52:25.000515 | 1,516,294,345.000515 | 29,812 |
pythondev | help | I think a SQL table would be much more logical than how it would be done in sqlalchemy | 2018-01-18T16:52:57.000096 | Stefan | pythondev_help_Stefan_2018-01-18T16:52:57.000096 | 1,516,294,377.000096 | 29,813 |
pythondev | help | eg
```
Currency table
id
name
# other columns
Pair table
id
from_currency = Foreign Key to Currency.id
to_currency = Foreign Key to Currency.id
# add a unique together constraint for these two, to disallow duplicates
``` | 2018-01-18T16:53:07.000293 | Floy | pythondev_help_Floy_2018-01-18T16:53:07.000293 | 1,516,294,387.000293 | 29,814 |
pythondev | help | but my goal is to use the ORM to be able to use the syntax above | 2018-01-18T16:53:07.000345 | Stefan | pythondev_help_Stefan_2018-01-18T16:53:07.000345 | 1,516,294,387.000345 | 29,815 |
pythondev | help | to refer to objects rather than to IDs | 2018-01-18T16:53:16.000600 | Stefan | pythondev_help_Stefan_2018-01-18T16:53:16.000600 | 1,516,294,396.0006 | 29,816 |
pythondev | help | and you see you have Currency.id there twice? won't that clash? | 2018-01-18T16:53:45.000649 | Stefan | pythondev_help_Stefan_2018-01-18T16:53:45.000649 | 1,516,294,425.000649 | 29,817 |
pythondev | help | no | 2018-01-18T16:53:58.001089 | Floy | pythondev_help_Floy_2018-01-18T16:53:58.001089 | 1,516,294,438.001089 | 29,818 |
pythondev | help | ah your comment? -- that's about adding an ID | 2018-01-18T16:54:03.000531 | Stefan | pythondev_help_Stefan_2018-01-18T16:54:03.000531 | 1,516,294,443.000531 | 29,819 |
pythondev | help | you can apply constraints to them | 2018-01-18T16:54:07.000888 | Floy | pythondev_help_Floy_2018-01-18T16:54:07.000888 | 1,516,294,447.000888 | 29,820 |
pythondev | help | Could you make a hybrid PK for Pair? | 2018-01-18T16:54:22.000186 | Cherlyn | pythondev_help_Cherlyn_2018-01-18T16:54:22.000186 | 1,516,294,462.000186 | 29,821 |
pythondev | help | eg, not null, blank, default value, etc | 2018-01-18T16:54:22.000630 | Floy | pythondev_help_Floy_2018-01-18T16:54:22.000630 | 1,516,294,462.00063 | 29,822 |
pythondev | help | from != to | 2018-01-18T16:54:45.000229 | Stefan | pythondev_help_Stefan_2018-01-18T16:54:45.000229 | 1,516,294,485.000229 | 29,823 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.