Domain: stackoverflow.com
Stories and comments across the archive that link to stackoverflow.com.
Comments · 921
-
Re:Matlab is doing fine for now, but future uncert
Everywhere around me, both scientists and engineers, were replacing (or trying to replace) Matlab and other commercial software with Python.
How ironic! That's what I'm doing today. It would really be nice if scipy.io.loadmat would import nested MATLAB structures structures without a bunch of hacks.
-
Well this was pretty low effort
But i got a chuckle out of stackoverflow this morning
-
Re:You relying on Escape Analysis?
One more thing:
https://stackoverflow.com/ques...
Setting a reference to null could allow a memory-hungry object to be collected within a local scope.
-
Re:Does Facebook scan conversations?
Why? It's completely possible and not any harder to retain even "typed and deleted" content.
JavaScript/HTML5 supports capturing every keystroke. I find it much, MUCH harder to believe FB would leave this ability on the table and not take advantage of it, especially given the lengths they have gone to steal people's data. -
Re:Well...
That's called a cipher and is exactly what "encrypt" means.
Er... no.
-
Re:Rei
You might very well be right in this case but you wouldn't always be,
Take this as an example, this person has 57 pseudonyms on Slashdot:
https://www.youtube.com/cdreim...
https://slashdot.org/~cdreimer
https://www.smashwords.com/pro...
https://stackoverflow.com/user...
https://www.overdrive.com/publ...
etc. etc. google for more...
most well known currently active Slashdot pseudonyms:
https://slashdot.org/~Iwastheo...
https://slashdot.org/~the%20or...
https://slashdot.org/~vetpiet -
Dan Sacks points the backfire effect at C/C++
I first came across the backfire effect as such roughly two years ago from the following presentation:
Dan Saks on talking to C programmers about C++ — September 2016
Key point: If you're arguing, you're losing.
Some of my old bookmarks:
18m00 "show me all the data you want, C++ is still undesirable"
28m00 Jonathan Haidt and motivated reasoning
43m50 ethics of persuasion
46m50 backfire effect
55m26 concrete suggestionsConcrete suggestions begins with the simple question: "how would you define a data type?" and then delivers a lesson on articulating what you (probably) already know.
Then there's a case study on developing a type safe array memcpy in pure C (you can almost get there, but not quite).
Along the way there's a pointed case study in humility porn on implicit decay in function argument context, which I think is intended to raise "good grief" eyebrows on both sides of the aisle.
What is array decaying?
Exceptions to array decaying into a pointer?This presentation feels as old as dirt and twice as slow, but the value is solid.
-
Dan Sacks points the backfire effect at C/C++
I first came across the backfire effect as such roughly two years ago from the following presentation:
Dan Saks on talking to C programmers about C++ — September 2016
Key point: If you're arguing, you're losing.
Some of my old bookmarks:
18m00 "show me all the data you want, C++ is still undesirable"
28m00 Jonathan Haidt and motivated reasoning
43m50 ethics of persuasion
46m50 backfire effect
55m26 concrete suggestionsConcrete suggestions begins with the simple question: "how would you define a data type?" and then delivers a lesson on articulating what you (probably) already know.
Then there's a case study on developing a type safe array memcpy in pure C (you can almost get there, but not quite).
Along the way there's a pointed case study in humility porn on implicit decay in function argument context, which I think is intended to raise "good grief" eyebrows on both sides of the aisle.
What is array decaying?
Exceptions to array decaying into a pointer?This presentation feels as old as dirt and twice as slow, but the value is solid.
-
Pay attention to gestalt of the industry
Like what? [I'm sincerely curious.]
Here I assume you are referring to "Javascript slowly spreading to other realms as well". Have you not read about Electron apps recently? Or used apps like Slack which are based upon Electron...
Also I find it perverse that node.js is taking over server development. Really? At what scale?
Perhaps you have heard of a little company called Netflix?
You can also get a sense of it from StackOverflow.
I don't do much server development these days myself, or any node.js. But an important part of being a professional in any field is try try and keep your ear to the ground as it were and know about industry trends. Just from paying attention to general StackOverflow questions, talking to other developers around the world, you get a sense that Javascript has really grown in general use, especially so I'd say at medium sized companies.
If you look at the chart it's in a little bit of a decline from the peak but is still above Java... I think that is showing the continued strong performance of Python taking over some roles Javascript has been taking over.
-
In theory, a fungus
No joke, supposedly named after a fungus.
And you know the answer is right, since it comes from Stack Overflow!
Which on the other hand references Reddit, so... hmm.
-
Re:You knew it when you bought it.
Actually, it wasn't changed, or at least not according to my reading of the terms and conditions. It still contains a clause saying that if you want to distribute binaries to end users, you must create an account with the App Store and comply with the policies thereof.
Just because Apple hasn't sued anybody over third-party distribution doesn't mean Apple has decided to allow it. You can bet your backside that if, for example, Steam decided to distribute via Cydia Impactor instead of through the App Store, there would be lawsuits flying.
So at this point the evidence is equivocal.
I haven't messed with this
.ipa sideloading myself; but I would imagine they are bending the rules for Enterprise App Distribution, because I know it involves a User step of "Trusting" the Developer, like is shown in this tutorial:https://www.goodbarber.com/blo...
It looks like the main issue is that Developer Certs. expire after 3 years; but other than that, it does appear to be "legal", as far as Apple is concerned.
But you might be right that this requires a full iOS Dev. ENTERPRISE license ($299/yr), rather than just the freebie one or the $99 one.
https://medium.com/@Intersog/d...
There's some interesting ideas near the end of this thread:
https://stackoverflow.com/ques...
But since the real rub is "signing", that's where Cydia Impactor may get around all of the above limitations:
https://www.shoutpedia.com/use...
The only disadvantage with that method is that you can sign Apps for a year only (with any level(?) Dev. Cert.) or for a week with a common AppleID. I don't know if "re-certs" are possible.
-
Re:High vs low languages.
What was it doing under the hood without telling you? Isn't a VLA basically just a call to alloca()?
-
And do they even link to Stackoverflow?
I would hope so. Because I got news for you: Even real programmers do not know everything and tend to forget stuff, but they know where to look things up. And maybe that was the purpose of linking to Wikipedia, to teach you how to use the Internet.
Here is an example of my work yesterday.
- For a webapp I had to find the greatest common divider for the width and height of an image. Had no idea how to do that, so I searched stackoverflow for "greatest common divider javascript" and found this helpful answer.
- One of the comments links to the Euclidean algorithm on Wikipedia, so I followed the link to understand the algorithm behind the solution.
- Finally I came up with this wondeful one-liner for my specific case:
var whGcd = function gcd(a,b){ return b ? gcd(b, a%b) : a; }(width, height);
That's how I work. Lot's of Wikipedia links involved. -
Download cap; canvas reading
First, a video that is downloaded but not played would still count against the monthly download quota that your ISP imposes on you, especially a satellite or cellular ISP. Second, playing a filmstrip through a canvas (as demonstrated in canvid) lets the video delivery script read the pixels in the canvas and relay back to the website that the video was decoded. Thus a video that was downloaded and played invisibly still uses CPU time and battery energy for decoding.
-
Re:Okay. Let's do this ...
Well "..." is the spread operator in Javascript, here's =!=, it seems plausible that "+-+" might be interpreted as x+(-(+y)) which collapses to "x-y". Not sure about -+/* but Ruby should get a honorable mention for %/%. The most annoying thing about operators though is not each one, it's the precedence rules. For example in SQL "WHERE a OR b AND c = 1" when you mean "WHERE (a OR b) AND c = 1. I really, really wish some smart language would say "fuck that, we're not making obscure rules nobody remembers/notices are invoked" and just throws a syntax error, here's ambiguity so resolve it explicitly with parentheses. That would be the sane solution for all future maintenance. Also I'd like to ban the singular "=" operator, use "==" for comparison and ":=" for assignment, you can keep the mixed ones like "+=".
-
Re:We must all worship the backdoor socialism
The thing people have wrong about software is that it's not the copy of the executable that is the scarce and valuable resources - it's the programmers (although, decreasingly so; actual coding is indeed becoming a commodity) and, more importantly, the expertise of knowing what kind of software to make and the knowledge of how to best use that software.
There is still supply and demand in an "information economy" - it's just that people tend to misidentify the thing that is scarce.
Depends on what you call "coding".
"Urgent! I have a code that doesn't work. Please help me!"
If that's your standard for your product, commodity away!
-
Re: Economy?
-
WRONG ZIP (ya blew it, lol)... apk
STACKOVERFLOW says I'm RIGHT on std string too https://stackoverflow.com/ques... per Mike Seymour reply (I avoided all that though in Pascal) per this quote "If you're writing C++ as the tag suggests, then don't use either. Use std::string"
Easy (but CPU & time consuming) fixes instead?
Strlen check or 2 pointers (1 double size of former & when larger fails double length of it) stops C/C++ problem on length (still null-terminated strings though thus buffer overflows in C/C++ - NOT PASCAL I used).
That added processing (unneeded in Pascal strings) is also WHY (time taken to do it) C++ is SLOWER than Pascal in tests (especially on stringwork & even math (not same cause on latter though)).
* STILL - No matter HOW you try to 'defend' raymorris, it doesn't work - he overlooked C/C++ null-terminated STRINGS buffer overflow problems in C/C++, period!
APK
P.S.=> I don't have those problems & I chose the PROPER tool for a job that works in strings in a SECURITY PROGRAM folks LIKE & USE https://it.slashdot.org/commen... HOW ABOUT YOU, "ZIP"? You've got ZERO by comparison, lol - YOU = ALL HOTAIR MERE CHEAP "TALK" but zero actual product to show... apk
-
ZIP you blew it & how you did... apk
STACKOVERFLOW says I'm RIGHT on std string too https://stackoverflow.com/ques... see Mike Seymour reply (I avoided all that though in Pascal) per this quote "If you're writing C++ as the tag suggests, then don't use either. Use std::string"
Easy (but CPU & time consuming) fixes instead? Strlen check or 2 pointers (1 double size of former & when larger fails double length of it) stops C/C++ problem on length (still null-terminated strings though thus buffer overflows in C/C++ - NOT PASCAL I used).
That added processing (unneeded in Pascal strings) is also WHY (time taken to do it) C++ is SLOWER than Pascal in tests (especially on stringwork & even math (not same cause on latter though)).
* STILL - No matter HOW you try to 'defend' raymorris, it doesn't work - he overlooked C/C++ null-terminated STRINGS buffer overflow problems in C/C++, period...
APK
P.S.=> I don't have those problems & I chose the PROPER tool for a job that works in strings in a SECURITY PROGRAM folks LIKE & USE https://it.slashdot.org/commen... HOW ABOUT YOU, "ZIP"? You've got ZERO by comparison, lol - YOU = ALL HOTAIR MERE CHEAP "TALK" but zero actual product to show... apk
-
Re:NoScript and Ghostery
Uhhh, about using regex to parse HTML
-
What about all the other top dev.tool lists
-
Re:Opera users, chime in.
The point of software is to do things for us.
"Yes" and "no." Tools do not decide how they are used, but software is in the unique position of being heavy-handed with dark patterns when it comes to hiding defaults.
By doing things for us like Apple does, the spirit of "getting things done" is perverted by those who pretend they are the only ones capable of deciding what gets done.
Outright removing options is why all browsers are at best on my "reluctant use" list. My former "Trust" is long gone because power users do NOT get a say anymore. I have seen dozens of bugtrack submissions to Firefox and Chrome where "won'tfix" and "this works as designed" show the ridiculous nature of software failing to do things for us because "right and wrong" changes over time. It would sure be offensive if your hammer autoupdated one day and refused to continue being useful nailing anything that didn't look like a nail just because it's "wrong" or deprecated in the eyes of the designer. I know my use case, and how to protect myself.* insecure http iframes? blocked by devs.
* running javascript scriptlets from the addressbar? blocked in some of them. Don't care to test now
They treat their power users as if they were all mindless users with no option to stop the warnings.0) features being discouraged and then removed or chrome's requiring long command line switches that they silently deprecate on a random version upgrade.
1) pasting scripts into a console, like when you're troubleshooting? major pain on Firefox where you take it like a slave and have to use "allow pasting" because some jerks in the industry these days believe the needs of the many outweighing the needs of the few requires tons of naggy handholding. https://stackoverflow.com/ques...
2) Trying to apply the fix above requires going into about:config where the browser yells at us slaves again with big fat warning at some point. It makes us humble ourselves picking "I'll be careful, I promise!"
3) injecting my own extensions into the browser? outright blocked or subverted by dark patterns. When I'm using recent versions of chrome there's a big fat warning on every startup stating the browser is endangered by my conscious choice. I'm not aware of a way to disable the warning. I have an older version of Chrome on a different boot OS where no such warning was required some years back. That version is too old to even see Google's extension store so I can't download new ones there.
4) one thousand papercuts that make the life harder for someone focused on control, chipping away at our entitlements every new release... we now have the "Not secure" labels appearing everywhere, the "your self-signed certificates are death incarnate!!!1!!!!" attitude and others. -
Yes.
Yes, we really should: I'm already doing this
:-) -
Re:Far less effort vs. coding my program #2/2
How do you get a string buffer overrun in Java?
The possible cases are so rare I am confident they will not apply to my program.
All I'm doing is manipulating string, managing collations of strings, and then writing to disk. Not too hard, the language won't matter. Java will offer plenty of performance as long as I don't abuse the collations (e.g. sorting naively).
I learnt to code with TurboPascal and I loved it, but right back in 1997 when I really got my teeth into it. But I've moved on. There are better tools that result in faster development.
PS: No account here. I'm just better at AC posting to Slashdot than you are.
-
Re:question already is its own answer
There's little to no difference between python and php that isn't purely syntactical.
And there are places where syntax makes all the difference, such as list comprehensions (and the generator expressions that power them).
all the criticisms against php are equally valid against python.
I've found a few, which I'll quote here for convenience:
- Number-like comparison of strings can never be fully turned off. For example, both '10' <= '1e1' and '10' >= '1e1'. One can use strcmp in one's own code and pass sort_flags to sorting functions that support them, but some functions still use the built-in operators < and > that don't even impose a total order. Likewise, switch uses the built-in == comparison operator whose semantics are byzantine.
- Parse errors and undefined function errors are fatal in PHP 5. (Or do CentOS and RHEL have PHP 7 packages yet?)
- Inconsistent conventions for function naming and argument order in the standard library.
- Associativity for the ternary ?: operator is the less useful side.
- PHP allows the server operator to change program semantics in ways that are annoying to work around, especially for shared hosting subscribers without access to the server-wide configuration. At various times, these have included "magic quotes" that spray backslashes all over the request variables, not following HTTP redirects in the CURL library,[1] and restricting the size of files uploaded by a site's users to outdated limits such as 2 megabytes by default.
- PHP versions change the semantics of existing programs in ways that encourage shared hosting providers to continue to offer only outdated versions of PHP, making it impossible for web application developers to take advantage of new features. Compare Python, which puts added functions in one namespace per module and conditions new incompatible syntax features on presence of from __future__ statements.
- The developers of PHP rejected keyword arguments.
[1] From March 2005 through September 2013, cURL could not follow redirects with open_basedir enabled because of a heavy-handed security fix.
-
Re:Powershell is not BashPowerShell is not a compiled Language. It doesn't produce IL directly either.
So think of it like an interpreted language that just happens to live in a Dotnet Ecosystem which allows it to instantiate and interact with DOTNET objects thus making it seem like a "DOTNET language". PowerShell has its own Extended Type System (ETS) that makes it more dynamic.. You can create objects on the fly with whatever properties you want, or take an existing dotnet object, and add stuff to it. PowerShell is a dynamic language. With dynamic scoping. It is a pipeline centric language, which passes rich objects through the pipeline (in contrast to binary/text pipelines in unix) PowerShell is a command (verb and noun) centric language in philosophy and implementation, and though it is a RICH Object language, i wouldn't say its object ORIENTATED. you can interact with objects, and create them, but the goal is to produce task based COMMANDS PowerShell lives in different environments. It is a line by line REPL Command line interpreter, but it is also a full scripting engine that can be embedded in other applications.
-
Re:wow - just wow
Anonymous FTP doesn't provide support for partial retransmission
What? Since when? You have to be a schmuck to support resuming anonymous uploads, but you can even do that!
You get the same overall behavior as FTP, but you gain the ability to pause downloads, the ability to secure those downloads if you want to (with TLS), the ability to have passwords that are not sent in the clear, etc.
You can do all of that with FTP, too. FTP already permits resuming downloads, FTPS is already FTP with TLS, and already protects your password.
It's probably still smarter to use a web interface, but not because FTP can't be secured. It's only because users will have to download a secure FTP client, and they already have a web browser.
-
Re:Know what things to avoid.
A large block of memory is not a variable.
int a; <- that is a variable, and it is initialized to zero
To have uninitialized "variables" you need to define a struct/class that has no constructor.
An empty constructor initializes everything to 0 or 0.0.
Here is an interesting conversation about it: https://stackoverflow.com/ques...
-
Re:They are all "contigent" jobs nowdays.
The "Tech industry" is wide and wonderful. What shitty corner are you working in? Because embedded development has worked out pretty well for me.
-
Re:An opportunity missed
You asked for a source, I showed you a source that showed Java popularity at about half of what it once was.
I don't have enterprise-specific numbers, but in 2018, the Java job demand is down about 9%
https://www.codingdojo.com/blo...Fewer people are looking for tutorials and information as compared to a year ago
http://pypl.github.io/PYPL.htm...Between 2013 and 2017 Java has seen a 4% decline in popularity
https://insights.stackoverflow...You can call me a troll all you want, but Java has been in decline for a very long time. I'm sure there are areas where it will continue to be viable for the foreseeable future, but to pretend that it's as strong as it was back in it's heyday is just deluding yourself.
-
Re:Lets make some "libel"
Actually, not necessarily. Windows has the Virtual Store functionality, which a user to "overlay" a folder from inside his own home directory into c:\program files . While I don't believe it's how Steam operates, it is how a series of other software uses "c:\program files" without admin access, in a user-specific way. See https://stackoverflow.com/ques... for details.
-
Re:Multicasting or Torrent casting?
The article only says they used a CDN (and therefore presumably multiple servers), but some things can be plausibly inferred about how any single server handles connections.
Apparently they offer their streaming service as a website, so presumably they use standard web streaming protocols. TCP-based protocols don't allow multicast. WebRTC precludes the use of multicast, but allows the use of peer-to-peer connections.
Therefore we can reasonably infer that it's probably P2P and not multicast, unless you're right and they do simply use 10M connections.
-
Re:CRLF is technically correct
While we are musing on obsolete mechanical computer commands, let us also not forget the Vertical Tab (0x0B).
-
Re:please, do not break a language
Oh, look at that.... Slashdot replaces double-space after period with single space.
...It is not Slashdot. It is a browser and the HTML. Two or three spaces are always one in the browser https://stackoverflow.com/ques...
So a client of an Internet shop sees always one space, and it is confusing for her/him why the product does not sort properly.
In fact, I had a lot of problems with these multiple spaces coming with product titles from suppliers. And I do not work only with English language. -
Re:How exactly do they know that?
StackOverflow doesn't have avatars
Then what do you call the little pictures next to people's names that I see, for example, here?
-
Re:they coded that restriction in and made it a re
Recently started using SO. You can answer questions without any reputation, it's just the commenting that requires reputation.
If my sibling comment is right and the required amount of reputation is 50, you will need to get five upvotes on an answer (10 points each), or say two accepted answers (15 points each) and two upvotes. Getting answers accepted isn't very easy though. A lot of people never accept answers, no matter how good they are. Also, new answerers are sometimes treated with suspicion. IIRC, my first answer ever got downvoted for a minor typo in the code, but most people are more interested in upvoting. I got voted up soon after I fixed the mistake.
Rather than knowing how to game the system, you just have to answer before somebody else does. Usually that means answering within the first 10 minutes or so, but this strongly depends on the subject matter. HTML/JavaScript questions will be answered fast and you will get sniped unless it takes some effort to answer the question.
All fresh questions appear on the homepage, but the homepage also has bumped questions. To get a page with only new questions, go to https://stackoverflow.com/questions
To see the fresh questions in your field of expertise, go to e.g. https://stackoverflow.com/tags/bash or https://stackoverflow.com/tags/java or whatever. -
Re:they coded that restriction in and made it a re
Recently started using SO. You can answer questions without any reputation, it's just the commenting that requires reputation.
If my sibling comment is right and the required amount of reputation is 50, you will need to get five upvotes on an answer (10 points each), or say two accepted answers (15 points each) and two upvotes. Getting answers accepted isn't very easy though. A lot of people never accept answers, no matter how good they are. Also, new answerers are sometimes treated with suspicion. IIRC, my first answer ever got downvoted for a minor typo in the code, but most people are more interested in upvoting. I got voted up soon after I fixed the mistake.
Rather than knowing how to game the system, you just have to answer before somebody else does. Usually that means answering within the first 10 minutes or so, but this strongly depends on the subject matter. HTML/JavaScript questions will be answered fast and you will get sniped unless it takes some effort to answer the question.
All fresh questions appear on the homepage, but the homepage also has bumped questions. To get a page with only new questions, go to https://stackoverflow.com/questions
To see the fresh questions in your field of expertise, go to e.g. https://stackoverflow.com/tags/bash or https://stackoverflow.com/tags/java or whatever. -
Re:they coded that restriction in and made it a re
Recently started using SO. You can answer questions without any reputation, it's just the commenting that requires reputation.
If my sibling comment is right and the required amount of reputation is 50, you will need to get five upvotes on an answer (10 points each), or say two accepted answers (15 points each) and two upvotes. Getting answers accepted isn't very easy though. A lot of people never accept answers, no matter how good they are. Also, new answerers are sometimes treated with suspicion. IIRC, my first answer ever got downvoted for a minor typo in the code, but most people are more interested in upvoting. I got voted up soon after I fixed the mistake.
Rather than knowing how to game the system, you just have to answer before somebody else does. Usually that means answering within the first 10 minutes or so, but this strongly depends on the subject matter. HTML/JavaScript questions will be answered fast and you will get sniped unless it takes some effort to answer the question.
All fresh questions appear on the homepage, but the homepage also has bumped questions. To get a page with only new questions, go to https://stackoverflow.com/questions
To see the fresh questions in your field of expertise, go to e.g. https://stackoverflow.com/tags/bash or https://stackoverflow.com/tags/java or whatever. -
Meta discussion on SO
And the users themselves are pretty much against this:
-
Re:they coded that restriction in and made it a re
All users can ask or answer questions. New users cannot make comments partially to make sure new users learn that comments are not the appropriate place for answers.
-
Re:they coded that restriction in and made it a re
All users can ask or answer questions. New users cannot make comments partially to make sure new users learn that comments are not the appropriate place for answers.
-
Re:I don't get it
Yeah, here's an example question from today:
how to create app desktop Management queues in c#?
good people I want to create a desktop application, management queues in C #.
What should I do, I have no idea, I would like help
-
Re:Even if you can't take a screenshot...
Stuff where JavaScript blocks things like copying text are also easily defeated. Holding SHIFT while right-clicking in Firefox seems to override most of the blocking stuff. If that won't work, the developer console is happy to help.
-
Requires Excellent karma
That checkbox is offered only to users near maximum karma. Stack Overflow has a similar model of presenting fewer ads once a user reaches a particular reputation level. But what would you do between signup and reaching the karma threshold?
-
1970's
Many have noticed that almost all big software ideas were invented/discovered by the 1970's and that most new stuff is merely refinements of those ideas.
You can add neural networks to that list. The recent "deep learning" networks are just a smart application of prior ideas, with a big dose of computing power not available in prior eras to both test neural network configurations and run the AI applications.
If you want startup ideas, I'd suggest dynamic relational. It's not revolutionary, but a tool I wish existed for rapid prototyping and rush-job RAD. (It's not my fault it's a rush job, I'm just following PHB orders.) You can make money by releasing an open-source version, but also sell an "enterprise" version and/or support contracts, similar to the PHP Zend model.
Another idea is to follow ARM and Android OS model by creating a content sharing standard to make it easier to share content among different OS's, CMS's, and social networks. It's almost like a file system standard, but with better or more consistent meta-data, including more powerful categorizations that cross beyond the mere hierarchies of files. Most content has or needs elements such as: title, synopsis, author, categories (list), intended audience (personal, friends & fam., work, public, etc.), create date, change date, expiration date, etc.
The company wouldn't charge to use the standard, but one would have to pay a fee to use the product name or get a copy of the formal specification. Big co's would typically pay to use the Foo logo, but small co's or amateurs could only say "Foo compatible" to avoid fees. (You don't have to pay Google to use the Android OS, but you do if you want to call it "Android" and use the green Android logo.)
-
Re:In other news...COBOL beats FORTRAN
OK so I did some googling.
In Emacs, it seems kind of hard to do things like renaming a variable or function. In Visual Studio, you just right-click the name (any kind of name), choose Rename, type the new name. If there are any conflicts, it warns you. If a class file needs to be renamed as a result, it renames the file and updates the project too. It's smart enough not to confuse names from different modules that happen to be the same.
Same issue for finding all references to a variable, function, class, or whatever. Right-click, Find All References. The result is not a search, it actually looks at the compiled code to ensure that it lists all, and only, instances of the specific item you clicked, not other items that share the same name.
When you are debugging, VS automatically shows you profiling info, like how many ms it took to execute each step, or each block of code. It tells you what parts of your code have been covered by unit tests. It's full of shortcuts, like: type "try", hit tab, it creates the try/catch block for you.
Maybe emacs can do some of this stuff, but I think you'll be hard-pressed to show that it is more powerful than VS.
-
Survey MethodologyKudos to StackOverflow for providing this in detail here:
https://insights.stackoverflow...Respondents were recruited primarily through channels owned by Stack Overflow. The top 5 sources of respondents were banner ads, email lists, house ads, blog posts, and Twitter. Since respondents were recruited in this way, highly engaged users on Stack Overflow were more likely to notice the links for the survey and click to begin it.
So the population is highly skewed / biased towards registered users of Stack Overflow. Results therefore are interesting, but should be taken with a grain a salt.
-
Re:Stop putting the operating system in the browse
When was it that ignoring the existence of the [<noscript> tag] is the best practice???
Since "progressive enhancement". See "Shouldn't we use <noscript> element?" by Jitendra Vyas et al.
-
Re:Where to begin?
lol if you don't think you can have a race condition in single-threaded code, wow... that's what I call "sheltered."
No you can't.So any type of non-blocking read, for example. Or you might have to set some system register, and then wait for some other register flag to show up before doing the next step
That is nonsense.I had one a few weeks ago where an interrupt service routine simply made a faulty assumption about the maximum number of cycles it could take to start
That is not a race condition.Interestingly however the whole engish wikipedia article is wrong
;D https://en.wikipedia.org/wiki/...
Perhaps you use the term "race condition" for several distinct things that have nothing to do with each other?A simple introduction you can find here: https://stackoverflow.com/ques...
-
Re:Because replacing a URL is a great idea
https://stackoverflow.com/ques...
There's loads of javascipt that already changes copied text, prepending or appending anything you want. And also copying to the clipboard, usually just to share a link, onclick it automatically writes to the clipboard. This library handles writing to the clipboard for you if you need such a thing https://clipboardjs.com/