archived
stringclasses 2
values | author
stringlengths 3
20
| author_fullname
stringlengths 4
12
⌀ | body
stringlengths 0
22.5k
| comment_type
stringclasses 1
value | controversiality
stringclasses 2
values | created_utc
stringlengths 10
10
| edited
stringlengths 4
12
| gilded
stringclasses 7
values | id
stringlengths 1
7
| link_id
stringlengths 7
10
| locked
stringclasses 2
values | name
stringlengths 4
10
⌀ | parent_id
stringlengths 5
10
| permalink
stringlengths 41
91
⌀ | retrieved_on
stringlengths 10
10
⌀ | score
stringlengths 1
4
| subreddit_id
stringclasses 1
value | subreddit_name_prefixed
stringclasses 1
value | subreddit_type
stringclasses 1
value | total_awards_received
stringclasses 19
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
False
|
vieman
|
t2_sey5s
|
What's a cowboy coder?
| null |
0
|
1544112615
|
False
|
0
|
eb7xy6m
|
t3_a3crqx
| null | null |
t1_eb7se0h
|
/r/programming/comments/a3crqx/how_i_debugged_a_non_reproducible_bug_with_20k/eb7xy6m/
|
1547096945
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
mr_ryh
|
t2_v60hk
|
Strangely, most programmers don't seem to value literate programs, judging by their actions and their words (possibly because they've never seen any). I've argued this point with tears in my eyes over the years, and of the hundred or so devs I've known, they all felt that documentation of any kind (nevermind Knuth's CWEB standard) was an afterthought and not necessary for great software: which is true, if your goal is only to cobble something together that you can sell to rubes, or milk for salary until you switch jobs.
| null |
0
|
1545261392
|
False
|
0
|
ec58bqp
|
t3_a7m6jc
| null | null |
t1_ec4yyk3
|
/r/programming/comments/a7m6jc/a_profile_on_donald_knuth/ec58bqp/
|
1547824673
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Tacitus_
|
t2_4v1er
|
[So "Bloody Stupid" Johnson is a programmer.](https://wiki.lspace.org/mediawiki/Bergholt_Stuttley_Johnson#Devices)
| null |
0
|
1544112620
|
False
|
0
|
eb7xyh6
|
t3_a3kk7u
| null | null |
t1_eb7qbo8
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7xyh6/
|
1547096949
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
mindbleach
|
t2_28j4q
|
Bugfix: they'll remove the toggle.
Like they removed the option to stop guessing search terms as you type, so every keystroke gets sent to their servers. Like they removed the option to use Chrome without your fucking name plastered in the titlebar, so your browser itself is signed in.
| null |
0
|
1545261412
|
False
|
0
|
ec58clk
|
t3_a7jj68
| null | null |
t1_ec4dogp
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec58clk/
|
1547824683
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
SilasX
|
t2_4o64v
|
Just someone who's sloppy in the interest of being fast and doesn't care about readability or maintainability or modularity or working with others.
| null |
0
|
1544112690
|
False
|
0
|
eb7y2at
|
t3_a3crqx
| null | null |
t1_eb7xy6m
|
/r/programming/comments/a3crqx/how_i_debugged_a_non_reproducible_bug_with_20k/eb7y2at/
|
1547097018
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
Of course you can, the database would be useless otherwise. But it is incredibly inefficient to do so.
| null |
0
|
1545261427
|
False
|
0
|
ec58d7t
|
t3_a7q1bi
| null | null |
t1_ec54n53
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58d7t/
|
1547824691
|
18
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
delfinom
|
t2_37zuf
|
You don't normally want to throw engineers skilled in implementing JIT compilation and low level architecture at end user features.....
| null |
0
|
1544112769
|
False
|
0
|
eb7y6nz
|
t3_a313x9
| null | null |
t1_eb7i04a
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb7y6nz/
|
1547097072
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Brillegeit
|
t2_5q0j1
|
Don't think anything in my DE depends on Webkit, but some applications do.
The following packages have unmet dependencies:
zenity : Depends: libwebkitgtk-3.0-0 (>= 1.3.10) but it is not going to be installed.
gimp : Depends: libwebkitgtk-1.0-0 (>= 1.3.10) but it is not going to be installed.
surf : Depends: libwebkitgtk-1.0-0 (>= 1.3.10) but it is not going to be installed.
libyelp0 : Depends: libwebkitgtk-3.0-0 (>= 1.3.10) but it is not going to be installed.
midori : Depends: libwebkitgtk-1.0-0 (>= 1.3.13) but it is not going to be installed.
yelp : Depends: libwebkitgtk-3.0-0 (>= 1.3.10) but it is not going to be installed.
librhythmbox-core8 : Depends: libwebkitgtk-3.0-0 (>= 1.3.10) but it is not going to be installed.
gir1.2-webkit-3.0 : Depends: libwebkitgtk-3.0-0 (>= 2.4.6) but it is not going to be installed.
| null |
0
|
1545261429
|
False
|
0
|
ec58da9
|
t3_a7jj68
| null | null |
t1_ec3ub0b
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec58da9/
|
1547824692
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
GoldenFalcon
|
t2_19jrt
|
That's not what they said though. They said law should be a secondary degree.
| null |
0
|
1544112799
|
False
|
0
|
eb7y87i
|
t3_a3kk7u
| null | null |
t1_eb7wxos
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7y87i/
|
1547097091
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
PM_ME_UR_SERVO_PIE
|
t2_11sx3k
|
There's definitely a performance penalty, but I think the features are worth it. Once VS finishes starting it's barely noticeable.
| null |
0
|
1545261450
|
False
|
0
|
ec58e5t
|
t3_a7mgov
| null | null |
t1_ec4s3yy
|
/r/programming/comments/a7mgov/resharper_ultimate_20183_is_here_performance_vs/ec58e5t/
|
1547824703
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
I wholly agree that the database isn't always the best place for business rules. But there is a huge difference between "this business rule belong somewhere other than the database this time" and "OMG, databases weren't designed to handle business rules".
| null |
0
|
1544112813
|
False
|
0
|
eb7y8z2
|
t3_a3dobm
| null | null |
t1_eb7tl59
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb7y8z2/
|
1547097101
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Azaret
|
t2_a4zc6
|
Might be even worst than that. I used to use Vilvaldi because I liked the UI better, but over time gmail and youtube became less and less 'snappy' (the new gmail interface is nearly unusable). So even other chromium browser are having issues with Google product it seems.
Might be just me...
| null |
0
|
1545261500
|
False
|
0
|
ec58g8d
|
t3_a7jj68
| null | null |
t1_ec3ymx2
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec58g8d/
|
1547824729
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ItsMeCaptainMurphy
|
t2_5pl2d
|
The real answer is "it depends". Both extremist camps are wrong. If you go by "all business logic should be in the database" there will be scenarios where you have to create a very complicated monstrosity to get everything to work compared to what you could do in the application layer. But if you go the opposite way and say "no business logic should be in the database" then you are likely creating an *incredibly* inefficient application.
Logic around aggregating and joining together data should be done in the DB - it's what it's made for, and it's going to outperform just about anyone's handmade application layer logic. Logic around what to store where typically belongs in the application layer - a good rule of thumb is if you need a trigger you've fucked up.
Finally, I'd be very careful about people that claim databases have no protections against malicious interactions or security and therefore all your logic should be done in the web app. Those are typically the people that have a bunch of hardcoded SQL statements in their app code that are quite vulnerable to injection.
| null |
0
|
1544112821
|
False
|
0
|
eb7y9ct
|
t3_a3dobm
| null | null |
t1_eb6a3oi
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb7y9ct/
|
1547097106
|
5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Crypto_To_The_Core
|
t2_uzv3nj6
|
No need for VM. :) Just install Sandboxie on your Windows PC and run software (web browser, etc) in the sandbox, open PDFs sandboxed, etc. :)
| null |
0
|
1545261532
|
False
|
0
|
ec58hkp
|
t3_a7hbku
| null | null |
t1_ec586ft
|
/r/programming/comments/a7hbku/windows_sandbox/ec58hkp/
|
1547824745
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
zhensydow
|
t2_3a56q
|
1. JavaScript
2. Java
3. C#
4. PHP
5. Python
6. C++
7. Ruby
8. C
9. Objective-C
10. Go
11. R
12. [VB.NET](https://VB.NET)
13. TypeScript
14. Swift
15. Perl
16. Rust
17. Haskell
18. Lua
19. F#
20. Dart
| null |
0
|
1544112864
|
False
|
0
|
eb7ybl9
|
t3_a3ohfo
| null | null |
t3_a3ohfo
|
/r/programming/comments/a3ohfo/top_20_programming_languages_to_learn_in_2019/eb7ybl9/
|
1547097133
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
stronghup
|
t2_3mx3u
|
How does this work? Is it that Node.js generates an animated GIF-image based on some code, then such an animated GIF is loaded into the browser?
| null |
0
|
1545261611
|
False
|
0
|
ec58kwn
|
t3_a7p1nl
| null | null |
t3_a7p1nl
|
/r/programming/comments/a7p1nl/vulkan_rendering_api_for_nodejs/ec58kwn/
|
1547824815
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
JoelFolksy
|
t2_14dn5y
|
I'll let you in on a secret - he knows.
| null |
0
|
1544112875
|
False
|
0
|
eb7yc6y
|
t3_a3kk7u
| null | null |
t1_eb7nl9c
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yc6y/
|
1547097141
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Xelbair
|
t2_ebigc
|
yep, you need to tweak ver things in config to get better performance but this exists https://pgtune.leopard.in.ua/#/
| null |
0
|
1545261626
|
False
|
0
|
ec58lit
|
t3_a7q1bi
| null | null |
t1_ec57ofr
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58lit/
|
1547824823
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
aspoonlikenoother
|
t2_babu5
|
Whoosh?
| null |
0
|
1544112949
|
False
|
0
|
eb7yfzu
|
t3_a3kk7u
| null | null |
t1_eb7nl9c
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yfzu/
|
1547097187
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
888808888
|
t2_tf1pq
|
I can't speak for every distro/OS, but on debian/ubuntu based distros it literally is that simple. You install it using package manager, then "sudo su postgres" to change to postgres user account, then "create user PSQL_LOGIN_ID". You would also want to set the password (alter role ... ).
There may be one or two things I've forgotten since last setting up a psql server. I typically open the server up to the entire local network which involves editing a config file and changing the "listen" address from "localhost" to "0.0.0.0". You can also further tweak the user access config files and grant access to certain users with no password needed etc etc., but that isn't required nor hard to do.
But honestly it's very simple, and the documentation/tutorials for this are abundant. If a dev is incapable of googling how to install postgresql and get it up and running, then I really question the skills and intelligence of the dev in the first place and can only wonder what horrors lay in wait for users of their app.
| null |
0
|
1545261629
|
False
|
0
|
ec58lnq
|
t3_a7q1bi
| null | null |
t1_ec57ofr
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58lnq/
|
1547824825
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
dead4586
|
t2_12pcjz
|
Isn’t that exactly what a minor is. A secondary area of study. While it’s not technically a degree, u need a to be earning ur BA in order to peruse a minor. If that can be done (it’s done all the time) I dont see how it’s impossible.
| null |
0
|
1544112989
|
False
|
0
|
eb7yhzc
|
t3_a3kk7u
| null | null |
t1_eb7y87i
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yhzc/
|
1547097212
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
JSONB trades space for time. By adding metadata it makes searching it faster, but even more room is needed for storage.
So no, it's not anywhere near as efficient as separate columns in the general case, but there are times where it makes sense.
| null |
0
|
1545261637
|
False
|
0
|
ec58lyv
|
t3_a7q1bi
| null | null |
t1_ec53p8m
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58lyv/
|
1547824829
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
irqlnotdispatchlevel
|
t2_13d5jb
|
Real men write directly the opcodes they need!
| null |
0
|
1544113091
|
False
|
0
|
eb7yn18
|
t3_a3lvtr
| null | null |
t1_eb7mgva
|
/r/programming/comments/a3lvtr/c20_standard_ranges_eric_niebler/eb7yn18/
|
1547097274
|
22
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
kurashu89
|
t2_8t7zd
|
I'll take second best at everything than really good at one thing and crappy at the rest. Even then postgres' jsonb column is apparently a better document store then a document database is.
| null |
0
|
1545261643
|
False
|
0
|
ec58m78
|
t3_a7q1bi
| null | null |
t1_ec5360t
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58m78/
|
1547824832
|
22
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Yasea
|
t2_a5q2y
|
It's not software written in Australia, but it seems to be software *used* in Australia. So the government can say that the foreign app/phone/system has to comply or it's illegal to use.
In the link it also says Apple is considering leaving the Aussie market because of this.
| null |
0
|
1544113096
|
False
|
0
|
eb7ynau
|
t3_a3kk7u
| null | null |
t1_eb7iumo
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7ynau/
|
1547097278
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
hashtagframework
|
t2_1asy8l
|
You've never been painted into a corner with a legacy system that uses a template framework that doesn't let you change the <head>?
You've never built a monitoring dashboard that updates the <title>? I see that as exactly the same as page meta data.
| null |
0
|
1545261660
|
False
|
0
|
ec58mvm
|
t3_a7pzxt
| null | null |
t1_ec581f7
|
/r/programming/comments/a7pzxt/can_javascript_override_a_nofollow_meta_tag/ec58mvm/
|
1547824840
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Eirenarch
|
t2_46hjd
|
Debatable. Even then you can throw them to work on the Core CLR.
| null |
0
|
1544113138
|
False
|
0
|
eb7yph2
|
t3_a313x9
| null | null |
t1_eb7y6nz
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb7yph2/
|
1547097304
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
turkeylurkey9
|
t2_12qspv
|
I prefer the UI of my apps to look like they've been designed in at least the past decade.
| null |
0
|
1545261685
|
False
|
0
|
ec58nw2
|
t3_a7jj68
| null | null |
t1_ec49bp6
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec58nw2/
|
1547824853
|
-1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
FuckFuckingKarma
|
t2_97h0s
|
That reads like a Tarantino script.
| null |
0
|
1544113147
|
False
|
0
|
eb7ypzd
|
t3_a3kk7u
| null | null |
t1_eb7p9gj
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7ypzd/
|
1547097310
|
76
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ArtisinalCodeForSale
|
t2_175daqcj
|
Sure once it loads it's fine 95% of the time. But that load penalty is HUGE.
| null |
0
|
1545261688
|
False
|
0
|
ec58o07
|
t3_a7mgov
| null | null |
t1_ec58e5t
|
/r/programming/comments/a7mgov/resharper_ultimate_20183_is_here_performance_vs/ec58o07/
|
1547824853
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
SketchBoard
|
t2_d4ei0
|
They should have a booming space industry by now anyway, seeing as how all the rockets fall right off.
| null |
0
|
1544113153
|
False
|
0
|
eb7yqag
|
t3_a3kk7u
| null | null |
t1_eb7xfud
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yqag/
|
1547097314
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
pcjftw
|
t2_s53vc6n
|
Yep it does that when you apt-get install on Debian distros.
It takes about 20-30 seconds to have a PostgreSql up and running
| null |
0
|
1545261688
|
False
|
0
|
ec58o18
|
t3_a7q1bi
| null | null |
t1_ec57ofr
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58o18/
|
1547824854
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
saltybandana
|
t2_2hallns5
|
you've been able to do that for a while now. I don't recall which version added that bit of initialization, but that's not new.
| null |
0
|
1544113159
|
False
|
0
|
eb7yqm1
|
t3_a3ghju
| null | null |
t1_eb7l7yc
|
/r/programming/comments/a3ghju/whats_new_in_c_80/eb7yqm1/
|
1547097319
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
bedobi
|
t2_k155g
|
Having used Spring and DropWizard, I much prefer DropWizard.
DropWizard seems to me a more neutral collection of some of the best tools for each job, and it's both simple and easy.
Spring is just Spring, Spring and more Spring, and while it's easy, it's not simple- there's a lot of magic.
| null |
0
|
1545261706
|
False
|
0
|
ec58orc
|
t3_a7nggt
| null | null |
t3_a7nggt
|
/r/programming/comments/a7nggt/netflix_standardizes_on_spring_boot_as_java/ec58orc/
|
1547824863
|
21
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
mormotomyia
|
t2_dg5n6
|
just set 2= pi before you set pi =2..
its easy...
| null |
0
|
1544113167
|
False
|
0
|
eb7yr0e
|
t3_a3kk7u
| null | null |
t1_eb7vago
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yr0e/
|
1547097324
|
26
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Xelbair
|
t2_ebigc
|
Quite a lot of spatial stuff runs on Oracle, sometimes postgres with postgis.
| null |
0
|
1545261721
|
False
|
0
|
ec58pe5
|
t3_a7q1bi
| null | null |
t1_ec57cgq
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58pe5/
|
1547824871
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
cheese_wizard
|
t2_3h0id
|
Outbackdoors.
| null |
0
|
1544113233
|
False
|
0
|
eb7yuja
|
t3_a3kk7u
| null | null |
t3_a3kk7u
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yuja/
|
1547097366
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Mumbleton
|
t2_afq1k
|
Genuinely curious, how so? Postgres absolutely supports transactions. Do they perform that much worse than Oracle's?
| null |
0
|
1545261746
|
False
|
0
|
ec58qfw
|
t3_a7q1bi
| null | null |
t1_ec583rs
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58qfw/
|
1547824884
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
z500
|
t2_clyy5
|
Kind of reminds me of the application I work on now. Test, staging and production are snappy enough, but running it on my system is such a damn pain.
| null |
0
|
1544113266
|
False
|
0
|
eb7ywbz
|
t3_a3kk7u
| null | null |
t1_eb7b3h6
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7ywbz/
|
1547097389
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
samjmckenzie
|
t2_1ajtp69
|
Why are you so angry haha
| null |
0
|
1545261821
|
False
|
0
|
ec58tjt
|
t3_a7o3p0
| null | null |
t1_ec4yw9q
|
/r/programming/comments/a7o3p0/webassembly_is_fast_a_realworld_benchmark_of/ec58tjt/
|
1547824922
|
17
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
rapture_survivor
|
t2_59q93
|
yeah, it's not like it's relatively trivial to write your own secure public-private key encryption. Probably not ideal but anyone with a programming language, a compiler, and access to wikipedia could roll their own encryption.
The only way to attempt to stop this would be censoring all descriptions of how encryption works, to try to make it impossible for anyone to learn how to implement encryption. And they'll never be able to get to the point where that would stop someone willing to spend a few days on figuring it out
| null |
0
|
1544113307
|
False
|
0
|
eb7yymm
|
t3_a3kk7u
| null | null |
t1_eb7kpsl
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7yymm/
|
1547097418
|
12
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
jppope
|
t2_ia6qh
|
Correct. Stock price has nothing to do with software quality... But it works as a metric for identifying "fadware"
| null |
0
|
1545261864
|
False
|
0
|
ec58va4
|
t3_a7q1bi
| null | null |
t1_ec576nd
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58va4/
|
1547824944
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1544113359
|
False
|
0
|
eb7z1ip
|
t3_a3kk7u
| null | null |
t1_eb7rq1m
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7z1ip/
|
1547097453
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ImSuperObjective2
|
t2_kb37s4a
|
> I thought MongoDB was a document store
"Document store" is jargon for "we didn't bother supporting structured data, so everything's just bunch of arbitrary shaped shit on disk". Everything *can be* a document store. But document stores can't be pretty much anything except "document stores".
| null |
0
|
1545261868
|
False
|
0
|
ec58vfs
|
t3_a7q1bi
| null | null |
t1_ec529o3
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58vfs/
|
1547824946
|
10
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Dragon3105
|
t2_1hbjaefc
|
Welcome to City 17, it’s safer here!
| null |
0
|
1544113376
|
False
|
0
|
eb7z2f5
|
t3_a3kk7u
| null | null |
t1_eb7fd67
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7z2f5/
|
1547097464
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
eltosoro
|
t2_hwvzu
|
Huh? Transactions are transactions. Or do you mean tps?
| null |
0
|
1545261870
|
False
|
0
|
ec58vj7
|
t3_a7q1bi
| null | null |
t1_ec583rs
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58vj7/
|
1547824947
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
mormotomyia
|
t2_dg5n6
|
> so, apparently, disclosing the government request to anyone, presumably including your lawyer and your employer's legal department, is a crime that's punishable with a long prison sentence. So, you aren't allowed to even attempt to challenge the request in court.
how is that legal?
Or better how does this not effectively break radbruchs formula?.
If you cannot appeal a law, how can it be just?
| null |
0
|
1544113381
|
False
|
0
|
eb7z2p1
|
t3_a3kk7u
| null | null |
t1_eb7kf1m
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7z2p1/
|
1547097467
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
lkh23o874249plhkjhdl
|
t2_c1m4gak
|
You can do a lot of things with a lot of pieces of technology. The prudent question is: “should you?”
| null |
0
|
1545261942
|
False
|
0
|
ec58ye0
|
t3_a7q1bi
| null | null |
t1_ec55wif
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec58ye0/
|
1547824982
|
16
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Dgc2002
|
t2_52v7g
|
Wow, I was wondering what big software is based out of Australia... That's a big one alright.
| null |
0
|
1544113392
|
False
|
0
|
eb7z3c0
|
t3_a3kk7u
| null | null |
t1_eb7nxq5
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7z3c0/
|
1547097476
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Noktar
|
t2_j2685
|
>only if you have active mappers in your area.
Seems like something governments should be funding and helping to improve. It’s in the public’s interest and corporations aren’t fulfilling the need well enough
| null |
0
|
1545262050
|
False
|
0
|
ec592u7
|
t3_a7jj68
| null | null |
t1_ec47wly
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec592u7/
|
1547825038
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ItsMeCaptainMurphy
|
t2_5pl2d
|
I didn't downvote you, but one obvious thing is that SQL Server has had offset since at least SQL Server 2012. Additionally there are more ways to transfer data quickly than BCP, and has been since at least SQL Server 2008.
| null |
0
|
1544113405
|
False
|
0
|
eb7z428
|
t3_a3dobm
| null | null |
t1_eb75i7b
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb7z428/
|
1547097484
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
nikanjX
|
t2_4kg4n
|
I'm talking about the programmers who spend 5 hours trying to conjure The Perfect Xml, to avoid pounding in three lines of code.
| null |
0
|
1545262052
|
False
|
0
|
ec592x4
|
t3_a7nggt
| null | null |
t1_ec54olp
|
/r/programming/comments/a7nggt/netflix_standardizes_on_spring_boot_as_java/ec592x4/
|
1547825039
|
19
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
saltybandana
|
t2_2hallns5
|
I typed up an algorithmic version of that switch statement in another comment, I'll place it here for context.
String GetName(String firstName, String mName, String lastName) {
var middleInitial = String.IsNullOrWhitespace(mName) || !mName.Trim().Any()
? ""
: $"{mName.Trim().First()}.";
var hasFirstName = !String.IsNullOrWhitespace(firstName);
var joinedNames = String.Join(" ",
new []{ firstName.Trim(), middleInitial, lastName.Trim() }.Where(s=>!String.IsNullOrWhitespace(s)));
if(hasFirstName) return joinedNames;
else if(joinedNames.Any()) return $"Ms/Mr {joinedNames}";
else return "Someone";
}
what /u/Gotebe said about initializing to empty string is correct, you just have to use a ternary operator.
| null |
0
|
1544113461
|
1544121004
|
0
|
eb7z72h
|
t3_a3ghju
| null | null |
t1_eb76cts
|
/r/programming/comments/a3ghju/whats_new_in_c_80/eb7z72h/
|
1547097521
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
probably2high
|
t2_3pbcq
|
Very well said.
| null |
0
|
1545262054
|
False
|
0
|
ec59317
|
t3_a7q1bi
| null | null |
t1_ec5511u
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59317/
|
1547825040
|
30
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
dimsuz
|
t2_j1e7t
|
Here's a nice and [very frightening summary](https://news.ycombinator.com/item?id=18442941) of what's going on in regard to Oracle database and its technical debt.
| null |
0
|
1544113480
|
False
|
0
|
eb7z83t
|
t3_a3dobm
| null | null |
t1_eb67g9k
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb7z83t/
|
1547097534
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
jacmoe
|
t2_3hzym
|
No surprise about Python, due to ~~MatLab~~ PyLab/SciPy, Matplotlib and Numpy, etc.
Nice to hear that people favorite C, and that there's still a couple of Lisp'ers left :)
| null |
0
|
1545262111
|
1545355859
|
0
|
ec5958t
|
t3_a7rit7
| null | null |
t3_a7rit7
|
/r/programming/comments/a7rit7/computerphile_asks_university_proffessors_about/ec5958t/
|
1547825067
|
26
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Dragon3105
|
t2_1hbjaefc
|
Welcome to City 17, it’s safer here!
| null |
0
|
1544113541
|
False
|
0
|
eb7zbf4
|
t3_a3kk7u
| null | null |
t3_a3kk7u
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7zbf4/
|
1547097605
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
TommyTheTiger
|
t2_7hizh
|
Doing the lord's work
| null |
0
|
1545262129
|
False
|
0
|
ec595yx
|
t3_a7q1bi
| null | null |
t3_a7q1bi
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec595yx/
|
1547825076
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Whatsapokemon
|
t2_7f66l
|
I'm confused here.
The bill itself says that technical assistance notices may not include instructions to implement new decryption abilities, or render encryption less effective.
Any properly implemented encryption should be pretty much un-decryptable by anyone without the key anyway.
How does the bill allow for vulnerabilities in encryption given those two pieces of information?
I can't figure out the exact way that this is bad, since the bill specifically prohibits instructions that make encryption weaker.
| null |
0
|
1544113578
|
False
|
0
|
eb7zdh6
|
t3_a3kk7u
| null | null |
t1_eb74oga
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7zdh6/
|
1547097630
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Helrich
|
t2_3nxdi
|
For me, the in-a-nutshell explanation is that my employer covers MSDN subscription and ReSharper subscription, but is too ~~stupid~~ smart to just give us Rider subscriptions and save a few hundred dollareedoos. Granted, we also have a lot of Winforms code still and so I guess it makes sense since VS gives you a designer for that and Rider doesn't. As far as comparing VS+ReSharper vs Rider goes outside of Winforms, I much prefer Rider in every single aspect but again, my hands are sort-of tied in the matter.
| null |
0
|
1545262183
|
False
|
0
|
ec59861
|
t3_a7mgov
| null | null |
t1_ec4t96f
|
/r/programming/comments/a7mgov/resharper_ultimate_20183_is_here_performance_vs/ec59861/
|
1547825103
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
mormotomyia
|
t2_dg5n6
|
I'd imagine people will use canaries. They cannot say, that they have been asked, but they just can't sign a letter saying they haven't
Then you just sign that letter every day or not and depending on that , you get access.
Because I would imagine that the government cannot force you to commit fraud to install these things.(besides the fraud, that you are installing them)
| null |
0
|
1544113588
|
False
|
0
|
eb7ze1q
|
t3_a3kk7u
| null | null |
t1_eb7c5qa
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7ze1q/
|
1547097637
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
3dprint_the_world
|
t2_1urqg1
|
Yes I do realize that, and that's what I said in my original comment, I'm just asking why the mutable way is the 'right' way here.
EDIT: I suppose that that's part of the more general argument of the pros and cons of the functional vs. the object-oriented way, but in OP's article the implication is that it's talking about it not in the context of a specific programming paradigm. Hence my question.
| null |
0
|
1545262192
|
1545262627
|
0
|
ec598kp
|
t3_a1hnh7
| null | null |
t1_ec46iq8
|
/r/programming/comments/a1hnh7/what_covariance_contravariance_and_invariance_are/ec598kp/
|
1547825108
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
elvircrn
|
t2_983qu
|
On a related note: [https://www.youtube.com/watch?v=QVuU2YCwHjw](https://www.youtube.com/watch?v=QVuU2YCwHjw)
| null |
0
|
1544113719
|
False
|
0
|
eb7zl38
|
t3_a3ozkq
| null | null |
t3_a3ozkq
|
/r/programming/comments/a3ozkq/matlab_animation_circle_in_circle_in_circle/eb7zl38/
|
1547097725
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
TotallyFuckingMexico
|
t2_400bo
|
I've read countless articles warning about the dangers of 'rolling your own' encryption. Would that have been a sensible move?
| null |
0
|
1545262257
|
False
|
0
|
ec59bae
|
t3_a7q1bi
| null | null |
t1_ec55n8m
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59bae/
|
1547825141
|
12
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1544113770
|
1544457816
|
0
|
eb7znwq
|
t3_a3kk7u
| null | null |
t1_eb7guba
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7znwq/
|
1547097760
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
sg7791
|
t2_2ihzb
|
Try [The Register](https://theregister.co.uk) or [Stratechery](https://stratechery.com). [Motherboard](https://motherboard.vice.com) is pretty good too.
| null |
0
|
1545262284
|
False
|
0
|
ec59cdt
|
t3_a7q1bi
| null | null |
t1_ec4z2se
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59cdt/
|
1547825155
|
26
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ern19
|
t2_4cljx
|
Oh that's bad. That's really bad. Atlassian is either crapping their pants, or they've already got a sweetheart deal in place with Australia to leave them the fuck alone.
| null |
0
|
1544113842
|
False
|
0
|
eb7zrql
|
t3_a3kk7u
| null | null |
t1_eb7nxq5
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7zrql/
|
1547097806
|
21
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
nirreskeya
|
t2_3cfi2
|
All I want to know is if Postgres is [web scale](https://www.youtube.com/watch?v=b2F-DItXtZs).
| null |
0
|
1545262328
|
False
|
0
|
ec59e84
|
t3_a7q1bi
| null | null |
t3_a7q1bi
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59e84/
|
1547825177
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ehempel
|
t2_je45
|
"Hey Twitter, I got this request and need some legal advice. Any lawyers out there who can tell me what to do?"
Sounds like a legal request to me :-)
| null |
0
|
1544113906
|
False
|
0
|
eb7zvjs
|
t3_a3kk7u
| null | null |
t1_eb7tkrx
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb7zvjs/
|
1547097854
|
24
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Crandom
|
t2_4mzys
|
I definitely had more sleep when the prod app I was working on was on postgres, before we migrated to cassandra.
| null |
0
|
1545262373
|
False
|
0
|
ec59g45
|
t3_a7q1bi
| null | null |
t1_ec54hm2
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59g45/
|
1547825201
|
20
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Poromenos
|
t2_1pd6
|
Pff you wrote this comment while I was writing mine downthread and now I look like a thief :(
| null |
0
|
1544113997
|
False
|
0
|
eb800sm
|
t3_a3kk7u
| null | null |
t1_eb7xfud
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb800sm/
|
1547097919
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ManiGandham
|
t2_tv7qk
|
It seems all of their problems are with operations, not the database itself. What they needed was proper ops staff that knew what they were doing, or to just outsource it all.
2.4M records is a tiny amount of data and will easily fit on a single server these days, even in RAM if you want. There are also plenty of non-AWS vendors to outsource it.
Spending 10 months on rewriting to a different database system is unnecessary with no new features or progress on their actual CMS.
| null |
1
|
1545262386
|
1546788979
|
0
|
ec59gn2
|
t3_a7q1bi
| null | null |
t3_a7q1bi
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59gn2/
|
1547825208
|
-5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
> The messages were stored in a MongoDB collection with a single compound index on channel_id and created_at. Around November 2015, we reached 100 million stored messages and at this time we started to see the expected issues appearing: the data and the index could no longer fit in RAM and latencies started to become unpredictable. It was time to migrate to a database more suited to the task.
This is why one should never use MongoDB. Any "database" that basically falls apart as soon as it exceeds the amount of available RAM isn't to be trusted.
> When we started importing existing messages into Cassandra we immediately began to see warnings in the logs telling us that partitions were found over 100MB in size. What gives?! Cassandra advertises that it can support 2GB partitions! Apparently, just because it can be done, it doesn’t mean it should. Large partitions put a lot of GC pressure on Cassandra during compaction, cluster expansion, and more. Having a large partition also means the data in it cannot be distributed around the cluster. It became clear we had to somehow bound the size of partitions because a single Discord channel can exist for years and perpetually grow in size.
Um, ok. That's not very promising. I've never heard of a relational database with that kind of problem.
Lets go back and read their opening...
> Discord continues to grow faster than we expected and so does our user-generated content. With more users comes more chat messages. In July, we announced 40 million messages a day, in December we announced 100 million, and as of this blog post we are well past 120 million.
5 million writes per hour or 1389 writes per second. That's a lot for a single server, but their partitioning scheme could be manually applied to a set of servers without a lot of work.
> Predictable performance — We have alerts go off when our API’s response time 95th percentile goes above 80ms. We also do not want to have to cache messages in Redis or Memcached.
WTF? Not using caches is a business requirement? What kind of clowns are we dealing with?
> We noticed Cassandra was running 10 second “stop-the-world” GC constantly but we had no idea why. We started digging and found a Discord channel that was taking 20 seconds to load. The Puzzles & Dragons Subreddit public Discord server was the culprit. Since it was public we joined it to take a look. To our surprise, the channel had only 1 message in it. It was at that moment that it became obvious they deleted millions of messages using our API, leaving only 1 message in the channel.
Their database has ten second GC pauses? Seriously? What kind of database has GC pauses?
Also, did they even consider any other type of database? Or was this all investor-driven design, where using the fanciest NoSQL offering was the most important consideration?
| null |
0
|
1544114065
|
False
|
0
|
eb804lc
|
t3_a3dobm
| null | null |
t1_eb7ty8k
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb804lc/
|
1547097965
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
doublehyphen
|
t2_9v5mu
|
I would have guessed that it is way less than 50%, more like 10-15%, but I live in a Microsoft country where most of the big corporations run SQL Server and the smaller companies run MySQL and PostgreSQL. Even the people I know who work at big banks work with SQL Server.
| null |
0
|
1545262398
|
False
|
0
|
ec59h45
|
t3_a7q1bi
| null | null |
t1_ec5751z
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59h45/
|
1547825214
|
8
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
Sadly that's SQL Server only.
| null |
0
|
1544114194
|
False
|
0
|
eb80bs0
|
t3_a3dobm
| null | null |
t1_eb7uo21
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb80bs0/
|
1547098054
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
sqatas
|
t2_1tjzptr6
|
Wait! Is Mongo, now a fad?
I've been meaning to learn it, but then this news comes up! :O
| null |
1
|
1545262408
|
False
|
0
|
ec59hi5
|
t3_a7q1bi
| null | null |
t3_a7q1bi
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59hi5/
|
1547825218
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
> not at all useful for debugging anything inside of a table
That's why I won't miss it. The only thing I really want when debugging a tricky stored proc is to peek at the contents of the temp tables.
| null |
0
|
1544114218
|
False
|
0
|
eb80d1r
|
t3_a3dobm
| null | null |
t1_eb7xokr
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb80d1r/
|
1547098070
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
jakdak
|
t2_4bmq9
|
Maybe I didn't word that clearly. Not roll their own algorithm, just manually encrypt the data before stuffing it into DynamoDB
Same thing you have to do with any other cloud service where you don't want to trust the cloud vendor with your data.
| null |
0
|
1545262434
|
False
|
0
|
ec59ima
|
t3_a7q1bi
| null | null |
t1_ec59bae
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59ima/
|
1547825232
|
14
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Petermae
|
t2_yvlfqmy
|
No.
It's for when you are initializing and seeding a list of a class with data on a single expression. Hence, his sample with the list of Person class, the seeding part of the expression doesnt need to redundantly state that you are putting a new person class into the list since the compiler already knows that you are populating a list of person.
| null |
0
|
1544114250
|
False
|
0
|
eb80ete
|
t3_a3ghju
| null | null |
t1_eb7l7yc
|
/r/programming/comments/a3ghju/whats_new_in_c_80/eb80ete/
|
1547098092
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
_BreakingGood_
|
t2_ah9bj
|
Though you can "opt out" of that with ublock or nocript.
| null |
0
|
1545262459
|
False
|
0
|
ec59jmr
|
t3_a7jj68
| null | null |
t1_ec4k05w
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec59jmr/
|
1547825244
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Pine-Nomad
|
t2_2irtpk9i
|
Or guns.
| null |
1
|
1544114482
|
False
|
0
|
eb80ril
|
t3_a3kk7u
| null | null |
t1_eb7jpe8
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb80ril/
|
1547098278
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
rabbyburns
|
t2_ecfux
|
That is such a good description of UDP. Going to have to save that one.
| null |
0
|
1545262482
|
False
|
0
|
ec59kkf
|
t3_a7q1bi
| null | null |
t1_ec54la5
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59kkf/
|
1547825256
|
59
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
adelie42
|
t2_4epmu
|
>They're trying to create legislation about something they don't understand.
Welcome to politics!
| null |
0
|
1544114658
|
False
|
0
|
eb810tu
|
t3_a3kk7u
| null | null |
t1_eb7b5oj
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb810tu/
|
1547098392
|
20
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
senatorpjt
|
t2_31bjh
|
This is a requirement for the union in both countries (Equity/SAG) but you could have someone not in the union or the same name in different unions.
| null |
0
|
1545262498
|
False
|
0
|
ec59l7k
|
t3_a7q1bi
| null | null |
t1_ec57l2n
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59l7k/
|
1547825264
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
malkarouri
|
t2_3dgi4
|
Apache BCEL is not commonly used by the average Java community and you know it.
Also, code generation does not need bytecode or AST, code parsing or code transformation is what you mean. Code generation can literally be writing Python source code if your original source is non-Python.
To give an example, in our place at work we are now writing a library that takes a schema (of a non-standard database) and creating a module that does crud on the database. We can write Python source code for that module, and it is not hard, but we can also generate the classes, methods and module dynamically before importing. We opted for the latter.
Here is the one case that you are talking about, and that I have come across as well: optimising Python code through code transformations. You start easy enough, looking at the ast and may be using the NodeTransformer. The immediate problem is not the instability, it is the lack of the documentation. And the fact that the Python AST is not clean at all, as 1+1 gives you like seven nested classes.
You might have wanted to do that to reformat the code in a standard manner, to do peephole optimisation, to support introspection for an editor. Doesn’t matter. All of these have been done, and all of them are twice the difficulty of a typical programming language. That is just a fact.
Your probably have tried to ask the community then, like
https://stackoverflow.com/questions/3774162/given-an-ast-is-there-a-working-library-for-getting-the-source
(I asked that question at the time). You get various answers and you accept one. Doesn’t really solve your problem. You look around and you find various PyCon videos which purport to show you how to work with the bytecode. You struggle, they are not documented enough. The Python community hasn’t done as much effort as Sun in documenting the bytecode or even standardising them. The belief in source code and that is what survives Python vs Jython vs IronPython vs Pypy etc. There is no standardised Python VM, unlike the JVM. So, close but no cigar. Bytecode is not the right way, the AST is. If the AST works, that is.
You give up on your ideas of improving Python this way. You look for languages where you can do this in an easier way. May be Clojure, or Elixir (that was me anyway).
All of this is true, and you certainly have hit the most fundamental problem in Python that I know of. The fact is, that has nothing to do with the Zen. Just as the GIL has nothing to do with the Zen. These are shortcomings that the Python community tries time and again to fix. If I have a penny for each time there is an attempt in Python to fix one of these two, I would buy Amazon outright.
Also, what we are talking about is not metaprogramming. It is not the type of flexibility that Lisp has or Erlang has. Because Python has way more of metaprogramming than Java runtime introspection (java.lang.reflect and co.). What you are alluding to is the existence of a standardised JVM. I like the JVM, not Java though. And at the moment other than compatibility not sure why one would pick Java against Clojure, Kotlin or may be Scala.
The space for having something corresponding to the JVM is what is attacked in one way or another by the Numba approach, by Pypy, and a number of VMs that support Python as one of their languages.
When the Pypy community met that issue, they created a simplified Python (RPython) to use.
My advice: forget about all the nonsense newbie developers tell you about this being because of the Zen or that Guido said so. The number of senior people in the community trying to fix this (or the GIL) is staggering. It is an engineering problem, simple as that.
| null |
0
|
1544114664
|
False
|
0
|
eb8116a
|
t3_a2hpd8
| null | null |
t1_eb7w77v
|
/r/programming/comments/a2hpd8/is_lisp_a_good_language_to_start_learning_as_a/eb8116a/
|
1547098398
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ManiGandham
|
t2_tv7qk
|
It was fine. The database didn't matter in this case, they just didn't know how to operate it. They wanted to move to AWS and AWS doesn't have managed MongoDB so instead of using a vendor that could do it, they decided to spend a year rewriting everything to PostgreSQL so they could use AWS RDS. This is a well-written article about a poor technical decision.
| null |
1
|
1545262511
|
1545272835
|
0
|
ec59lro
|
t3_a7q1bi
| null | null |
t1_ec529o3
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59lro/
|
1547825271
|
-1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
I strongly suspect that most people dealing with "hundreds of terabytes of data" only have that much data because they royally screwed up something.
Like the person elsewhere in this thread who thought that they needed to track the position of every car in their fleet second by second and never lose an update.
The ability to distinguish between the data you really need (both now and long term) and the cruft that you are holding onto just because your client likes to hoard things makes someone an invaluable data architect.
| null |
0
|
1544114697
|
False
|
0
|
eb812yq
|
t3_a3dobm
| null | null |
t1_eb7kkv6
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb812yq/
|
1547098419
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
TommyTheTiger
|
t2_7hizh
|
Were you reading the same article as everyone else? I can't find those quotes anywhere. Also,a 7 table join is by no means necessarily slow, or complicated
| null |
0
|
1545262523
|
False
|
0
|
ec59m7c
|
t3_a7q1bi
| null | null |
t1_ec57xfn
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59m7c/
|
1547825276
|
13
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
coffeewithalex
|
t2_2ie1hb9f
|
ADO, odbc and other methods are actually incredibly slow. Orders of magnitude slower than piping CSV data from, say, MySQL to Postgresql. BCP was the only viable (in terms of speed) solution that has ever been proposed to me.
| null |
0
|
1544114723
|
False
|
0
|
eb8148v
|
t3_a3dobm
| null | null |
t1_eb7z428
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb8148v/
|
1547098435
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
DJTheLQ
|
t2_cn3ma
|
How does encryption at rest help you against law enforcement, especially when both the app and db are hosted by the same company? They can still get Amazon to give both pieces, then they search the app side for the keys. Harder yes, but completely feasible.
| null |
0
|
1545262552
|
False
|
0
|
ec59nfy
|
t3_a7q1bi
| null | null |
t1_ec5511u
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59nfy/
|
1547825292
|
21
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
franzwong
|
t2_5ysgs
|
I think hackers from China and Russia would be happy about that.
| null |
0
|
1544114733
|
False
|
0
|
eb814rn
|
t3_a3kk7u
| null | null |
t3_a3kk7u
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb814rn/
|
1547098442
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
888808888
|
t2_tf1pq
|
I'm confused. MongoDB apparently can't do SQL style joins so you're left "flat-filing it". With postgresql, you CAN set up your tables denormalized, or, you can fully normalize down to 7 tables. How is that "not ideal solution either"? You have far more options available in psql. Joining on 7 tables is nothing to worry about provided you have indexes on the key columns. And if you get tired of typing the query over and over, "create view x as (select .... 7 table join)".
And typically if you need a 7 table join and if it is performance intensive, we just de-normalize down to a few tables, or a single table (at the cost of disk space and remembering to drop/recreate/update the table after the 7 source tables update).
The point is, psql gives you options. MongoDB gives you nothing. Once you become more and more accustomed to psql (sql databases in general), your skills grow, and you realize how easy it is to do things that before you had to do in code. I shudder at the crap I wrote before getting up to speed with sql. I'm convinced that most people who turn to stuff like mongo do it because it appears to be easier to use, rather than for any specific performance reasons.
There are cases where you simply need to move away from psql, I usually drop down to solr for stuff like that, but would never consider using solr "first" or as my primary storage mechanism.
I tested (briefly) a graph db out once, think it was "orient db" but found performance no better (actually worse) than psql. Maybe I didn't try hard enough or was doing something wrong but I remember being quite disappointed after discovering the hype wasn't delivering.
| null |
0
|
1545262622
|
False
|
0
|
ec59q9s
|
t3_a7q1bi
| null | null |
t1_ec57xfn
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec59q9s/
|
1547825326
|
12
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
LOL, I bet he also thinks static typing is useless because it won't prevent him from writing "if a < b" when he means "if a <= b".
| null |
0
|
1544114779
|
False
|
0
|
eb817c8
|
t3_a3dobm
| null | null |
t1_eb7hoc7
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb817c8/
|
1547098473
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
LukeLC
|
t2_jgopy
|
While I can't confirm or deny if this is true, as a regular web developer I can say that I have to write more Chrome-specific fixes than any other browser, including Edge, including *other Chromium browsers*. It's like IE all over again, only for some reason people love it. If that behavior was intentional, that's seriously not cool.
| null |
0
|
1545262725
|
False
|
0
|
ec59uea
|
t3_a7jj68
| null | null |
t3_a7jj68
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec59uea/
|
1547825406
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Overv
|
t2_51fub
|
They could simply reject any attempts at communications that they cannot decrypt at the ISP level. Of course, that won't prevent criminals from sending things that look unencrypted, like stenography.
| null |
0
|
1544114855
|
False
|
0
|
eb81bav
|
t3_a3kk7u
| null | null |
t1_eb7yymm
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb81bav/
|
1547098522
|
15
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
BraveSirRobin
|
t2_o367
|
[Needs a Scottish accent for best effect](https://youtu.be/4MGtU8OX_3c?t=70).
| null |
0
|
1545262865
|
False
|
0
|
ec5a00l
|
t3_a7q1bi
| null | null |
t1_ec59kkf
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec5a00l/
|
1547825475
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
SuperiorExcess
|
t2_14wdmj
|
Five eyes so dunno
| null |
0
|
1544114971
|
False
|
0
|
eb81hbt
|
t3_a3kk7u
| null | null |
t1_eb7vm9o
|
/r/programming/comments/a3kk7u/australian_programmers_could_be_fired_by_their/eb81hbt/
|
1547098597
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1545262936
|
False
|
0
|
ec5a2ve
|
t3_a7jj68
| null | null |
t1_ec4ppdr
|
/r/programming/comments/a7jj68/former_microsoft_edge_intern_claims_google/ec5a2ve/
|
1547825512
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
The only reason it isn't bad, now, is that they put a relational data storage engine under it. Since version 3 they been using WiredTiger instead of their own NoSQL style datastore.
| null |
0
|
1544114987
|
False
|
0
|
eb81i6r
|
t3_a3dobm
| null | null |
t1_eb794to
|
/r/programming/comments/a3dobm/at_22_years_old_postgres_might_just_be_the_most/eb81i6r/
|
1547098607
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
doublehyphen
|
t2_9v5mu
|
PostgreSQL has had integrated replication for 8 years, and even before then there were built-in warm standby (from 8.2, 12 years old by now) which was a bit fiddly to set up but worked just fine in production for us. I feel that you are talking about how things were 10+ years ago.
| null |
0
|
1545262979
|
False
|
0
|
ec5a4nh
|
t3_a7q1bi
| null | null |
t1_ec542zf
|
/r/programming/comments/a7q1bi/bye_bye_mongo_hello_postgres/ec5a4nh/
|
1547825533
|
17
|
t5_2fwo
|
r/programming
|
public
| null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.