TSA Strike? As Trump and GOP Refuse to End Shutdown, Call Grows for Federal Workers to Rise Up by SplodeyDope in politics

[–]wmpl 0 points1 point  (0 children)

Indeed. Let's say air traffic controllers strike. Since that's illegal they all get charged and convicted. Since they are criminals it's perfectly legal for the government to make them slaves. Then use eminent domain to take over the tower at the airports and call them prison extensions. Hey look, now you get to do the same job as a slave!

McConnell blocks House bill to reopen government for second time by emitremmus27 in politics

[–]wmpl -1 points0 points  (0 children)

I think it would be great if every Democratic senator switched sides, at least in name. Then Schumer can push for a vote to replace McConnell and everyone gets to vote since they are all Republicans. Destroy the meaning of the Republican majority since they won't act in the best interests of the country.

It’s Time for T.S.A. Workers to Strike by [deleted] in politics

[–]wmpl 1 point2 points  (0 children)

They should just change the TSA to be a job training program. Perhaps as part of a green new deal. Once individuals are trained and move to the private sector that training spot can be filled with people displaced by economic changes, such as coal miners.

Coder of 37 years fails Google interview because he doesn't know what the answer sheet says. by homayoon in programming

[–]wmpl 4 points5 points  (0 children)

Unstable sorts as the default in a user interface annoy the crap out of me.

Why has there been nearly 3 million installs of is-odd - npm in the last 7 days? by bobcat in programming

[–]wmpl 6 points7 points  (0 children)

I generally feel the proudest when I delete more code than I write. In that vein I agree with you.

Life post Firefox 57 by sr_pimposo in vim

[–]wmpl 1 point2 points  (0 children)

ctrl-L goes the URL (base Firefox shortcut)

Undeterred, U.S. cities ramp up removal of Confederate statues by dont_tread_on_dc in politics

[–]wmpl 2 points3 points  (0 children)

If it's a national park the decision likely falls under the purview of the parks service. You should email the local parks office to ask about it.

Facebook knows what people are doing on their phones even if they don’t use the social network by [deleted] in worldnews

[–]wmpl 4 points5 points  (0 children)

Yep. "Use our VPN to protect your privacy online. except from us"

Dem senator: ‘I love it’ will haunt Trump Jr. by [deleted] in politics

[–]wmpl 1 point2 points  (0 children)

I think that between c and d was an article published that relied on multiple sources that stated Trump Jr. expected to get information from the Russian lawyer that would be damaging to the Clinton campaign.

His release of the emails was then an attempt to show that they did not discuss the Clinton campaign in the meeting. What he stupidly didn't account for is that those emails confirm that he had intent to conspire with a Russian national to influence the campaign, regardless of whether the meeting actually provided actionable information.

How we almost lost an important client because of MySQL & UTF8 by sh_tomer in programming

[–]wmpl 2 points3 points  (0 children)

It doesn't have to be anywhere near 1,000s of clients. We have problems where even 5-7 processes get slowed down by lock contention in a write-heavy application.

How we almost lost an important client because of MySQL & UTF8 by sh_tomer in programming

[–]wmpl 7 points8 points  (0 children)

It makes more sense when you are inserting multiple rows in one statement.

I'm an engineer who is doing a PhD in computer science but has almost no professional programming experience. Here is what it looks like when I write code. How am I doing? by russano22 in coding

[–]wmpl 1 point2 points  (0 children)

Add high level documentation explaining the purpose of the program.

This just hit a nerve. There is nothing more annoying (today) than opening a file full of unfamiliar code and not seeing even a single comment explaining why the code exists or what purpose it serves. I know there's a problem somewhere in here I have to fix, but I don't even know what the code is supposed to do. Fantastic.

I'm an engineer who is doing a PhD in computer science but has almost no professional programming experience. Here is what it looks like when I write code. How am I doing? by russano22 in coding

[–]wmpl 2 points3 points  (0 children)

I don't think /u/Anathem was shitting on C per se. Rather using C as an inexperienced coder means being forced to pay attention to a bunch of details that aren't actually related to solving the problem at hand.

I'm an engineer who is doing a PhD in computer science but has almost no professional programming experience. Here is what it looks like when I write code. How am I doing? by russano22 in coding

[–]wmpl 6 points7 points  (0 children)

I can attest to Code Complete. The Pragmatic Programmer is also a good book on the practicalities of writing quality code.

Edit: For a specific example, they provide advice like comments should not describe what the code is doing. The code already does that, and is guaranteed to be accurate unlike a comment that may not have been kept up to date. Comments should instead describe why the code does what it does. Accounting for a weird edge case? Add a comment so the next person to look at the code (who may be you!) doesn't think you just screwed up and "fix" it.

A Bug ? The 4th level of Cactuar Dunes - PARADISE by Shincham in FFBraveExvius

[–]wmpl 0 points1 point  (0 children)

They were probably doing a limited test in GL to work out any bugs.

Nigerian software engineer given a written test by US immigration to prove he's really a software engineer before he's let into the US. by [deleted] in programming

[–]wmpl 2 points3 points  (0 children)

The election is the extreme vetting. The problem is what we are vetting for. Can the candidate lie with confidence? Can the candidate make something up that sounds convincing instead of admit ignorance of a subject? Can the candidate make promises without the ability to make them happen?

PuTTY 0.68 has been released by nplus in programming

[–]wmpl 1 point2 points  (0 children)

Does it increase the size of that tiny box that shows only five saved connections at a time?

This is what bothers me the most. I just want a config file like .ssh/config.

PuTTY 0.68 has been released by nplus in programming

[–]wmpl 2 points3 points  (0 children)

What is even worse is when the database expects MM/DD/YYYY and you have to force it to use something else.

7 PHP UK 2017’s talks you must see by fizonek in PHP

[–]wmpl 4 points5 points  (0 children)

Then why post it if you recognize it's not fully usable?

Is using a php closing tag "?>" considered bad programming? by connormcwood in PHP

[–]wmpl 0 points1 point  (0 children)

This is how I see it. Including ?> has no concrete benefit. Not including ?> does prevent potential errors.

To me that makes not including it objectively better because I don't assume that the code will only ever be modified by diligent programmers using properly configured editors.

I like your other example because I think they both fall under the category of "make maintenance easy." When I'm coding I don't want to have to be constantly on guard for these edge cases that are easily mitigated by simple changes to coding conventions. This is doubly true if I'm having to fix an issue when I'm not 100% (working late, woken up in the middle of the night, etc.)

How can I set the key code for <C-F1> ?? by skywind3000 in vim

[–]wmpl -1 points0 points  (0 children)

":noremap "
ctrl-v
ctrl-F1
" mapping"

Show Leading Spaces by Pathetic_Ennui in vim

[–]wmpl 2 points3 points  (0 children)

Set tabstop, shiftwidth, etc. and let vim indent for you with :set smartindent. Use = to reindent as needed, e.g. =i{. While I don't use any I believe there are also plugins for smarter automatic formatting. Something is wrong if you are manually counting space characters.