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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
null | gramie | null | My feeling is that the connection between music and programming is that both are centred upon the recognition and usage of patterns. Not just the GoF type of patterns, but recognizing what situation calls for a for loop or an if statement.
Once you understand the patterns, you can abstract problems and understand the flow of software from low to high levels.
In the same way, in music you need to break compositions into blocks (intro, verse, chorus, bridge, etc.) so that you don't spend all your time memorizing thousands of individual notes, and you can see them from different "heights". | null | 0 | 1491237726 | False | 0 | dfryk15 | t3_633o3y | null | null | t3_633o3y | null | 1493760284 | 3 | t5_2fwo | null | null | null |
null | arbitrarycivilian | null | OK, I'm not too familiar with Rust's lifetime syntax, so I'll give you the benefit of the doubt that it's awful. But Rust is breaking new ground by attempting to be a mainstream language making use of affine logic, so a few rough spots is expected. Most languages do not introduce radical new concepts, so there is no excuse for hideous syntax. | null | 0 | 1491237736 | False | 0 | dfrykcm | t3_631p99 | null | null | t1_dfrv74r | null | 1493760288 | 1 | t5_2fwo | null | null | null |
null | PrintfReddit | null | Okay so if I'm someone looking for a genuine job at, say, a place like Google, I should be okay? Assuming I can get in, of course. | null | 0 | 1491237755 | False | 0 | dfrykwq | t3_637m7q | null | null | t1_dfrxxiy | null | 1493760297 | 16 | t5_2fwo | null | null | null |
null | CunningRunt | null | Because management and accounting types can't see past "why pay a US programmer $1 when we can hire the same guy in India for 10 cents?"
Except it's not the same guy. And that 10 cents usually increases to $1.89 after delays, communication problems, and rework. | null | 0 | 1491237822 | False | 0 | dfrymx5 | t3_637m7q | null | null | t1_dfrxyjr | null | 1493760341 | 70 | t5_2fwo | null | null | null |
null | tsirolnik | null | This one is posted here on monthly basis | null | 0 | 1491237831 | False | 0 | dfryn8a | t3_635ggh | null | null | t3_635ggh | null | 1493760346 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491237835 | False | 0 | dfryncg | t3_637m7q | null | null | t1_dfrydnj | null | 1493760346 | 1 | t5_2fwo | null | null | null |
null | lolomfgkthxbai | null | Any source for that? IIRC the tax rates are similar when you consider other taxes in addition to federal income taxes (e.g. state tax, payroll tax etc). The US seems to be [about average](https://data.oecd.org/tax/tax-on-personal-income.htm#indicator-chart) as a percentage of GDP. Someone has to pay for the largest military spending in the world (three times China's which is #2). | null | 0 | 1491237848 | False | 0 | dfrynph | t3_637m7q | null | null | t1_dfrxpqn | null | 1493760352 | 43 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491237859 | 1491238100 | 0 | dfryo2t | t3_637m7q | null | null | t1_dfrxqip | null | 1493760357 | 0 | t5_2fwo | null | null | null |
null | Isvara | null | Blacks hats, unfortunately. | null | 0 | 1491237881 | False | 0 | dfryosd | t3_6344ep | null | null | t1_dfrmv65 | null | 1493760367 | 3 | t5_2fwo | null | null | null |
null | hobbykitjr | null | I've had issues where the 'coder' i was interviewing, handed off the phone to another guy to answer the screening questions... I proved by asking a personal question in the middle of the technical questions and he got tripped up and put the other guy back on the phone.
this was for an offshore developer. But where i work now we don't do that and we do coding tests for every interview while we're right next to them. | null | 0 | 1491237939 | False | 0 | dfryqig | t3_637m7q | null | null | t1_dfrxyjr | null | 1493760391 | 40 | t5_2fwo | null | null | null |
null | AspiringIdiot | null | It is not required, unfortunately. I don't know the exact logic why not, as all modern architectures I'm aware of (including embedded) could support this in an efficient way. | null | 0 | 1491237959 | False | 0 | dfryr4c | t3_6350ax | null | null | t1_dfrx6kk | null | 1493760399 | 3 | t5_2fwo | null | null | null |
null | time_lord_allonzy | null | I can't find the document linked on the website under releases. Surprising. | null | 0 | 1491237965 | False | 0 | dfryr9v | t3_637m7q | null | null | t3_637m7q | null | 1493760403 | -1 | t5_2fwo | null | null | null |
null | AGivant | null | Good for Canadian and Mexican IT guys, we need just T1 visa (NAFTA stuff). | null | 0 | 1491237991 | False | 0 | dfrys40 | t3_637m7q | null | null | t3_637m7q | null | 1493760415 | 75 | t5_2fwo | null | null | null |
null | wayne62682 | null | Good. H-1B has been abused far too long | null | 0 | 1491238008 | False | 0 | dfrysmh | t3_637seo | null | null | t3_637seo | null | 1493760422 | 32 | t5_2fwo | null | null | null |
null | sirin3 | null | Only way you can survive 35 years in the industry | null | 0 | 1491238065 | False | 0 | dfryuch | t3_635ser | null | null | t1_dfrjjyi | null | 1493760453 | 8 | t5_2fwo | null | null | null |
null | dantheflyingman | null | What? well that feature seems far less impressive now. | null | 0 | 1491238084 | False | 0 | dfryuya | t3_6350ax | null | null | t1_dfrnpil | null | 1493760461 | 8 | t5_2fwo | null | null | null |
null | liranbh | null | I think we can forget about it. More and more web dev for all purposes | null | 0 | 1491238102 | False | 0 | dfryvi2 | t3_636jjs | null | null | t1_dfrwl2s | null | 1493760469 | -1 | t5_2fwo | null | null | null |
null | standard_revolution | null | Could we please keep this discussion free from politics? r/programming seems to be one of the few places where politics don't matter, I would like to keep it that way. (Maybe excluding things like net neutrality or Internet privacy. Things which directly influence the programming sector. | null | 0 | 1491238102 | False | 0 | dfryvib | t3_637m7q | null | null | t1_dfrynph | null | 1493760469 | -17 | t5_2fwo | null | null | null |
null | doublehyphen | null | You can hire a good senior developer in Stockholm (where all the tech jobs are) for 100k USD including all taxes. Can you do that in th US? Remember to include true cost of health insurance. | null | 0 | 1491238119 | False | 0 | dfryw0x | t3_637m7q | null | null | t1_dfrxpqn | null | 1493760476 | 10 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491238120 | False | 0 | dfryw1y | t3_637m7q | null | null | t1_dfrxpqn | null | 1493760476 | 1 | t5_2fwo | null | null | null |
null | OneWingedShark | null | > This begs the question is if the Indian candidates are that bad, why hire them to begin with?
Because of perceptions.
Take, for instance, *training*.
Most commercial companies view training as a complete loss, not as an investment -- this is one instance where the US's armed forces are vastly superior to "the industry"/"private sector" (the culture there is "oh, we need a spot filled? Train someone and fill it.") -- and the whole reason they see it as a loss is because they are looking at the intimidate/short-term.
It cuts the other way, too: a company might fire all its senior engineers (those who have the institutional and experiential knowledge of the products/projects), hiring fresh-out-of-college *technically* qualified people because on paper it cuts cost. (What's not reflected on the paper is the experience those senior engineers had, experience that translates into "problem comes up -> oh, it's over ***there***" saving you from having to troubleshoot/'debug' the situation 'from scratch'.) | null | 0 | 1491238135 | False | 0 | dfrywfh | t3_637m7q | null | null | t1_dfrxyjr | null | 1493760481 | 21 | t5_2fwo | null | null | null |
null | irishsultan | null | I assume that it will fail because of things like branch prediction (and the fact that you change a value in one branch and not in another)
You could solve this by not having an if statement and instead doing something like `is_valid = is_valid && pass_char == auth_char`, although I'm not entirely certain that this will take equal time either (and a sufficiently smart compiler/interpreter could still notice that in the case of booleans this is a no-op once is_valid is false, so it could just do an early return retaining correctness from a language point of view, since the time it takes to run a program is not part of any (practical) language). | null | 0 | 1491238211 | False | 0 | dfryyrt | t3_6344ep | null | null | t1_dfrx6gx | null | 1493760515 | 2 | t5_2fwo | null | null | null |
null | renatoathaydes | null | HA! That's a great analogy, if I can call it that. I used to play the piano and keyboards with a band... I sometimes do some front-end, but mostly back-end in my programming... just like when I was in the band playing :D | null | 0 | 1491238244 | False | 0 | dfryzsm | t3_633o3y | null | null | t1_dfrluhh | null | 1493760530 | 3 | t5_2fwo | null | null | null |
null | staticassert | null | Nah, because this assumes that you're talking about hashes - so an empty password would still provide a hash. | null | 0 | 1491238341 | False | 0 | dfrz2qy | t3_6344ep | null | null | t1_dfryhyt | null | 1493760601 | 2 | t5_2fwo | null | null | null |
null | agonnaz | null | > Writing 100% secure software is hard for sure,
I'd say "impossible" rather than "hard". It's like designing an unbreakable lock, or a 100% safe car.
You're right, though, that security isn't just a "you have it or don't" situation. Everybody can make effort and improve security, and reap the rewards of that. You may make some stupid mistake and let your user database fall into bad hands (perhaps some injection let them dump it through your website), but if you didn't store your passwords in plaintext, you haven't leaked all your customer passwords. If you salted your hash, you haven't given them a vector for finding weak passwords in common. If you store the sensitive data encrypted, you haven't given them anything other than maybe some usernames.
Security is a spectrum. Better security is better security, whether you have a security specialist on hand or not. | null | 0 | 1491238358 | 1491244917 | 0 | dfrz3at | t3_6344ep | null | null | t1_dfrft7k | null | 1493760609 | 5 | t5_2fwo | null | null | null |
null | staticassert | null | Length isn't the issue - we're assuming hashing has already occurred. | null | 0 | 1491238362 | False | 0 | dfrz3ev | t3_6344ep | null | null | t1_dfrx6gx | null | 1493760611 | 2 | t5_2fwo | null | null | null |
null | staticassert | null | You got it. The problem is that *this isn't written in assembly*.
edit: To be clear, it isn't branch prediction, it's the "smart compiler" issue. | null | 0 | 1491238388 | 1491242426 | 0 | dfrz40p | t3_6344ep | null | null | t1_dfrwcsf | null | 1493760623 | 5 | t5_2fwo | null | null | null |
null | eldelshell | null | Most probably by calling the victim and asking them for their password. Social engineering is the #1 method of attack. | null | 0 | 1491238446 | False | 0 | dfrz5zh | t3_6344ep | null | null | t1_dfrmyue | null | 1493760654 | 6 | t5_2fwo | null | null | null |
null | staticassert | null | > Because it starts with the assumption that the password is valid. (is_valid = True)
True, but none of the code in the loop will throw an exception. While it's bad, it's not the real issue.
The problem is that it's written in a high level language. The compiler is free to optimize your 'constant time' function to a non constant time function, and it will very likely try to. | null | 0 | 1491238452 | False | 0 | dfrz679 | t3_6344ep | null | null | t1_dfrx9m4 | null | 1493760656 | 4 | t5_2fwo | null | null | null |
null | bihnkim | null | I understand your concern but this seems to be one of those issues that directly influence the programming sector | null | 0 | 1491238550 | False | 0 | dfrz9av | t3_637m7q | null | null | t1_dfryvib | null | 1493760723 | 30 | t5_2fwo | null | null | null |
null | joelving | null | I think the whole (very black & white) premise of the discussion is wrong in itself. You could well end up disqualifying talented developers because they lack formal training, and you might hire poor developers with a good memory.
I think a much more useful guiding statement is "I won't hire you if I can't teach you x in y minutes". | null | 0 | 1491238636 | False | 0 | dfrzbp3 | t3_637qqu | null | null | t3_637qqu | null | 1493760767 | 7 | t5_2fwo | null | null | null |
null | alcinos | null | One of the dev involved in the refactoring here. Feel free to ask if you have any questions!
| null | 0 | 1491238658 | False | 0 | dfrzck6 | t3_632wq6 | null | null | t3_632wq6 | null | 1493760779 | 2 | t5_2fwo | null | null | null |
null | Concision | null | In case it confuses anyone else, when he gives the recursive definition for symmetry:
>The first step is to realize that a tree is symmetric if its left and right subtrees are symmetric.
What he means by this is that a tree is symmetric if its left subtree is symmetric *with* the right subtree. This is confusing language because up until this point "symmetric" is used as a property of a tree, and it is most certainly **not** true that just because a tree's left subtree is symmetric and the tree's right subtree is symmetric that the tree itself is symmetric.
The overload of the word symmetric is confusing, and I wonder if it leads to issues during his interviews! | null | 0 | 1491238693 | False | 0 | dfrzdo6 | t3_637qqu | null | null | t3_637qqu | null | 1493760813 | 12 | t5_2fwo | null | null | null |
null | somersettler | null | what does a satellite do with a 6 TB pdf?!? | null | 0 | 1491238741 | False | 0 | dfrzex9 | t3_62sqe6 | null | null | t1_dfpg2dw | null | 1493760856 | 1 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491238767 | False | 0 | dfrzfs5 | t3_637m7q | null | null | t1_dfryvib | null | 1493760872 | -5 | t5_2fwo | null | null | null |
null | kazagistar | null | My problem is that I do have a lot of random information about security that I have obtained haphazardly through random posts on random websites, but also regularly find major gaps and blindspots due to a lack of a solid base. | null | 0 | 1491238767 | False | 0 | dfrzfs7 | t3_6344ep | null | null | t1_dfrssna | null | 1493760872 | 8 | t5_2fwo | null | null | null |
null | Creath | null |
>>javascript:window.location.href = "http://" + ((0.1 + 0.2) + ".com")
>
Ok that's pretty cool
| null | 0 | 1491238857 | False | 0 | dfrzibm | t3_635ggh | null | null | t1_dfrspq1 | null | 1493760908 | 3 | t5_2fwo | null | null | null |
null | didnt_check_source | null | As an immigrant *software engineer*, I can tell from experience that there was already significant skepticism for "computer programmers". When I entered the country, the discussion with the border official went something like:
— so... you're a programmer?
— I'm a software engineer.
— Ah! Software engineer. *stamps passport*
To be fair, there could well be people entering the US as programmers, but for big companies like Microsoft, Google, Facebook, Amazon and Apple, that is not the case.
I don't know about the status of the people that consultancy firms hire, and from what I know, their game seems dishonest, so I don't care terribly if they can't hire that easily anymore.
That said, it's kind of a dick move to publish the rulemaking today if it applies to the applications that were submitted for this year. | null | 0 | 1491238868 | 1491239386 | 0 | dfrziso | t3_637m7q | null | null | t3_637m7q | null | 1493760914 | 132 | t5_2fwo | null | null | null |
null | lavosprime | null | I think that's the norm for 20% time projects. | null | 0 | 1491238871 | False | 0 | dfrziu7 | t3_637fi2 | null | null | t1_dfrvjmb | null | 1493760914 | 7 | t5_2fwo | null | null | null |
null | deukhoofd | null | Even if he was sarcastic, thanks for the explanation, I wasn't sure of that myself. | null | 0 | 1491238890 | False | 0 | dfrzjei | t3_6350ax | null | null | t1_dfrupc1 | null | 1493760982 | 7 | t5_2fwo | null | null | null |
null | bananarepubliccat | null | Er, what? The U.S. has one of the highest, if not the highest, base rate of corporate tax in the developed world. The U.S. has an absurd number of loopholes so maybe the actual rate is lower but I believe that all of the countries mentioned above have lower base rates (I live in the UK, our base rate is 20%).
I would also suspect that, with notable exceptions (i.e. Sydney, London), living costs are lower too (even ignoring the wider societal implications, "free" healthcare is cheaper).
It is also a massive misconception to assume environments that offer social protection are somehow unattractive to business. Denmark, an economy with massive trade union membership (iirc, above 80%), has one of the most flexible labour markets anywhere...precisely because of policies like "free" healthcare (it isn't free as you imply, it just provides good value for money...how scandalous).
All that being said, from the perspective of someone who lives in the UK, I doubt that any business would move here. The tax rate is lower but the general environment is poor. The talent pool is growing but is still way too small and slow-moving (PHP is still big business here), businesses (even "tech" companies) are fairly unsophisticated, most refuse to invest in technology (whilst complaining about competitors that do), large companies have moved forward but no-one else has, wages aren't competitive with other industries, and programming isn't taken that seriously before university. London has progressed, everywhere else is still in the 90s. It is also impossible to raise money here (as an example, FanDuel actually had to get government funding...srs). From what I have heard, London is the farthest ahead of the destinations you mention. Just imo. | null | 0 | 1491238921 | 1491239169 | 0 | dfrzkrk | t3_637m7q | null | null | t1_dfrxpqn | null | 1493761009 | 6 | t5_2fwo | null | null | null |
null | Zarutian | null | Yes. The Simplified TeaTime architecture. It is very similiar how snes9x does netplay btw. | null | 0 | 1491238921 | False | 0 | dfrzkse | t3_62yl50 | null | null | t1_dfrr6no | null | 1493761010 | 1 | t5_2fwo | null | null | null |
null | kendallvarent | null | > [...] an entry-level computer programmer position would not generally qualify as a position in a specialty occupation because the plain language of the statutory and regulatory definition of “specialty occupation” requires in part that the proffered position have a minimum entry requirement of a U.S. bachelor’s or higher degree in the specific specialty.
So if I read that correctly,
> Computer programmers *working in positions with no entry requirements* may no longer be eligible for H-1B visas
I don't see how this solves the problem it is supposedly trying to fix. | null | 0 | 1491238999 | False | 0 | dfrzmia | t3_637m7q | null | null | t3_637m7q | null | 1493761041 | 11 | t5_2fwo | null | null | null |
null | mfukar | null | Please refer to the Rust Evangelism Strike Force with its proper name. | null | 0 | 1491239051 | False | 0 | dfrznne | t3_62wye0 | null | null | t1_dfprrsb | null | 1493761062 | 1 | t5_2fwo | null | null | null |
null | ZalgoFox | null | Shhh... ride the wave buddy. Just work a couple years then retire. | null | 0 | 1491239075 | False | 0 | dfrzok3 | t3_637m7q | null | null | t1_dfrydnj | null | 1493761073 | 6 | t5_2fwo | null | null | null |
null | MyDogShitsTigers | null | Plus there's a chance that a good implementation of the compiler might save you an entire CPU cycle if it can optimize the increment and branch logic. | null | 0 | 1491239148 | False | 0 | dfrzqi8 | t3_6350ax | null | null | t1_dfrqyyg | null | 1493761101 | 7 | t5_2fwo | null | null | null |
null | aullik | null | I don't see how branch prediction has any influence here.
He could have written something like this and it would still work the same. without heavy compiler optimization it would be faster.
def cmp_hash(user_hash, auth_hash):
for (pass_char, auth_char) in zip(user_hash, auth_hash):
if pass_char != auth_char:
return False
return True
a test like len(user_hash) == len(auth_hash) might solve the issue of there being no auth_hash or one being longer. but as i said this is python and as in any dynamic language you just assume that the input is correct or you would never be done with testing the input. | null | 0 | 1491239266 | False | 0 | dfrztp8 | t3_6344ep | null | null | t1_dfryyrt | null | 1493761150 | 3 | t5_2fwo | null | null | null |
null | wensul | null | Thanks, I didn't know that. | null | 0 | 1491239269 | False | 0 | dfrztt2 | t3_6350ax | null | null | t1_dfrupc1 | null | 1493761151 | 6 | t5_2fwo | null | null | null |
null | help_computar | null | Not really that great. Poorly designed; We written. | null | 0 | 1491239270 | False | 0 | dfrztvl | t3_637pjn | null | null | t3_637pjn | null | 1493761152 | 1 | t5_2fwo | null | null | null |
null | Nimitz14 | null | Except if you actually print that string in python you will get an~a. | null | 0 | 1491239419 | False | 0 | dfrzygm | t3_62xwba | null | null | t1_dfr4q2p | null | 1493761220 | 1 | t5_2fwo | null | null | null |
null | alcinos | null | As for C++11, some of the old parts don't use it, as you would expect, but what's being rewritten tries to be in a modern C++.
For example, the new Undo/Redo mechanism is built around C++11 lambdas (which provide good flexibility for combining several atomic operations) | null | 0 | 1491239449 | False | 0 | dfrzzdd | t3_632wq6 | null | null | t1_dfr6zli | null | 1493761232 | 2 | t5_2fwo | null | null | null |
null | eldelshell | null | OK, so today a programmer has to know about UI, network performance, TDD, Agile, source code mgmt., algorithms, BigO notation, SQL, CSS, HTML, JavaScript, architecture, design patterns, HTTP, FTP, SMTP, POP3, SSH, bash, your favorite two languages APIs, debugging, profiling, build tools, CI, bit wise ops, logic, system architecture, browser performance... And security.
How about you pay someone who knows this shit? Oh! You've got a slow SQL query... Did you hire a professional DBA? Design is ugly, did you hire a UI/UX expert? The app is slow, did you hire a iOS expert or a lousy Android developer who did their best? We got hacked! Did you hire a professional security expert to at least look at your stupid code?
Don't you see people? Being a software developer doesn't mean you have to be a jack of all trades. It's not my responsibility, whatever you want to throw at me, I've never been hired on my security knowledge, so there's nothing in my curricula that says so.
Fuck this whole DevOps and DevDBA, and DevOpsSecDBA bullshit.
Oh, and this sort of articles are the same crap as those "we have a 10 million open positions because we can't fill them..." Bullshit.
No wonder job descriptions are filled with buzzwords and crap. We all by ourselves are our worst enemies. | null | 0 | 1491239469 | False | 0 | dfrzzze | t3_6344ep | null | null | t3_6344ep | null | 1493761241 | 23 | t5_2fwo | null | null | null |
null | mmstick | null | Maybe I'll finally have a chance to get my foot in the door, outside of open source projects. | null | 0 | 1491239481 | False | 0 | dfs00ev | t3_637seo | null | null | t3_637seo | null | 1493761248 | 11 | t5_2fwo | null | null | null |
null | bubar_babbler | null | They want to be an American company to take advantage of the venture capital system here to get initial funds, be listed in our stock exchange, and get the insane valuations that tech companies get here.
The high wages in the US don't just attract crappy engineers trying to undercut them. I know a ton of talented programmers here who are immigrants. Plenty of people are willing to leave their country to double their income. I worked at two companies with US and UK offices and people were always trying to transfer to the US one. In my first job out if college I made a sizeable amount than the senior UK engineers and then also paid less in taxes. Your country's best engineers are probably already here. | null | 0 | 1491239501 | False | 0 | dfs012v | t3_637m7q | null | null | t1_dfrxd8n | null | 1493761256 | 561 | t5_2fwo | null | null | null |
null | mirhagk | null | > it's that people who do know it are smug about it,
It's not only the smugness but also the unrealisticness of it. Security discussion is often talking about hypothetical situations or crazy attacks that don't matter to someone writing business grade software.
[James Mickens](http://programmingisterrible.com/post/72437339273/james-mickens-the-funniest-person-in-microsoft) [says it best](https://web.archive.org/web/20140124024832/http://research.microsoft.com/en-us/people/mickens/thisworldofours.pdf) IMO
> My point is that security people need to get their priorities
straight. The “threat model” section of a security paper resembles
the script for a telenovela that was written by a paranoid
schizophrenic: there are elaborate narratives and grand conspiracy
theories, and there are heroes and villains with fantastic
(yet oddly constrained) powers that necessitate a grinding
battle of emotional and technical attrition. In the real world,
threat models are much simpler (see Figure 1). Basically, you’re
either dealing with Mossad or not-Mossad. If your adversary is
not-Mossad, then you’ll probably be fine if you pick a good password
and don’t respond to emails from ChEaPestPAiNPi11s@
virus-basket.biz.ru. If your adversary is the Mossad, YOU’RE
GONNA DIE AND THERE’S NOTHING THAT YOU CAN DO
ABOUT IT. The Mossad is not intimidated by the fact that you
employ https://. If the Mossad wants your data, they’re going to
use a drone to replace your cellphone with a piece of uranium
that’s shaped like a cellphone, and when you die of tumors filled
with tumors, they’re going to hold a press conference and say
“It wasn’t us” as they wear t-shirts that say “IT WAS DEFINITELY
US,” and then they’re going to buy all of your stuff
at your estate sale so that they can directly look at the photos
of your vacation instead of reading your insipid emails about
them | null | 0 | 1491239564 | False | 0 | dfs037r | t3_6344ep | null | null | t1_dfrqe86 | null | 1493761290 | 14 | t5_2fwo | null | null | null |
null | JHunz | null | > If anything, a Google may now pay everybody LESS because of simple supply & demand: their supply has increased.
Google's supply has outstripped their demand for a decade. Their interview process has been overly cumbersome and labyrinthine for ages because they pay highly and are willing to only hire the "best" (by whatever criteria they are using at any given moment). They have never needed entry-level H1Bs.
> And without Infosys, your Iowa-based farming company won't have technical support anymore
Outsourced call centers are entirely outsourced, they don't need visas.
The rules change is not bad, in fact I would view it as a positive - but I agree that the way they've gone about it is awful. Vague day-of guideline changes are not the way these things should work. | null | 0 | 1491239635 | False | 0 | dfs05l4 | t3_637m7q | null | null | t1_dfryiyg | null | 1493761322 | 142 | t5_2fwo | null | null | null |
null | bigorangemachine | null | Yes,
Scratch and Logo give a bad impression of programming no matter what.
I have taught scratch and I find people spend more time having issues with the UI than get an impression of programming.
Logo is so confusing. Around the same time I was learning logo I was learning excel. Excel gave me a better impression of building useful things rather than the concept that commands make things happen.
I don't know... I point out excel as making a major impression on getting my first step onto the programming path. | null | 0 | 1491239641 | False | 0 | dfs05tk | t3_637c28 | null | null | t3_637c28 | null | 1493761327 | 2 | t5_2fwo | null | null | null |
null | industry7 | null | What is your definition of a Decimal type? B/c that's not how any Decimal type I know works. All the ones I've used would give:
9.7 + 9.9 = 19.6
Divide by 2 gives 9.8 which is in range. | null | 0 | 1491239653 | False | 0 | dfs066q | t3_635ggh | null | null | t1_dfruh07 | null | 1493761332 | 1 | t5_2fwo | null | null | null |
null | rv77ax | null | > In all our code?
You don't have class Object? | null | 0 | 1491239698 | False | 0 | dfs07p9 | t3_6350ax | null | null | t1_dfrjgqd | null | 1493761354 | 2 | t5_2fwo | null | null | null |
null | FlukyS | null | Yeah I learned a lot about that when H3H3 were getting targeted. https://www.youtube.com/watch?v=caVEiitI2vg | null | 0 | 1491239703 | False | 0 | dfs07vd | t3_6344ep | null | null | t1_dfrz5zh | null | 1493761356 | 3 | t5_2fwo | null | null | null |
null | pron98 | null | Everyone is entitled to their opinion of what qualities are valuable in people they want to hire. I guess everyone *should* have an opinion. But I *really* dislike sweeping statements of disrespect towards fellow engineers and the belief that others must not want to learn new things if they don't want to learn what *you* want to. | null | 0 | 1491239719 | False | 0 | dfs08fx | t3_637qqu | null | null | t3_637qqu | null | 1493761363 | 3 | t5_2fwo | null | null | null |
null | Simi510 | null | Watch this 60 Minutes Report on Outsourcing taking away American Jobs. It really changed my mind.
http://www.cbsnews.com/videos/youre-fired/
| null | 0 | 1491239722 | False | 0 | dfs08jq | t3_637m7q | null | null | t1_dfryiyg | null | 1493761365 | 29 | t5_2fwo | null | null | null |
null | ForeverAlot | null | Overchoice, information overload, and analysis paralysis. And of course lack of true motivation. | null | 0 | 1491239761 | False | 0 | dfs09vk | t3_6344ep | null | null | t1_dfry9kh | null | 1493761384 | 14 | t5_2fwo | null | null | null |
null | aullik | null | how is that a problem tho? I mean I'm clearly no security expert. I don't see how writing something in a higher language is a problem. Could you explain to me what i am missing. Please. | null | 0 | 1491239810 | False | 0 | dfs0bin | t3_6344ep | null | null | t1_dfrz40p | null | 1493761405 | 1 | t5_2fwo | null | null | null |
null | WittyAdrian | null | I was more referring to Battlefield 4 or even before that. | null | 0 | 1491239863 | False | 0 | dfs0dc2 | t3_62yl50 | null | null | t1_dfrxybe | null | 1493761437 | 1 | t5_2fwo | null | null | null |
null | bubar_babbler | null | Software "engineers" aren't engineers in the US, they are computer programmers. It's not widely enforced for job titles, but in the United States engineers are licensed. I've had the job title of software engineer many times, but I couldn't use engineering in the name of my LLC because I didn't take the engineer in training test, then work under a professional engineer for 7 years, etc | null | 1 | 1491239863 | False | 0 | dfs0dci | t3_637m7q | null | null | t1_dfrxov0 | null | 1493761437 | -2 | t5_2fwo | null | null | null |
null | [deleted] | null | [deleted] | null | 0 | 1491239868 | False | 0 | dfs0di8 | t3_637m7q | null | null | t1_dfs05l4 | null | 1493761439 | -1 | t5_2fwo | null | null | null |
null | ikorolou | null | I mean if you wanted to change your boolean scheme to be 2 bit instead of 1 bit, and have strong true/false and weak true/false you could, but at that point it's probably better to just enumerate your own type or something custom like that. | null | 0 | 1491239882 | False | 0 | dfs0dzh | t3_6350ax | null | null | t1_dfrigqc | null | 1493761451 | 2 | t5_2fwo | null | null | null |
null | Enharmonium | null | Many schools have CS and SE degrees that are pretty much one and the same.
The only real differences at my school are that SE is an engineering degree(which has different core requirements) and CS has a minor. | null | 0 | 1491239932 | False | 0 | dfs0fo1 | t3_6344ep | null | null | t1_dfro48o | null | 1493761474 | 5 | t5_2fwo | null | null | null |
null | MarekKnapek | null | I'd like to propose return `void` from function by value. Why? Because templates!
[Live example](http://coliru.stacked-crooked.com/a/dc2064c9dada075c).
#include <iostream>
void func1()
{
return;
}
int func2()
{
return 42;
}
template<typename R, typename... Ts>
R forwarder1(R(*fn)(Ts...), Ts const&... ts)
{
std::cout << __PRETTY_FUNCTION__ << std::endl;
return (*fn)(ts...);
}
template<typename R, typename... Ts>
R forwarder2(R(*fn)(Ts...), Ts const&... ts)
{
std::cout << __PRETTY_FUNCTION__ << std::endl;
auto r = (*fn)(ts...);
return r;
}
int main()
{
forwarder1(&func1); // R forwarder1(R (*)(Ts ...), const Ts& ...) [with R = void; Ts = {}]
forwarder1(&func2); // R forwarder1(R (*)(Ts ...), const Ts& ...) [with R = int; Ts = {}]
//forwarder2(&func1); // compile-time error! error: 'void r' has incomplete type error: return-statement with a value, in function returning 'void'
forwarder2(&func2); // R forwarder2(R (*)(Ts ...), const Ts& ...) [with R = int; Ts = {}]
}
| null | 0 | 1491239954 | False | 0 | dfs0gfw | t3_6350ax | null | null | t1_dfrib2r | null | 1493761492 | 9 | t5_2fwo | null | null | null |
null | genti_watchman | null | Cricket: I'm a Pakistani spy!
F1: I'm a French-Canadian-Texan-Euro-Nazi!
😂 | null | 1 | 1491240015 | False | 0 | dfs0ihi | t3_637m7q | null | null | t1_dfs0di8 | null | 1493761535 | 0 | t5_2fwo | null | null | null |
null | didnt_check_source | null | How has Google's supply increased? | null | 0 | 1491240045 | False | 0 | dfs0jhe | t3_637m7q | null | null | t1_dfryiyg | null | 1493761548 | 17 | t5_2fwo | null | null | null |
null | biggerx | null | Terrible terrible people. | null | 0 | 1491240138 | False | 0 | dfs0mkv | t3_6350ax | null | null | t1_dfrvky0 | null | 1493761591 | 49 | t5_2fwo | null | null | null |
null | fuzzysarge | null | Why is the new standard not called C++14++++++; //? | null | 1 | 1491240183 | False | 0 | dfs0o2c | t3_6350ax | null | null | t3_6350ax | null | 1493761612 | -2 | t5_2fwo | null | null | null |
null | staticassert | null | Sure thing. So the goal of a password comparison function is that, on rejection, an attacker should gain no information as to *why* it was rejected. It was invalid, period.
Imagine if I have a string comparison like this:
actual_password = aaaabaaaa
attacker_attempt = aaaaaaaaa
string comparison will go "ok a ==a, cool" 4 times, then say "woah a != b", return.
An attacker can time this function and say "hm when i enter in aaaaaaaa" it takes n milliseconds, when i type in "bbbbbbbbbb" it takes n - y milliseconds. So the first part of the password probably at least starts with 'a'.
This is called an information leak - we're leaking details about the password (or at least the hash, which is effectively just as bad since repeated attempts will eventually leak the entire hash).
So maybe you write code like I did that tries to *always* take the same amount of time - we always iterate the entire password, no short circuiting. Seems fine, right? But then that pesky compiler comes around and is like "ahah dumb programmer, we can return early and save tons of computes time!" and it silently translates your code into a non constant time comparison.
Relying on the optimizer *not* to work is a bad idea (optimizers are crazy smart). One way to solve this is to FFI out into some assembly code that *is* constant time and that your compiler will stay away from. | null | 0 | 1491240184 | False | 0 | dfs0o3s | t3_6344ep | null | null | t1_dfs0bin | null | 1493761612 | 5 | t5_2fwo | null | null | null |
null | Simi510 | null | > https://www.uscis.gov/sites/default/files/files/nativedocuments/PM-6002-0142-H-1BComputerRelatedPositionsRecission.pdf
| null | 0 | 1491240185 | False | 0 | dfs0o4u | t3_637m7q | null | null | t1_dfryr9v | null | 1493761614 | 3 | t5_2fwo | null | null | null |
null | mr___ | null | Well, that's why I'd say separate rationals from irrationals and leave irrationals to a defined-precision representation... You cannot represent them finitely in any integer radix. For high-performance computing, you could instruct the compiler or language framework to prefer machine-native instructions, or in a proper typed language, define your fast functions to be of e.g. "double -> double" instead of "Numeric -> Numeric" (assuming there's a Numeric type that contains all these other types).
Floating point decimals are just rationals with power-of-10 denominators, and there is already language support in Java/Scala/.NET (BigDecimal and decimal types) for them.... I guess it's the common special case due to financial math, but I'd also like to be able to represent "2/3" and add it to "1/3" precisely (and better yet, get back an Integer result because addition on Rationals could return Integer if the denominator was 1).
Also, units of measure would be cool :) | null | 0 | 1491240218 | 1491369118 | 0 | dfs0p7b | t3_636db5 | null | null | t1_dfrt00t | null | 1493761636 | 1 | t5_2fwo | null | null | null |
null | genti_watchman | null | A good example is a genius Colombian programmer for whom Facebook & a CA startup have both submitted H1B applications. (That is allowed.) Google is now confident that it can get its application approved, while the other one will be extremely vetted. The genius, meanwhile, ends up with only one approval, and thus only one option. Ergo... | null | 0 | 1491240243 | False | 0 | dfs0pyb | t3_637m7q | null | null | t1_dfs0jhe | null | 1493761646 | -9 | t5_2fwo | null | null | null |
null | emoprairiedog | null | Right, I can attest that I've been coding for over a decade for businesses (not for developers), and there was not even once that I needed to implement a binary tree less alone check for tree properties like symmetry or balance. I also can count with my fingers the times where I was resource constrained enough for different data structures to make a difference. Also when that happened, the literature is all around and I could probably implement such a structure in a reasonable time but I will probably not have the luxury to maintain a library like that, so I will just probably just have to dig for someone that already invested time maintaining such a library.
On the other hand, creating full web solutions for business is not something you have recipes for, integrating the dozen components that a JS heavy web application nowadays can be daunting and there is much less consensus to obtain a definitive guide for it.
I'm not supportive of favoring screening for any of these skills on a whiteboard though. | null | 0 | 1491240300 | False | 0 | dfs0rnn | t3_637qqu | null | null | t1_dfrzbp3 | null | 1493761669 | 3 | t5_2fwo | null | null | null |
null | achan2331 | null | What didn't you like about it? I thought he had good benchmarks, but also provided solid arguments against Go even though it had the best performance. | null | 1 | 1491240322 | False | 0 | dfs0sey | t3_637pjn | null | null | t1_dfrztvl | null | 1493761680 | -1 | t5_2fwo | null | null | null |
null | rv77ax | null | Just like Rust. | null | 1 | 1491240414 | False | 0 | dfs0uzd | t3_6350ax | null | null | t1_dfrvpb0 | null | 1493762289 | -1 | t5_2fwo | null | null | null |
null | bubuopapa | null | Lol, didnt see unexpected bsod like in > 10 years... In the mean time, even yesterday i saw i 10 various critical linux errors that killed linux system... Go away you alien, you are not from earth, windows rules on earth, every other os sucks balls. | null | 0 | 1491240514 | False | 0 | dfs0y03 | t3_62mp7p | null | null | t1_dfry3er | null | 1493762332 | 0 | t5_2fwo | null | null | null |
null | time_lord_allonzy | null | No. I know it's on the website. I just can't find it under news or releases directly.
That's because this isn't that much of a big deal. The document doesn't say much TBH. | null | 0 | 1491240570 | False | 0 | dfs0zzh | t3_637m7q | null | null | t1_dfs0o4u | null | 1493762359 | 2 | t5_2fwo | null | null | null |
null | aullik | null | > An attacker can time this function and say "hm when i enter in aaaaaaaa" it takes n milliseconds, when i type in "bbbbbbbbbb" it takes n - y milliseconds. So the first part of the password probably at least starts with 'a'.
I thought we were comparing hashes tho. I don't see how a user can fake hashes to get this information.
Also this might be true for a program that compiles to machine code. But python runs on a VM thus it takes a rather arbitrary time before the process even starts.
| null | 0 | 1491240572 | False | 0 | dfs101q | t3_6344ep | null | null | t1_dfs0o3s | null | 1493762361 | 1 | t5_2fwo | null | null | null |
null | cassandraspeaks | null | And wouldn't it be nice to keep it that way? | null | 1 | 1491240704 | False | 0 | dfs149q | t3_637m7q | null | null | t1_dfrydnj | null | 1493762419 | 5 | t5_2fwo | null | null | null |
null | TheBuzzSaw | null | I think the author's point might be better made if the title were I Don't Want To Hire You If You Can't _Ever_ Reverse a Binary Tree.
When I conduct technical interviews, I ask a few of these unpopular questions (not far from reversing binary trees). The point is not to see whether they have it memorized nor to suggest they will be manually reversing binary trees on the job often. However, what does it say about a candidate who refuses to even dive into the problem? I'm not interested in binary tree experts; I'm interested in candidates who diagram the problem, think about it, and work toward a solution.
The point of such questions is not to get a binary tree reversed. We all know it's documented a trillion times over online, and I know having Internet access is integral to programming now. **That is not the point.** The point is that the problem itself has fairly obvious success conditions. Even if you never reverse a binary tree once on the job, I wouldn't lose sleep over asking the question because the question was _meant_ to serve as a metric (along with the other interview questions) to see how logic-minded the candidate is.
Is this still such a terrible thing? I disagree with this sentiment that "the interview should perfectly reflect the job". What good is that? The job is constantly shifting. My "job" isn't what it was 5 years ago or even 2 years ago. Whole classes of jobs/tasks are wiped out whenever we deploy a major upgrade. I'd be doing my candidates a disservice if I filtered it down to "what do we need for the next 72 hours". | null | 0 | 1491240741 | False | 0 | dfs15g2 | t3_637qqu | null | null | t3_637qqu | null | 1493762435 | 3 | t5_2fwo | null | null | null |
null | rv77ax | null | You can write readable C++ as long as you don't use template, exception, and their standard library. Like this one : https://github.com/shuLhan/libvos/blob/master/File.cc | null | 0 | 1491240761 | False | 0 | dfs1627 | t3_6350ax | null | null | t1_dfrvn1p | null | 1493762444 | -4 | t5_2fwo | null | null | null |
null | real_jeeger | null | Yes, that may be it as well. I'm no expert. | null | 0 | 1491240793 | False | 0 | dfs172i | t3_6350ax | null | null | t1_dfrx6kk | null | 1493762457 | 1 | t5_2fwo | null | null | null |
null | saijanai | null | > Yes. The Simplified TeaTime architecture. It is very similiar how snes9x does netplay btw.
INteresting.
I'm part of a startup that is working on an ultra-massively-parallel (up to 10^9 processor) system that uses the Squeak virtual machine as the "machine language" of the processor (currently implemented in an FPGA).
One of our use-cases is for a specialized itnernet router with 4-way opitical fiber connectivity (basically router-software added to a supercomputer node), and we're hoping to implement Croquet/Cobalt as a universal minecraft/social meeting place for all owners of the routers.
So.... having the ability to implement real multi-player games, complete with anti-cheat facilities, physics, etc., is important to us.
http://www.siliconsqueak.com
for more info | null | 0 | 1491240870 | False | 0 | dfs19k3 | t3_62yl50 | null | null | t1_dfrzkse | null | 1493762494 | 1 | t5_2fwo | null | null | null |
null | OneWingedShark | null | >> Because it starts with the assumption that the password is valid. (is_valid = True)
>
>
>
> True, but none of the code in the loop will throw an exception. While it's bad, it's not the real issue.
Where are exceptions coming up?
> The problem is that it's written in a high level language.
That's not necessarily a bad thing.
> The compiler is free to optimize your 'constant time' function to a non constant time function, and it will very likely try to.
If time is a consideration (and if we're honest it might not be, even in a high security setting) then it ought to be modeled into the function... this ***is*** doable in a high-level language.
Example:
Function Matching_Password( User_Input, Password : String ) return Boolean is
-- Interval is the constant minimum-time; it ought to be
-- the result of algorithm analysis rather than arbitrary.
-- (Here we are using 1.28 seconds.)
Interval : Constant Duration := 1.28;
-- Get the current-time.
Start_Time : Constant Ada.Real_Time.Time := Ada.Real_Time.Clock;
-- Get the minimum time for finishing.
Stop_Time : Constant Ada.Real_Time.Time := Start_Time + Interval;
-- Ensure both strings start at the same index,
-- Ensure both are of the same length,
-- Ensure both contain the same values.
Result : Constant Boolean :=
(User_Input'First = Password'First) and then
(User_Input'Length = Password'Length) and then
(for all index in User_Input'Range => User_Input(Index) = Password(Index) );
begin
-- Ensure a minimum time-bound.
Delay until Stop_Time;
Return Result;
end Matching_Password;
| null | 0 | 1491240877 | False | 0 | dfs19t1 | t3_6344ep | null | null | t1_dfrz679 | null | 1493762497 | 2 | t5_2fwo | null | null | null |
null | squigs | null | Could be useful in macros or templates perhaps. Can't think of an example though. | null | 0 | 1491240953 | False | 0 | dfs1c8h | t3_6350ax | null | null | t1_dfric97 | null | 1493762531 | 1 | t5_2fwo | null | null | null |
null | SomeoneStoleMyName | null | Isn't that what [string_view](http://en.cppreference.com/w/cpp/header/string_view) is for? | null | 0 | 1491241024 | False | 0 | dfs1ekq | t3_6350ax | null | null | t1_dfrib2r | null | 1493762562 | 3 | t5_2fwo | null | null | null |
null | jnordwick | null | Booleans? I've seen people have ++ for trees and stuff. | null | 0 | 1491241098 | False | 0 | dfs1h0y | t3_6350ax | null | null | t1_dfrvky0 | null | 1493762595 | 3 | t5_2fwo | null | null | null |
null | Timbit42 | null | I wish Tiobe would shut that down. It's completely bogus. | null | 0 | 1491241112 | False | 0 | dfs1hi5 | t3_6370k3 | null | null | t3_6370k3 | null | 1493762604 | 1 | t5_2fwo | null | null | null |
null | cedrickc | null | Is there some reason you couldn't use an enum? | null | 0 | 1491241259 | False | 0 | dfs1m6e | t3_6350ax | null | null | t1_dfrta4o | null | 1493762669 | 3 | t5_2fwo | null | null | null |
null | staticassert | null | > I don't see how a user can fake hashes to get this information.
What do you mean fake hashes? I submit password 'aaaaaa' knowing it hashes to some deterministic output, and I use that.
> Also this might be true for a program that compiles to machine code. But python runs on a VM thus it takes a rather arbitrary time before the process even starts.
It applies to any language that performs any optimization, which Python's VM will do (even if it's minimal). Process start won't be relevant, we naturally assume a password auth service is up and running. | null | 0 | 1491241272 | False | 0 | dfs1mmk | t3_6344ep | null | null | t1_dfs101q | null | 1493762675 | 2 | t5_2fwo | null | null | null |
null | joelving | null | > I think the author's point might be better made if the title were I Don't Want To Hire You If You Can't Ever Reverse a Binary Tree.
Absolurely. That's exactly the point I was trying to convey in my comment. However, in the post he seems unduly focused on the concrete task of reversing binary trees, apparently because it is something that every dev *should* know. He doesn't care about logic, talent or potential - only whether or not you know, what he considers fundamental. And that, I can't ever agree with. | null | 0 | 1491241299 | False | 0 | dfs1nhe | t3_637qqu | null | null | t1_dfs15g2 | null | 1493762686 | 3 | t5_2fwo | null | null | null |
null | Zarutian | null | Well, one kind of 'cheating' is knowing "hidden" information in the game without others knowing. That falls into protocol design stuff like cryptographers playing poker with no trusted third party.
Then there is 'cheating' where someone has manipulated variable values such as HP and so on. That is more easily detectable.
I also recommend you look into http://wiki.erights.org/ which came out of Electronic Communities for other but related stuff. | null | 0 | 1491241326 | False | 0 | dfs1ocw | t3_62yl50 | null | null | t1_dfs19k3 | null | 1493762698 | 1 | t5_2fwo | null | null | null |
null | Timbit42 | null | There are many ways one could do that. Agile is one simple answer. Rust is another. | null | 0 | 1491241403 | False | 0 | dfs1qz7 | t3_6355if | null | null | t1_dfrq202 | null | 1493762733 | 3 | t5_2fwo | null | null | null |
null | touko3246 | null | To be fair, US Government has a rather specific definition of what "computer programmers" are. They have less emphasis on design and analysis compared to "software developers", which is where most skilled people fall under.
https://www.bls.gov/soc/2010/soc151131.htm
https://www.bls.gov/soc/2010/soc151132.htm | null | 0 | 1491241404 | False | 0 | dfs1qzu | t3_637m7q | null | null | t1_dfs0dci | null | 1493762733 | 5 | t5_2fwo | null | null | 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.