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
|
thirdegree
|
t2_63m0r
|
Works fine in Chrome. Though when you paste the leading `javascript:` is removed so it just tries to search the rest. If you manually re-add that it works
| null |
0
|
1543946136
|
False
|
0
|
eb2xuj4
|
t3_a2way5
| null | null |
t1_eb1ypvx
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2xuj4/
|
1547012770
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
pastudan
|
t2_5ecpm
|
Great article! I'm curious if you are planning on developing this a bit further. I was thinking you could easily wrap this into an electron app, and also create a "friends list" by pulling in contacts from Google via OAuth so there's no need to pass around links.
This boilerplate repo gets you set up with react hot reloading in just a few seconds: https://github.com/electron-react-boilerplate/electron-react-boilerplate
I've been hesitant to pay for Discord's nitro service just for screensharing -- it doesn't seem worth it, especially since its all done via WebRTC at no cost to them! And as you said, all others have various issues. (I miss you Screenhero!). So I'm glad to see this article at a time like this.
| null |
0
|
1545116027
|
False
|
0
|
ec14ykl
|
t3_a6r0ka
| null | null |
t3_a6r0ka
|
/r/programming/comments/a6r0ka/concord_how_i_built_a_screen_sharing_application/ec14ykl/
|
1547755816
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
izuriel
|
t2_afn26
|
Nope. They’re not. That was a recording from the 90s.
| null |
0
|
1543946157
|
False
|
0
|
eb2xvha
|
t3_a2way5
| null | null |
t1_eb2t1b0
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2xvha/
|
1547012781
|
5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
> If our initial fetch for data fails for some reason, or the record simply does not exist, we don't have to care to handle it with ad-hoc handling/conditional code in our concise service area, we simply don't end up applying any of the latter steps to it.
> If we need code to handle "did get-users error out" or return 0 records, at that point, we can write a business logic case for what should happen there, and run those scenarios in tandem with the maybe-hiring one.
Or in other words, it silently fails and there is no way to differentiate between a rejected candidate and a temporary network glitch.
I hate cutesy code like this that totally ignores the needs of a production environment.
| null |
0
|
1545116169
|
False
|
0
|
ec151w2
|
t3_a78jub
| null | null |
t3_a78jub
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec151w2/
|
1547755857
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
michalg82
|
t2_jlmmk
|
Where?
I'm seeing:
> We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.
From https://github.com/dotnet/wpf/blob/master/Documentation/contributing.md
| null |
0
|
1543946201
|
False
|
0
|
eb2xxn1
|
t3_a32d8v
| null | null |
t1_eb2x60f
|
/r/programming/comments/a32d8v/announcing_net_core_3_preview_1_and_open_sourcing/eb2xxn1/
|
1547012808
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
pastudan
|
t2_5ecpm
|
I understand not wanting to be critiqued on your react skills. But in my experience that's not what happens. The only negative is that you'll have people asking for features / dictating your roadmap -- you just have to be comfortable saying no to things you don't want to build.
But that said, I'd love if you open sourced this -- I want to make a PR to wrap it in electron to prevent needing the chrome://flags tweak. As well as maybe add a friends list.
| null |
0
|
1545116201
|
False
|
0
|
ec152m3
|
t3_a6r0ka
| null | null |
t1_ebxqruu
|
/r/programming/comments/a6r0ka/concord_how_i_built_a_screen_sharing_application/ec152m3/
|
1547755866
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
RedditMemeZone75655
|
t2_1fpdoa7d
|
If the theory that all of earth is a huge simulation, then we just made a simulation, inside a simulation
| null |
1
|
1543946236
|
False
|
0
|
eb2xzdg
|
t3_a2zftr
| null | null |
t3_a2zftr
|
/r/programming/comments/a2zftr/the_first_interactive_ai_rendered_virtual_world/eb2xzdg/
|
1547012830
|
-2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
serrrenitynow
|
t2_2bm3v7o3
|
Okay, I thought this thing was kinda lame at first and then I started just throwing all the different particle types into it. When I got to wind I thought, okay kinda neat. And then fire, wow this is actually pretty damn cool! Nice work OP. Looks like a very fun little project.
| null |
0
|
1545116334
|
False
|
0
|
ec155r4
|
t3_a6zxou
| null | null |
t3_a6zxou
|
/r/programming/comments/a6zxou/sandspiel_a_falling_sand_game_built_in_rust_and/ec155r4/
|
1547755905
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Malarious
|
t2_4sozs
|
It's just the rendering engine. Standardization there makes a lot of sense. I can't imagine a scenario where having all web pages display properly is bad for the end user.
| null |
0
|
1543946312
|
False
|
0
|
eb2y34q
|
t3_a313x9
| null | null |
t1_eb2tmkd
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb2y34q/
|
1547012876
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
bjzaba
|
t2_6967a
|
Yup. On the visual/UX design side of things the designers are expected to challenge the brief all the time.
| null |
0
|
1545116379
|
False
|
0
|
ec156t2
|
t3_a719k6
| null | null |
t1_ec0laf6
|
/r/programming/comments/a719k6/the_consequences_of_your_code_tom_scott/ec156t2/
|
1547755919
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
samjmckenzie
|
t2_1ajtp69
|
Fuck. I am a teenager and I'm using TypeScript. Do I also have to embrace the Script?!
| null |
0
|
1543946346
|
1543950288
|
0
|
eb2y4rg
|
t3_a32foa
| null | null |
t1_eb2xe1g
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2y4rg/
|
1547012895
|
40
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
drjeats
|
t2_4lzhn
|
Your explanations are insufficient. Also, I said try again tomorrow.
| null |
0
|
1545116422
|
False
|
0
|
ec157sp
|
t3_a6i85m
| null | null |
t1_ec0lxmx
|
/r/programming/comments/a6i85m/openjdk_bug_report_complains_source_code_has_too/ec157sp/
|
1547755931
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
jcelerier
|
t2_nju89
|
The Linux port is called WINE. That's literally what it its.
| null |
1
|
1543946406
|
False
|
0
|
eb2y7o1
|
t3_a32foa
| null | null |
t1_eb2trp5
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2y7o1/
|
1547012932
|
9
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
jiakuan
|
t2_5a2lb
|
It should be not hard to implement in Document Node, based on the current data structure. A few more questions:
> The tree should be present twice in the editing interface
Do you mean it should be present twice in the text editor?
Any real-world use cases to show what problems this feature tries to resolve? (Before jumping into implementation, we'd like to learn more about the goal)
If we plan to add this feature, are you willing to test and give feedback? (It'd be helpful to make sure we do it in the right way.)
Thanks a lot for your feedback and discussions.
| null |
0
|
1545116490
|
False
|
0
|
ec159dr
|
t3_a6rl3k
| null | null |
t1_ec14kjl
|
/r/programming/comments/a6rl3k/be_more_creative_on_writing_by_using_a_mind_map/ec159dr/
|
1547755950
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
R3PTILIA
|
t2_66scz
|
yeah but you need a flash compatible browser which is no longer the default
| null |
0
|
1543946408
|
False
|
0
|
eb2y7ro
|
t3_a2xikx
| null | null |
t1_eb2eauz
|
/r/programming/comments/a2xikx/quora_user_data_compromised/eb2y7ro/
|
1547012932
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
Misusing maps and filters.
There's no reason to apply them one record at a time. Apply it to a list of candidates.
Oh wait. If you did that then you could take the next logical step and move the check into the database query where it belongs.
Which could then lead to the next step, transactionaly marking the records so you don't send multiple offers.
Yes, we can get rid of the if statements. But this isn't the way to do it.
| null |
0
|
1545116522
|
False
|
0
|
ec15a3y
|
t3_a78jub
| null | null |
t1_ec14v1h
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec15a3y/
|
1547755960
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1543946415
|
False
|
0
|
eb2y842
|
t3_a32foa
| null | null |
t1_eb2trp5
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2y842/
|
1547012937
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
xenow
|
t2_4a96d
|
An integrity check should run as it's own thing, before firing off the process. I mention that at the end. The code to run an email process and the associated flow is clear without being obfuscated behind edge cases and error handling.
What I am alluding to is that in general, each function should be distinct. The building blocks in the chain should handle their errors, not the process chain they run. Think of unix pipes.
| null |
0
|
1545116550
|
False
|
0
|
ec15aqk
|
t3_a78jub
| null | null |
t1_ec151w2
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec15aqk/
|
1547755967
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
metorical
|
t2_3o2nd
|
The number of times big companies have asked me to "Download chrome and try again" is astounding, I'm sure it's part of their support scripts. Once I was using their own mobile app too (looking at you airbnb). To their credit they were all polite about it.
| null |
0
|
1543946442
|
False
|
0
|
eb2y9f4
|
t3_a313x9
| null | null |
t1_eb2ocr5
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb2y9f4/
|
1547012953
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Gotebe
|
t2_2y75
|
> If I mix writing a feature with refactoring the code, my pull request will be harder to parse
The way to deal with that is to have two branches: one for the feature, another for the refactoring. Since the refactoring is a consequence of a feature, branch ofc the feature branch. Merge freely between the two, but keep the two aspects of the work separate. Finally, merge all of the refactoring work into the feature and submit that, while saying that refactoring-related changes are in a separate branch X (heck, branches).
The original sin with TFA is that it thinks a pull request is enough for anything. Well, it is not and it never was. Life is hard, deal with it.
| null |
0
|
1545116551
|
False
|
0
|
ec15arh
|
t3_a72807
| null | null |
t3_a72807
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15arh/
|
1547755967
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
filleduchaos
|
t2_7r81qd
|
The *whole point* is that you don't need a specially written library for it. If you can run an SQL query - i.e. if you're using pretty much any relational database driver in existence - you can use *SQL's own syntax* to **PREPARE** a statement and then **EXECUTE** it. Prepared statements are *in themselves* not vulnerable to SQL injection\* because when you EXECUTE them you're passing input as data, not as executable code. You don't need anything else to "safely" pass parameters to the query. Is there any other easily searchable information that you'd like me to spell out for you?
*Of course, like with anything else you can find and exploit vulnerabilities e.g. via a potential buffer overflow. But that's not SQL injection anymore.
| null |
1
|
1543946443
|
False
|
0
|
eb2y9gp
|
t3_a2way5
| null | null |
t1_eb2wbo2
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2y9gp/
|
1547012953
|
-1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
raz_c
|
t2_290t4gr6
|
That's a valid point, I could've used better naming. The reason I did that is to make the example easier to follow.
At the end of the article, I encourage people to read other articles as well. So I hope that instead of blindly following my examples, people will read other perspectives and form an opinion.
| null |
0
|
1545116689
|
False
|
0
|
ec15dxu
|
t3_a6zede
| null | null |
t1_ebzmnhu
|
/r/programming/comments/a6zede/whats_the_deal_with_the_solid_principles_part_3/ec15dxu/
|
1547756006
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
s73v3r
|
t2_3c7qc
|
Why the holy fuck should I not get paid in money for my work?
| null |
0
|
1543946585
|
False
|
0
|
eb2ygdc
|
t3_a2lrrh
| null | null |
t1_eb1xac2
|
/r/programming/comments/a2lrrh/developer_on_call/eb2ygdc/
|
1547013068
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Gotebe
|
t2_2y75
|
TFA is unfair. **Anything and everything** isn't working all that well for some situations. So they spak of such situations, but generalize to "hence X is insufficient".
A.k.a [faulty generalisation](https://en.m.wikipedia.org/wiki/Faulty_generalization).
| null |
0
|
1545116750
|
False
|
0
|
ec15fbv
|
t3_a72807
| null | null |
t3_a72807
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15fbv/
|
1547756023
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
MorrisonLevi
|
t2_74s59
|
Input filtering and sanitizing are only a front-line defense -- they are not the "solution". The preferred solution whenever possible is to distrust all user data and treat it as data, never as program or code. In the case of SQL you *should not* be using `mysql_escape_string` *nor* `mysql_real_escape_string` and instead should be using parameterized queries. Parameterized queries allow you to distinguish between the code and the data, preventing the issue.
Similarly, you escape data on output in a way that's tailored to the specific output type.
There are exceptions. For instance, if you need your users to be able to write semi-arbitrary HTML to customize their page or profile or something then you are going to need to sanitize, and that's a very difficult problem which (I assume) Mozilla Bleach tries to do.
| null |
0
|
1543946631
|
False
|
0
|
eb2yikr
|
t3_a2way5
| null | null |
t1_eb296o4
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2yikr/
|
1547013096
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
HelperBot_
|
t2_owot1
|
Non-Mobile link: https://en.wikipedia.org/wiki/Faulty_generalization
***
^HelperBot ^v1.1 ^/r/HelperBot_ ^I ^am ^a ^bot. ^Please ^message ^/u/swim1929 ^with ^any ^feedback ^and/or ^hate. ^Counter: ^225199
| null |
0
|
1545116756
|
False
|
0
|
ec15fgu
|
t3_a72807
| null | null |
t1_ec15fbv
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15fgu/
|
1547756025
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
imhotap
|
t2_13wrff
|
That's XSS 101. I actually taught kids to create a minimal guestbook app where posted comments just got appended to a file, then pwned them by sending `<script>alert('...')</script>` as comment just to put them on ... alert.
Always use a competent markup processor to assemble HTML from user input. SGML, on which HTML is based, has had HTML-aware escaping (including URL escaping) and eg. context-dependent blocking of `<script>` since the beginning.
| null |
0
|
1543946646
|
False
|
0
|
eb2yj8d
|
t3_a2way5
| null | null |
t3_a2way5
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2yj8d/
|
1547013104
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
FunCicada
|
t2_1p5massk
|
A faulty generalization is a conclusion about all or many instances of a phenomenon that has been reached on the basis of just one or just a few instances of that phenomenon. It is an example of jumping to conclusions. For example, we may generalize about all people, or all members of a group, based on what we know about just one or just a few people. If we meet an angry person from a given country X, we may suspect that most people in country X are often angry. If we see only white swans, we may suspect that all swans are white. Faulty generalizations may lead to further incorrect conclusions. We may, for example, conclude that citizens of country X are genetically inferior, or that poverty is generally the fault of the poor.
| null |
0
|
1545116768
|
False
|
0
|
ec15fpy
|
t3_a72807
| null | null |
t1_ec15fgu
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15fpy/
|
1547756029
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
yzrmn
|
t2_2jzvd47s
|
I would love to see a true cross-platform graphics framework first.
EDIT: Should clarify, written in nothing but C#
| null |
0
|
1543946657
|
1543947901
|
0
|
eb2yjt8
|
t3_a32foa
| null | null |
t1_eb2trp5
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2yjt8/
|
1547013111
|
13
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
Show your work. Saying that you can do everything isn't the same as proving it. And in stupid tricks like this, the proof is often much harder than one realizes.
I can already see major problems in your theory. With each function doing it's own error handling, that is going to lead to a lot of duplication.
And as I said before, you still need to tell the caller about the problem so that it can make decisions that you were not aware of.
| null |
0
|
1545116813
|
False
|
0
|
ec15gro
|
t3_a78jub
| null | null |
t1_ec15aqk
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec15gro/
|
1547756042
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
to3m
|
t2_hwd32
|
It's only unpaid if you don't get paid! What percentage of Windows Forms developers *don't* get paid for their Windows Forms-related work, I wonder?
| null |
0
|
1543946663
|
False
|
0
|
eb2yk4b
|
t3_a32foa
| null | null |
t1_eb2to81
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2yk4b/
|
1547013115
|
8
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
i8beef
|
t2_4aaye
|
The mark of experience: realizing every rule, best practice and principle is actually contextual.
| null |
0
|
1545116827
|
False
|
0
|
ec15h2a
|
t3_a72807
| null | null |
t1_ebzu72i
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15h2a/
|
1547756045
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
xenomachina
|
t2_7mxhc
|
Post some real code, or admit you don't know what you're talking about. Some requirements:
- arguments must come from non-SQL
- query must be prepared entirely in SQL
- binding arguments to prepared statement cannot rely on any support from host language or libraries
| null |
1
|
1543946691
|
False
|
0
|
eb2ylm0
|
t3_a2way5
| null | null |
t1_eb2y9gp
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2ylm0/
|
1547013133
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
MotorAdhesive4
|
t2_232uur2d
|
Do tell. I'll be your audience.
| null |
0
|
1545116940
|
False
|
0
|
ec15jpe
|
t3_a6z75x
| null | null |
t1_ec01k38
|
/r/programming/comments/a6z75x/three_tips_for_managing_technical_debt_while/ec15jpe/
|
1547756078
|
6
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
KaattuPoochi
|
t2_12d39b
|
Seriously, D guys are very very very poor at marketing!! Imagine if it were rust guys.
| null |
0
|
1543946706
|
False
|
0
|
eb2ymce
|
t3_a3106x
| null | null |
t1_eb2s4rh
|
/r/programming/comments/a3106x/interview_liran_zvibel_of_wekaio/eb2ymce/
|
1547013142
|
11
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
CartmansEvilTwin
|
t2_7kxr6
|
Yes.
| null |
0
|
1545116952
|
False
|
0
|
ec15jza
|
t3_a77ja5
| null | null |
t1_ec14o4i
|
/r/programming/comments/a77ja5/a_tiny_compiler_with_elf_and_pe_executable_for_x86/ec15jza/
|
1547756081
|
24
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
zayelion
|
t2_70rdq
|
We have those already, they are called contractors.
| null |
0
|
1543946722
|
False
|
0
|
eb2yn63
|
t3_a2on5t
| null | null |
t1_eb1ymgn
|
/r/programming/comments/a2on5t/what_comes_after_serverless/eb2yn63/
|
1547013153
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
arcticfox
|
t2_9yng
|
This rant is totally off the mark and comes from a place of ignorance with respect to how software is developed. First, in any real system, there are far too many cases to be fully identified, and for those that are, for each one to be carefully considered. Second, schedules are always too short and resources are always too tight for software to be developed in the utopian manner he wishes. If people want higher quality software then they need to be willing to pay more for it. Finally, qualified analysts and developers \*do\* look for failure modes. Unfortunately, the field is awash with incompetent people. Coding boot-camps may show people (badly) how to code, but they don't teach people how to solve problems that have any level of complexity.
&#x200B;
I could go much deeper into this whole topic, but I opted to keep my response short.
| null |
0
|
1545117009
|
False
|
0
|
ec15l8l
|
t3_a719k6
| null | null |
t3_a719k6
|
/r/programming/comments/a719k6/the_consequences_of_your_code_tom_scott/ec15l8l/
|
1547756097
|
-7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Dockirby
|
t2_6ozpc
|
But isn't Edge already a Chrome based browser?
| null |
0
|
1543946813
|
False
|
0
|
eb2yrq5
|
t3_a313x9
| null | null |
t3_a313x9
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb2yrq5/
|
1547013209
|
-4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1545117129
|
False
|
0
|
ec15nwy
|
t3_a72807
| null | null |
t1_ebzu72i
|
/r/programming/comments/a72807/why_the_boy_scout_rule_is_insufficient/ec15nwy/
|
1547756130
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Somepotato
|
t2_61zcz
|
Properly? Chromium is notorious for violating web standards. Having only two browsers is absolutely awful for an open web
| null |
0
|
1543946833
|
False
|
0
|
eb2ysq2
|
t3_a313x9
| null | null |
t1_eb2y34q
|
/r/programming/comments/a313x9/microsoft_building_new_chromebased_browser_to/eb2ysq2/
|
1547013222
|
10
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
nightcracker
|
t2_biibj
|
Really? I feel I know less after reading that than I did before.
| null |
0
|
1545117209
|
False
|
0
|
ec15pr8
|
t3_a7070p
| null | null |
t1_ec0yy2m
|
/r/programming/comments/a7070p/modernizing_math_typesetting_with_svg/ec15pr8/
|
1547756153
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
teknorath
|
t2_4q353
|
Nope.
| null |
0
|
1543946891
|
False
|
0
|
eb2yvo2
|
t3_a32foa
| null | null |
t1_eb2xg1u
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2yvo2/
|
1547013258
|
29
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
combinatorylogic
|
t2_iab4d
|
And all such studies were very flawed methodologically. Hardly an evidence.
| null |
0
|
1545117268
|
False
|
0
|
ec15r2l
|
t3_a6nfgh
| null | null |
t1_ec0sa9o
|
/r/programming/comments/a6nfgh/things_nobody_told_me_about_being_a_software/ec15r2l/
|
1547756169
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
b1ackcat
|
t2_43hbe
|
I don't necessarily agree that the builder pattern is the correct solution to solve this problem.
The builder pattern is very handy when used appropriately, but it is *not* a one-size-fits-all solution for most classes. It's most often useful for classes which have a small number of hard dependencies, but a large number of optional dependencies and/or configurable parameters. A great example is initializing a Server() object, where you may have to specify a port number, but which have sane defaults for timeouts, accepted protocols, enabled features, etc.
But for classes with only a handful of dependencies, which are always required (i.e. most classes), the builder is just noise that doesn't really buy you anything, and is just more code to maintain. Typically, if you find yourself in the scenario described in the post, where you're adding a dependency to a class, that means there's at least a couple places in the class where that dependency is now used, so the behavior has probably changed, so you need to update your tests anyway. And depending on where that dependency is used, you may end up having to update a bunch of tests anyway just to get the code to run by giving it mock dependencies.
How I typically solve this problem is to have a single test which explicitly tests the constructor (so if that test fails I know why all my other tests are failing; something got messed up in the constructor), but for all the rest of my tests, I use a private factory method on the test class. The factory method has parameters that match the dependency list for the constructor of the class under test, and whenever possible, they're given sane default values which represent the the object in a valid state.
Then, in my tests, I just call the factory method, and I can inject whatever mocks are necessary via the factory methods parameters, while ignoring the values I don't care about (subject to the rules around default/named parameters for whatever language I'm in, of course).
This way, you're making it explicit in your test what dependencies are involved for that test only, and if the signature of the class under test does need to change, you just update the constructor test and the factory method and you're done (again, this does depend on how nicely your language handles default/named parameters, your tests might need to pass in explicit default values if the language doesn't support named parameters).
| null |
0
|
1543946904
|
False
|
0
|
eb2ywch
|
t3_a32mjl
| null | null |
t3_a32mjl
|
/r/programming/comments/a32mjl/the_builder_pattern_and_how_it_will_save_your/eb2ywch/
|
1547013267
|
8
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
qq123q
|
t2_41jc1
|
> But AMP isn't locked in to Google.
That doesn't matter as long as the resulting effect of it is a more influence for Google.
| null |
0
|
1545117315
|
False
|
0
|
ec15s2x
|
t3_a71ccv
| null | null |
t1_ec0iscs
|
/r/programming/comments/a71ccv/google_amp_case_study_leads_dropped_by_59_how_to/ec15s2x/
|
1547756181
|
8
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1543946923
|
False
|
0
|
eb2yxb2
|
t3_a32r4e
| null | null |
t3_a32r4e
|
/r/programming/comments/a32r4e/announcing_visual_studio_2019_preview_1/eb2yxb2/
|
1547013279
|
8
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
combinatorylogic
|
t2_iab4d
|
A large switch statement is a good example of an unbreakable story. Of course you can make a method per case and put all cases into a dictionary, or whatever else equally stupid, but readability of the story will be lost.
No such refactoring will improve your ability to test the functionality in any way.
| null |
0
|
1545117418
|
False
|
0
|
ec15ucr
|
t3_a70crz
| null | null |
t1_ec0nsps
|
/r/programming/comments/a70crz/stop_learning_frameworks/ec15ucr/
|
1547756209
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ben_a_adams
|
t2_fid2r
|
Yes; maybe? :)
| null |
0
|
1543946926
|
False
|
0
|
eb2yxfj
|
t3_a32d8v
| null | null |
t1_eb2xpit
|
/r/programming/comments/a32d8v/announcing_net_core_3_preview_1_and_open_sourcing/eb2yxfj/
|
1547013280
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
meneldal2
|
t2_l7gg5
|
Simulation is not perfect. If you have 5 "grains" of sand, there will be an imbalance.
| null |
0
|
1545117529
|
False
|
0
|
ec15ws8
|
t3_a6zxou
| null | null |
t1_ec04xw3
|
/r/programming/comments/a6zxou/sandspiel_a_falling_sand_game_built_in_rust_and/ec15ws8/
|
1547756240
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Sinidir
|
t2_cj8vg
|
Just be sure to free all the resources you used.
| null |
0
|
1543947021
|
False
|
0
|
eb2z22o
|
t3_a30hg9
| null | null |
t1_eb2lyf4
|
/r/programming/comments/a30hg9/gcc_9_adds_frontend_support_for_the_d_programming/eb2z22o/
|
1547013337
|
24
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
grauenwolf
|
t2_570j
|
> The building blocks in the chain should handle their errors, not the process chain they run.
P.S. In VB we have that ability backed into the language. It is called `On Error Resume Next`. And it's universally held to be VB's worst feature by far.
| null |
0
|
1545117626
|
False
|
0
|
ec15yyf
|
t3_a78jub
| null | null |
t1_ec15aqk
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec15yyf/
|
1547756266
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
_INTER_
|
t2_qqzj8
|
Nope.
>If you put a spoonful of wine in a barrel full of sewage, you get sewage. If you put a spoonful of sewage in a barrel full of wine, you get sewage. - *Schopenhauer's Law of Entropy*
Wine = TypeScript.
| null |
0
|
1543947111
|
False
|
0
|
eb2z64k
|
t3_a32lo1
| null | null |
t3_a32lo1
|
/r/programming/comments/a32lo1/why_would_a_java_engineer_love_frontend/eb2z64k/
|
1547013387
|
13
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
belverk
|
t2_4mgt0
|
There is more recent fork: https://github.com/komly/grpc-ui
Thing expected to work with any grpc service with reflection.
| null |
0
|
1545117710
|
False
|
0
|
ec160s3
|
t3_a6yo9z
| null | null |
t1_ebzh7rv
|
/r/programming/comments/a6yo9z/bloomrpc_gui_client_for_grpc_services/ec160s3/
|
1547756289
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Zauxst
|
t2_88tet
|
If they would integrate c# completely into Linux their server and developer market will die, windows will become an expensive media OS.
| null |
0
|
1543947116
|
False
|
0
|
eb2z6e9
|
t3_a32foa
| null | null |
t3_a32foa
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2z6e9/
|
1547013390
|
-28
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
blablahblah
|
t2_3qimz
|
So the concern is that Google comes up with too many ideas, and therefore they need to start being ignored for no reason other than "Google came up with it"?
| null |
1
|
1545117850
|
False
|
0
|
ec163tw
|
t3_a71ccv
| null | null |
t1_ec15s2x
|
/r/programming/comments/a71ccv/google_amp_case_study_leads_dropped_by_59_how_to/ec163tw/
|
1547756326
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ZeroOne010101
|
t2_ykd4cdf
|
Id love to see a safe version of this, with only bad things cut out. Best feature ever
| null |
0
|
1543947257
|
False
|
0
|
eb2za1h
|
t3_a2way5
| null | null |
t3_a2way5
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2za1h/
|
1547013436
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Yardanico
|
t2_i074i08
|
There's ThePowderToy for Android :) and it has a bit better performance
| null |
0
|
1545117966
|
False
|
0
|
ec166ct
|
t3_a6zxou
| null | null |
t1_ec12puw
|
/r/programming/comments/a6zxou/sandspiel_a_falling_sand_game_built_in_rust_and/ec166ct/
|
1547756358
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1543947278
|
False
|
0
|
eb2za6v
|
t3_a2way5
| null | null |
t1_eb2wbo2
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2za6v/
|
1547013438
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
MirrorNext
|
t2_y6jeq
|
CRuby is a bit problematic on Windows, but JRuby is pretty good, tho.
If you are developing Ruby in Windows, I’d suggest JRuby.
| null |
0
|
1545118064
|
False
|
0
|
ec168ht
|
t3_a6z8lb
| null | null |
t1_ec0mqu3
|
/r/programming/comments/a6z8lb/running_jruby_on_the_graal_jit/ec168ht/
|
1547756412
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
pnpbios
|
t2_3q91b
|
Winforms already has a mono port based off of cairo. This could lead to a much more faithful implementation of winforms.
| null |
0
|
1543947287
|
False
|
0
|
eb2za9x
|
t3_a32foa
| null | null |
t1_eb2vvfy
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2za9x/
|
1547013439
|
41
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
NotExecutable
|
t2_fw7wi
|
Opposite problem here: If we have a common (error) message not descriptive enough, we get bullied by the customer support team dealing with all those god damn calls from concerned/confused/angry customers.
I think we even deactivated features a couple of times til we got the fixed text up to production. But I'm not sure if I remember that right - we might just have thought about doing that.
| null |
0
|
1545118161
|
1545118861
|
0
|
ec16ak9
|
t3_a719k6
| null | null |
t1_ebzjwhx
|
/r/programming/comments/a719k6/the_consequences_of_your_code_tom_scott/ec16ak9/
|
1547756438
|
4
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1543947385
|
False
|
0
|
eb2zbpr
|
t3_a331io
| null | null |
t3_a331io
|
/r/programming/comments/a331io/ive_made_my_own_rsa_and_aes_encryption_algorithms/eb2zbpr/
|
1547013456
|
0
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
PM_ME_NULLs
|
t2_ckb1jnv
|
> at this point you shouldn't - as a learner - bother with bash or perl.
Out of curiosity, why?
I wouldn't necessarily recommend either as a beginning language (perhaps that's what you meant?), but both languages have their strengths.
| null |
0
|
1545118333
|
False
|
0
|
ec16e77
|
t3_a706es
| null | null |
t1_ebzd5ct
|
/r/programming/comments/a706es/5_programming_languages_to_learn_in_2019/ec16e77/
|
1547756484
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Latexi95
|
t2_mzoes
|
So many needless static variables and in header only library that can't be included multiple times because of duplicated symbols.
It requires some additional work, I think.
| null |
0
|
1543947391
|
False
|
0
|
eb2zc51
|
t3_a331io
| null | null |
t3_a331io
|
/r/programming/comments/a331io/ive_made_my_own_rsa_and_aes_encryption_algorithms/eb2zc51/
|
1547013461
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
canopeerus
|
t2_4m0d9nv
|
Will check it out
| null |
0
|
1545118426
|
False
|
0
|
ec16g2p
|
t3_a6zxou
| null | null |
t1_ec166ct
|
/r/programming/comments/a6zxou/sandspiel_a_falling_sand_game_built_in_rust_and/ec16g2p/
|
1547756508
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1543947393
|
False
|
0
|
eb2zcd3
|
t3_a2zftr
| null | null |
t1_eb29fw5
|
/r/programming/comments/a2zftr/the_first_interactive_ai_rendered_virtual_world/eb2zcd3/
|
1547013464
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
qq123q
|
t2_41jc1
|
Google with their dominant market position should consider what the result is of ideas/technology/standards that they put out there.
| null |
0
|
1545118624
|
False
|
0
|
ec16k9s
|
t3_a71ccv
| null | null |
t1_ec163tw
|
/r/programming/comments/a71ccv/google_amp_case_study_leads_dropped_by_59_how_to/ec16k9s/
|
1547756560
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Tokugawa
|
t2_1ld8u
|
https://www.youtube.com/watch?v=cQ54GDm1eL0
| null |
0
|
1543947402
|
False
|
0
|
eb2zd23
|
t3_a2zftr
| null | null |
t1_eb29fw5
|
/r/programming/comments/a2zftr/the_first_interactive_ai_rendered_virtual_world/eb2zd23/
|
1547013473
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
puradawid
|
t2_janux
|
Yeah I think the mobility of phones makes them more unstable in terms of p2p connections - they might change network topology constantly.
| null |
0
|
1545118913
|
False
|
0
|
ec16qfc
|
t3_a735xf
| null | null |
t1_ec111r9
|
/r/programming/comments/a735xf/an_experimental_study_of_the_skype_peertopeer/ec16qfc/
|
1547756636
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Asraelite
|
t2_cld64
|
But they specifically said that the other option was to hire Ruby devs, implying that a lack of knowledge of Ruby was the sole factor in extending the time by five months.
| null |
0
|
1543947420
|
False
|
0
|
eb2ze40
|
t3_a2ml49
| null | null |
t1_eb2qdpn
|
/r/programming/comments/a2ml49/going_frameworkless_why_you_should_try_web_dev/eb2ze40/
|
1547013486
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
major_clanger
|
t2_148kf8
|
Doesn't this also undermine the sprint concept?
You estimate the tasks without trying to account for time, and then use that time-agnostic estimate to work out how many tasks you can complete in a fixed time unit (I.e. Two week sprint).
| null |
0
|
1545118951
|
False
|
0
|
ec16r85
|
t3_a6z75x
| null | null |
t1_ec02vb3
|
/r/programming/comments/a6z75x/three_tips_for_managing_technical_debt_while/ec16r85/
|
1547756645
|
5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
eliasv
|
t2_786hb
|
But *anyone* can profit from Linux contributions. People can *only* profit from Windows contributions if they (and/or their users) pay Microsoft.
| null |
0
|
1543947459
|
False
|
0
|
eb2zfxk
|
t3_a32foa
| null | null |
t1_eb2x8i6
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2zfxk/
|
1547013508
|
-13
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
pjmlp
|
t2_755w5
|
It goes back to Xerox PARC and other research institutes that shared the same goals of improving the overall systems development experience.
However as Joe Duffy puts almost at the end of his keynote related to Midori acceptance within WinDev, even with the system running in front of them there was disbelief it was possible at all.
[RustConf 2017 - Closing Keynote: Safe Systems Software and the Future of Computing by Joe Duffy](https://www.youtube.com/watch?v=CuD7SCqHB7k)
| null |
0
|
1545118973
|
False
|
0
|
ec16rpl
|
t3_a76prp
| null | null |
t1_ec0pnx7
|
/r/programming/comments/a76prp/a_network_protocol_stack_in_standard_ml_2001/ec16rpl/
|
1547756652
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
TheyAreLying2Us
|
t2_o4gzf
|
Qt
| null |
0
|
1543947468
|
False
|
0
|
eb2zgeg
|
t3_a32foa
| null | null |
t1_eb2yjt8
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2zgeg/
|
1547013514
|
40
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
audioen
|
t2_gz6hs
|
> What if a new property is added down the road? Very few IDEs will be able to inform you that you failed to call some later-date added setter in code portions that consume this code.
Or you could just provide a default value. Not that I endorse the practice, but it's simple to do default initialization of a property which allows for some limited forms of evolution while keeping code changes local.
> Secondly, comments (and mandatory docblocks) should always explain the "why", not the "what". Very rarely do these types of comments offer any value whatsoever.
So you have a field called "name". It is in fact quite reasonable to explain what kind of name is supposed to be written on that field, if it isn't obvious in context. It would, of course, be better yet to rename the name to be precise enough so you know without a comment what it means.
> ...or do you treat it as a dumb data store? If the latter, you should probably just scrap your "class" at this point and use a more primitive data type (hashmap / map / named array, whatever your language calls it).
Nope. I realize that this text is written by some guy who only seems to think about dynamically typed languages where hash maps is just as good as an object, but for instance in Java, working with hash maps is terrible because you probably end up defining a map where values are Object and thus cast the value every damn time. Also, memory efficiency is worse with any kind of Map compared to using an object, which might matter if you need to simultaneously deal with millions of them. You can reflect objects into schemas, e.g. autogenerate your TypeScript interface definitions from your Java classes. Type information is hellishly important, you can't just discard that.
> public function acquireCandidateByIdMaybeHiring (int $id): string {
Yeah, nope. In almost every case where I've mixed situational, business dependent logic into some lower level class like the domain object, I've ended up regretting it later. Business rules are finicky, and rarely can be reused, and if you put something highly specific into your POJO, you risk sharing that implementation and mixing up disparate areas of business together because at the beginning they were the same. It's a little easier to avoid this mistake in statically typed environment, because you can reliably look up all places in the code that call a method, and you can then evaluate if the change you're about to make is OK for every context where it's used.
As other people pointed out, approximately the right approach is to write the SQL query that finds the appropriate candidates. This is also an "if-free" design, and SQL being a very high level language, is generally also very compact for expressing the business need, and due to optimizing away extra data already at the source, it's also generally the most performant approach. Doing anything else is kind of stupid, I think.
So, to summarize: most of what we're doing at OO/functional/procedural level is really just pure garbage, it's crap code that has no reason to exist. My general advice would be to basically just delete all of it and write as much SQL as you can instead.
| null |
0
|
1545119073
|
1545119549
|
0
|
ec16tsw
|
t3_a78jub
| null | null |
t3_a78jub
|
/r/programming/comments/a78jub/writing_code_without_ifs_and_boilerplate_waste/ec16tsw/
|
1547756678
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Angelwind76
|
t2_fgmlj
|
We are a very nice chat.
At least most of the time.
But yes, we were lucky we didn't have malicious lurkers in chat. It was fixed right after the video cuts out.
| null |
0
|
1543947486
|
1543947788
|
0
|
eb2zhah
|
t3_a2way5
| null | null |
t1_eb26uhk
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2zhah/
|
1547013525
|
23
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
gemborow
|
t2_107r88
|
Looks like something completely custom. At least I do not recognize it.
| null |
0
|
1545119114
|
False
|
0
|
ec16uon
|
t3_a77ja5
| null | null |
t1_ec14o4i
|
/r/programming/comments/a77ja5/a_tiny_compiler_with_elf_and_pe_executable_for_x86/ec16uon/
|
1547756688
|
10
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
combinatorylogic
|
t2_iab4d
|
ADCE is a very expensive optimisation, so it makes sense to do it only once in a while, not after every constant folding pass you do.
| null |
0
|
1543947519
|
False
|
0
|
eb2ziup
|
t3_a30fwd
| null | null |
t1_eb2qutg
|
/r/programming/comments/a30fwd/how_many_additions_does_it_take_to_break_a/eb2ziup/
|
1547013544
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
stanimirov
|
t2_chehn
|
> In Windows it is (relatively) very rare to export C++ objects across module boundaries
This is wrong on so many levels. :) That's just, like, your experience, man. Not all Windows software is COM. As I said, I'm not a Windows programmer. I've worked on a lot of multi-platform stuff. Never wrote a single COM interface in my life. Many C++ DLLs though. So, yeah. COM is extremely uncommon in comparison to the alternative. Now what?
And it *is* the only sensible way. Yes, you're bound to a specific ABI, which may change between compiler versions, and you cannot hotswap shared libraries. But it actually works. What you're referring to as a sensible way is wrapping C++ objects in exported "C" functions, which may be the only way of satisfying certain requirements, but it's, you know, *not exporting a C++ interface* (whatever that is :) )
> but at least one that you quickly corrected
And then pointlessly corrected by you too. Gee, thanks!
> ran to write how you're going to call SetDllDirectory from the hook/helper
I did? I think someone is ranting without reading :) Read the post again. Or you know, don't and complain about how I'm wrong about stuff I didn't write in it.
> Delay loading is available FOR DECADES
Thanks, fixed. FIXED!
Anyway no problem in being "blunt" when you're right. Otherwise it's just funny. Keep up the good work!
| null |
0
|
1545119278
|
False
|
0
|
ec16y3v
|
t3_a6qqod
| null | null |
t1_ec08hp3
|
/r/programming/comments/a6qqod/the_search_for_autoloaded_dlls_and_windows_rpath/ec16y3v/
|
1547756730
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
-birds
|
t2_10641g
|
Maybe save your vitriol for posts you actually read.
| null |
0
|
1543947639
|
False
|
0
|
eb2zonl
|
t3_a32foa
| null | null |
t1_eb2xe1g
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2zonl/
|
1547013645
|
52
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
growl360
|
t2_1vk9za20
|
Wait what's Trill?
| null |
1
|
1545119340
|
False
|
0
|
ec16zdd
|
t3_a74zes
| null | null |
t3_a74zes
|
/r/programming/comments/a74zes/microsoft_open_sources_trill_to_deliver_insights/ec16zdd/
|
1547756746
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
tdammers
|
t2_6v532
|
> If you want to ensure that changes don’t break anything down the line, everybody needs to code, run, and test on the same environment the CI builds run on.
Fuck no. If you want to build robust stuff that doesn't break the moment you sneeze in the general direction of your precious dockerfiles, you want the dev machines to be as diverse as possible. Mix it up; quirks that pop up during development are quirks you can solve before they hit production.
Also, it's stupid to force everyone into an environment that has suboptimal ergonomics (for them) for the sake of uniformity.
| null |
0
|
1543947691
|
False
|
0
|
eb2zr7z
|
t3_a321cl
| null | null |
t3_a321cl
|
/r/programming/comments/a321cl/how_to_streamline_developer_onboarding_dev/eb2zr7z/
|
1547013677
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1545119385
|
False
|
0
|
ec1709w
|
t3_a70qqn
| null | null |
t1_ebzzixz
|
/r/programming/comments/a70qqn/special_cases_are_a_code_smell/ec1709w/
|
1547756758
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
peduxe
|
t2_g023y
|
don’t forget opportunities to show talent and eventually get a job at Microsoft.
| null |
0
|
1543947705
|
False
|
0
|
eb2zrxi
|
t3_a32foa
| null | null |
t1_eb2ts6y
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2zrxi/
|
1547013686
|
21
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
Still, this is pretty cool. I really want to build one myself
| null |
0
|
1545119587
|
False
|
0
|
ec174hz
|
t3_a77ja5
| null | null |
t1_ec16uon
|
/r/programming/comments/a77ja5/a_tiny_compiler_with_elf_and_pe_executable_for_x86/ec174hz/
|
1547756809
|
3
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
SynfulVisions
|
t2_iitxy
|
This brings me back to the days of the old MySpace chat rooms (which were just an embedded UserPlane Flash chat). The client filtered everything fun out, but you could tamper with the session directly to inject HTML.
| null |
0
|
1543947710
|
False
|
0
|
eb2zs5c
|
t3_a2way5
| null | null |
t3_a2way5
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2zs5c/
|
1547013689
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
3urny
|
t2_99yj8
|
Yes, that's called "not invented here" (https://en.wikipedia.org/wiki/Not_invented_here) I think there's really no way around thinking hard wether to introduce a dependency or not. On the one side, someone else does some development and maintenance for you. And on the other side, when they don't anymore, you're already locked into the vendor.
| null |
0
|
1545119793
|
False
|
0
|
ec178n8
|
t3_a6z75x
| null | null |
t1_ec0s0tt
|
/r/programming/comments/a6z75x/three_tips_for_managing_technical_debt_while/ec178n8/
|
1547756860
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
klebsiella_pneumonae
|
t2_1sgol7kt
|
HTML/CSS is the best cross-platform graphics UI framework there is.
| null |
0
|
1543947777
|
False
|
0
|
eb2zvdj
|
t3_a32foa
| null | null |
t1_eb2yjt8
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb2zvdj/
|
1547013728
|
-16
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ze413X
|
t2_8ybu3
|
I disagree with pretty much everything that you said except that the industry could do with more qualified people. Although that could be said with any industry I guess.
| null |
0
|
1545119908
|
False
|
0
|
ec17azg
|
t3_a719k6
| null | null |
t1_ec15l8l
|
/r/programming/comments/a719k6/the_consequences_of_your_code_tom_scott/ec17azg/
|
1547756894
|
7
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
CubeReflexion
|
t2_mz00x
|
From the looks of it, the dev of the chat grabber forgot to check whether chat messages from users contain valid HTML and just passed the messages right into the output (the scrolling chat you see on stream is just an embedded browser with some minimal HTML). This is called a XSS vulnerability, look it up to find out more. Basically, it allowed all chatters to embed images or even execute JavaScript on the streamers machine.
| null |
0
|
1543947778
|
False
|
0
|
eb2zvfd
|
t3_a2way5
| null | null |
t1_eb2sdkx
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2zvfd/
|
1547013729
|
5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
zom-ponks
|
t2_8fskx
|
Well, I did say that I'm a user of these, so I've got nothing against them, the opposite really.
But here's my reasoning:
Bash is not portable, and I speficially want to point out that a list of commands in a file is not a bash script to me, and for learning bash itself you quickly run into fairly complex non-maintainable things.
Of course every developer should know how to string operations together in a batch file, that's a given.
As for perl, which I'm a massive fan of, is a complicated bastard (even for seasoned developers the syntax overload can be harsh), apart from your basic "hello, world!" kind of things you'd be looking at a dive into the deep end. Most perl software today is in maintenance mode, so you'd find very few solutions to current problems in that space.
So perhaps it's my personal bias showing here, and your point is a valid one. As a former sysadmin perl and bash are my goto things (especially for one-offs) for many occasions, but when they turn into regular runs I have to admit that I would've been better off with a more structured language, such as the ones I recommended.
Incidentally: days since last perl oneliner is less than 10 :)
| null |
0
|
1545120115
|
False
|
0
|
ec17fdx
|
t3_a706es
| null | null |
t1_ec16e77
|
/r/programming/comments/a706es/5_programming_languages_to_learn_in_2019/ec17fdx/
|
1547756948
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
zwhitchcox
|
t2_h3tbu
|
Seriously, how do you leave a vulnerability open like that
| null |
0
|
1543947782
|
False
|
0
|
eb2zvni
|
t3_a2way5
| null | null |
t3_a2way5
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2zvni/
|
1547013731
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
Meh that isn't an issue as much. The app has weird notification issues on random phones, and when I say random I mean random.. same phones, same operating system, some work, some don't. Almost all out of date android OS's work fine, the bleeding edge ones seem to have the most issues. Wire of course being as encrypted as it is you don't get as good audio & video but you can't expect the same experience as skype. Other than the notifications issues though everything is pretty damn usable for the past few years.
| null |
0
|
1545120127
|
False
|
0
|
ec17fo5
|
t3_a735xf
| null | null |
t1_ec16qfc
|
/r/programming/comments/a735xf/an_experimental_study_of_the_skype_peertopeer/ec17fo5/
|
1547756952
|
2
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
WinsAtYelling
|
t2_j7uroot
|
Twitch plays web development
| null |
0
|
1543947851
|
False
|
0
|
eb2zz55
|
t3_a2way5
| null | null |
t3_a2way5
|
/r/programming/comments/a2way5/this_is_why_you_sanitize_user_input_chat_hacked/eb2zz55/
|
1547013774
|
11
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
[deleted]
|
None
|
[deleted]
| null |
0
|
1545120218
|
False
|
0
|
ec17hj8
|
t3_a77ja5
| null | null |
t3_a77ja5
|
/r/programming/comments/a77ja5/a_tiny_compiler_with_elf_and_pe_executable_for_x86/ec17hj8/
|
1547756975
|
1
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
ThirdEncounter
|
t2_1ud6zgq
|
Qt, WxWidgets, SDL, Gtk.....
| null |
0
|
1543947903
|
False
|
0
|
eb301of
|
t3_a32foa
| null | null |
t1_eb2yjt8
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb301of/
|
1547013806
|
18
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
Puuhinen
|
t2_h9416
|
I remember playing a cavern-flying game called [Wings](https://en.wikipedia.org/wiki/Wings_\(1996_video_game\)) in the 90's which had destructible pixel terrain, flowing water etc. which was essentially a falling sand game with 2D aircraft dogfighting on top of it. :)
| null |
0
|
1545120413
|
False
|
0
|
ec17lfw
|
t3_a6zxou
| null | null |
t1_ec138k1
|
/r/programming/comments/a6zxou/sandspiel_a_falling_sand_game_built_in_rust_and/ec17lfw/
|
1547757047
|
5
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
kobriks
|
t2_dhiep
|
It's only used by 90% of PCs. Idk why microsoft even bothers.
| null |
0
|
1543947925
|
False
|
0
|
eb302s2
|
t3_a32foa
| null | null |
t1_eb2xg1u
|
/r/programming/comments/a32foa/announcing_open_source_of_wpf_windows_forms_and/eb302s2/
|
1547013819
|
64
|
t5_2fwo
|
r/programming
|
public
| null |
False
|
HucHuc
|
t2_moncu
|
There are, or at least should be, legal consequences for shipping out data away from someone's computer without their explicit consent. When even your OS asks you should it send the crash report or not, the apps should too. Maybe you can include automatic anonymous error reports as part of the EULA in some markets, but I doubt this would be legal everywhere.
| null |
0
|
1545120419
|
False
|
0
|
ec17lkj
|
t3_a719k6
| null | null |
t1_ec0kpyc
|
/r/programming/comments/a719k6/the_consequences_of_your_code_tom_scott/ec17lkj/
|
1547757049
|
5
|
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.