methodology

How to modify javascript code at run time?

一个人想着一个人 提交于 2020-01-22 05:19:19
问题 Is there a way to modify JavaScript code while debugging? Visual Studio has "Edit and Continue", and similar hot swapping of code can be done in Java and other languages. Can this be done with JavaScript, and if so, how? 回答1: Chrome, Safari, and some other WebKit-based browsers contain a feature in the Web Inspector known as Live Edit. If you go to the Scripts panel and are stopped on a breakpoint (or maybe even if not stopped on a breakpoint — I'm not sure), you can double click on a line

Business Logic in Database versus Code? [closed]

安稳与你 提交于 2020-01-19 18:25:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . As a software engineer, I have a strong bias towards writing business logic in the application layer, while typically relying on the

Business Logic in Database versus Code? [closed]

筅森魡賤 提交于 2020-01-19 18:25:08
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . As a software engineer, I have a strong bias towards writing business logic in the application layer, while typically relying on the

Detecting successful read stream open

陌路散爱 提交于 2020-01-04 12:20:13
问题 I'm implementing cache for static serving middleware for Express.js, which works as follows — when request comes, middleware first tries to serve file from filesystem, and if there is none, file is fetched from upstream and stored in file system. Problem is I don't know how to properly detect “cache hit” event. staticMiddleware = function(req, res, next) { // try to read file from fs filename = urlToFilename(req.url); stream = fs.createReadStream(filename); // cache miss - file not found

Pair programming means double cost per developer. Is it worth that money? [closed]

泪湿孤枕 提交于 2019-12-31 08:06:22
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Pair programming in Agile requires us to double the salary paid to single programmer. Of course with such approach the quality of the code is far cry better, bugs are found much earlier and so forth, but is that still worth that money? Maybe we should pay the 2nd developer's

Pair programming means double cost per developer. Is it worth that money? [closed]

爷,独闯天下 提交于 2019-12-31 08:06:09
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Pair programming in Agile requires us to double the salary paid to single programmer. Of course with such approach the quality of the code is far cry better, bugs are found much earlier and so forth, but is that still worth that money? Maybe we should pay the 2nd developer's

In git, how can I find the revision at which a branch was created?

时光毁灭记忆、已成空白 提交于 2019-12-29 04:14:52
问题 UPDATE: example repository, https://github.com/so-gitdemo/so-gitdemorepo In the context of the github repo. How can I easily locate rev "b0430cee"? I know I can just look, but the real example that this repository mimics has a dozen committers and multiple other branches. Not quite as easy to use inspection. How can I find the branch creation revision when the branch has been merged multiple times? I am aware of this question: How to determine when a Git branch was created? The solution does

Best approach to add records into DB using php/ajax/mysql?

房东的猫 提交于 2019-12-24 03:23:06
问题 Wondering if someone can suggest a better approach to the current method I have of integrating php/js/mysql. I use this method just fine for returning sample data, setting a unique value, etc, and it works just fine (with various authentication methods to slow an attack attempt). However, I want to now add relatively large amount of data and wondering if there is a better method? Currently I do this: JS $.ajax( { type : "GET", url : "_dbGetSomeData", dataType : "html", success: function(data)

How do you prove a function works?

冷暖自知 提交于 2019-12-24 02:47:09
问题 I've recently gotten the testing religion and have started primarily with unit testing. I code unit tests which illustrate that a function works under certain cases, specifically using the exact inputs I'm using. I may do a number of unit tests to exercise the function. Still, I haven't actually proved anything other than the function does what I expect it to do under the scenarios I've tested. There may be other inputs and scenarios I haven't thought of and thinking of edge cases is

How to deal with poorly informed customer choices [closed]

时间秒杀一切 提交于 2019-12-21 04:49:18
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 months ago . Here's a scenario I'm sure you're all familiar with. You have a fairly "hands off" customer, who really doesn't want to get too involved in the decision making despite your best efforts. An experienced development team spend hours discussing the pros and cons of a particular