instruction stringlengths 34 36.1k |
|---|
I don't understand why people like to say "Images had to be distorted otherwise they would be easily cracked". I'm talking about those verification images that we had to type to identify that we are humans.
Exactly what steps must we take to break even a simple image? like this:
Ok so i'm guess we had to read all the ... |
I work at a company that has repeatedly cut the sizes of its development team, to the point that previous 10-man teams are now down to one developer per product (and a couple of testers shared between 5 products). We used to be fairly process heavy, having been a spin off from a larger company, and inherited its multi... |
I've seen not so many examples of testing with automatic tools, i.e. serializing/deserializing of JSON (which was paired in the following way:
val actual = deserialize(serialize(string))), checking that appending symbols to string was done properly (and that's imho silly, cause it extremely hard to made a mistake in s... |
I've been programming in Java, C#, Python and AS3 most of the time and in all of these languages there are packages (or something like that). The problem I found is with the naming convention, or even with the organization of the packages. I need someone to tell me WHY is this:
com.company.app.type.Object or org.author... |
Is it over-engineering if I add protection against a user's intentional wrongdoing (to put it mildly), if the harm the user can incur is not related to my code?
To clarify, I'm exposing a simple JSON RESTful service like this:
GET /items - to retrieve list of user's items
PUT /items/id - to modify an item
POST /items -... |
There seems to be a growing trend for CMS systems to manage not only data capture and workflow, but to be an end-to-end product that manages presentation and end user content (like comments/forums). I thought it was a pretty ridiculous, but it seems like this approach is gaining more and more traction. It seems to me t... |
I am looking for best practices that big organizations follow for code check-in and validations.
Currently we follow these steps,
- Developer writes code
- Developer do some initial tests
- Code is awaiting validation now
- Technical lead reviews the code (possible bugs, see if coding convention is followed etc)
- Onc... |
At our company, we frequently use third-party libraries and frameworks in our products. Often, we are faced with the task of evaluating one or more libraries that full fill similar requirements (in a specific case we had to choose between some encryption libraries).
We often do a simple prototype to try to figure out,... |
I've recently finished the The Three Signs of a Miserable Job by Patrick Lencioni and one of his core ideas is that you need to have some form of measurement.
I have a pretty standard internal developer job where I work on new tools and do some support/bug fixes for past tools I have written.
For purely personal fulfil... |
I'm going to ask what is probably quite a controversial question: "Should one of the most
popular encodings, UTF-16, be considered harmful?"
Why do I ask this question?
How many programmers are aware of the fact that UTF-16 is actually a variable length encoding? By this I mean that there are code points that, represen... |
Say you're working on designing the world's greatest iPhone app.
How do you decide what UI would be more effective, would be more intuitive etc? How do you take an idea and decide how to visually represent it?
Do you use any programs (on a mac) to model something like that?
|
Is there an encyclopedia of algorithms similar in style to the Handbook of Mathematics? It seems useful to have large numbers of them available in one place. I know the Art of Computer Programming is considered a good source but it does not seem encyclopedic so much as instructive.
Moderator Note
We're looking for lon... |
From what I can tell, most developers will use heavy jQuery DOM manipulation tactics to deliver their updated AJAX views. Once things get out of hand, they may consider refactoring using template engines such as Mustache.js. Is this a valid assessment of a natural progression to use a template engine?
When I begin a ne... |
I have just started learning how to program using LPTHW, and as my skill level develops I would like to start shipping code whether or not it's ready to be shipped, just to get into the habit of always shipping code, and not having the fear of shipping code.
Is there are a beginner friendly guide to shipping code?
|
I ve been a php developer for the past 4 years and worked in OO PHP and almost all sorts of PHP mvc frameworks. Ive joined a new company now and here we use scala for web development. We have a product which has a frontend developed in a js mvc and a backend in scala. Actually this kind of restful architecture itself i... |
I am a junior programmer who works as an intern(8 mths into the internship) in a team of 1(myself only) creating mobile phone apps & websites.
I have created an App that works exactly how it should & has some pretty cool features but the App fails to run on Android(the main target platform for us, it works on the desk... |
Lets say I'm building community that uses some webapp. These webapp uses a a modified version a a GPLv2 licensed theme. Additionally the community uses a donation mechanism to fund itself. Donation overheads will be given back to the community in some form, so there is no commercial goal behind it.
Questions:
Am I req... |
I've been programming in PHP for a long time, and I've just recently decided to make the switch to Python. Of all the Python web frameworks, I settled on Twisted Web to build the framework of my startup.
However (and I know it sounds nitpicky), mod_rewrite was something that I really appreciated about Apache. I want th... |
As a part of learning system programming, I am looking to implement a file shredder. The simplest way (and probably seen as naive) would be to replace the data bytes with zeroes (I know OS splits the files and I'll replace bytes in all those chunks). But when I google on this topic, I am surprised to find multiple pass... |
Do you think programming novices should learn objects from day 1, as seen in the book "Objects First With Java: A Practical Introduction Using BlueJ" by David Barnes? Or do you think this is a bad idea?
For those unfamiliar with the book, here is a list of the topics discussed in the chapters:
Chapter 1 deals with the... |
As stated in the question, is there any difference in the meaning of the two as applied to the Controls of .NET. Or are they alias of one another?
|
I recently started out working for a new client with an old legacy codebase in which there are multiple .net solutions, each typically hosts some projects unique to that solution but then "borrows" / "links in" (add existing project) some other projects which technically belongs to other solutions (at least if you go b... |
I realise these two diagrams are very similar, with the obvious difference one models the sequence of a certain function, whilst the other models the state throughout a function being carried out.
The differences that I have identified are as follows - probably incorrect:
State chart is more of a logical view of any f... |
So if I understand correctly, from SOLID design principles, every class should keep a single responsibility.
So there should be one class that creates and manages a resources, a second class that does resource processing/update, the third class that connects the resource to some other resource and so on.
The question i... |
Possible Duplicate:
Why do most of us use 'i' as a loop counter variable?
Maybe this questions seems to be extreamly stupid but I wonder why we use i as variable in most cases in for loops (and not other letter). This might be a historical cause.
eg.
for(int i = 0; i < 10; i++)
|
In another question I asked recently about best practices for whiteboarding, there was general consensus that thinking out loud while coming up with the answer was the best strategy.
Indeed, long moments of silence are awkward.
However after recent interviews I have noticed that if my thinking out loud leads to wrong ... |
I'm currently developing v2.0 of my personal cms. However, I'm stuck. I strongly feel that my old solution for "tasks" is not very dynamic and must be revisited. Currently I'm looking the whole concept of how to dynamically add tasks and run them.
What I mean by task system
Like always in cms software, there are a lot ... |
Do software developers who choose not to put code optimization, standards and best practices as a top priority, create more useful code than those developers who want to worry about optimization, implementation of coding standards and practices above completing tasks on time?
How do these differing methodologies compar... |
I am working in IT department of a big, international company. We are developing different Intranet applications for the business (Complaints, Rebates, Service Desk etc). Now we decided to migrate from PHP platform to .NET (integration with MS CRM Dynamics, Exchange and MS Office be among many reasons). As there are ab... |
We write a complete functional specification for our development team of two. We do not have professional testers however we have drafted in the help of our available helpdesk personnel to perform 'QA testing'.
We have had problems in the past where complete chunks of functionality do not work, or the code is delivere... |
I was curious if the recruitment team at high-demand companies such as Google takes a lack of hobby projects into consideration when evaluating candidates.
I'm a straight 40 hour/week programmer, who is lucky to spend an hour or two a month outside of work on anything programming related. I love hanging out on SO/SE du... |
In the past 2 years since I started writing business applications (before I did either high level front end or very low level systems programming), learned datasets, linq to sql, and now entity framework. The logical thing to look at next seems to be NHibernate.
Reasons I eventually ended up at EF are: (1) it has the ... |
Can anyone point me to any GOOD open source .NET parental web content filters? I would like to gain an understanding of how I can filter/block web traffic based on Url and/or keyword.
I've looked on google but can't seem to find any developed c#
|
Here's the type of situation that I've been struggling with, and I'm certainly not the first:
Project has a budget based on the estimated time to develop the solution
Deadline to turn project over to the PM for QA is one some date
I am working on multiple projects at once, and each has a budgeted number of hours and d... |
I'm designing a distro and some of the software packages included are maintained in such a way that my source repository doesn't actually include the source code, but they are included as an svn:externals property or a list of read-only repository URLs and are checked into the source tree before building.
Sometimes, th... |
Version control for ladder logic (LL) programs for programmable logic controllers (PLCs) seems to be virtually non-existent. It may be because LL is a visual language and tends to be stored in binary files, or it may be because source code control hasn't "caught on" in process control engineering circles - or perhaps m... |
I like to backup things every night or say every week. I'm sure there's a more efficient way than emailing the solution folder and database files to myself! I don't have team foundation or any commercial products like that. I'm looking for a freeware.
|
We're a scrum team of 3 developers, 1 designer, the scrum master, and the product owner. However, we don't have official tester in our team. A problem that is always with us, is that, testing the application and passing those tests and removing bugs has been defined as one of the criteria to consider a PBI (Product Bac... |
I recently developed an application for an organization (and I'm not charging them).
I want to maintain total ownership of the source code and there are various Open Source Project that I've used. I want/need to comply by the rules of the licenses that they use and still keep the project within a few guidelines:
If ... |
I wonder what the technical implementation differences between C# and Scala are and how both solutions compare to the implementation ideas and concerns voiced in the email Peek Past lambda by Brian Goetz, sent to the mailing list of Project Lambda (JSR 335)?
From the email:
We explored the road of "maybe lambdas shoul... |
Recently an item has been added to the Product Backlog by product owner which says "When I go to login page from x page, I see an error. I want that error to be removed".
It seems to me that this is not a use case, and shouldn't be a PBI (Product Backlog Item). However, when I discussed it, scrum master told me that us... |
I want to know what is more standard way to call regular expression in short way. I have seen both, regex and regexp.
Google says regex has almost 2 as much hits that regexp, but it depends on way I search it (when I add "regular expression" after the word, "regex" becomes "regex regular expression", the result is diff... |
I am currently investigating multi tier architecture design for a web based application in MVC3. I already have an architecture but not sure if its the best I can do in terms of extendability and performance.
The current architecure has following components
DataTier (Contains EF POCO objects)
DomainModel (Contains Dom... |
Are custom DSLs in JavaScript still viable, Specifically ones written with Antler, Boo, or the former Microsoft Oslo?
With the proliferation of open source JavaScript/ECMAScript engines (V8, IronJS, etc.), does it make more sense to write the functionality needed into one of those instead of writing an entirely new lan... |
Currently, I am reading Pro ASP.NET 4 in C# and in it, two ways of creating a web application are described:
Website
Web Application Project
In which scenarios should I choose the former over the latter, and vice versa?
|
I have a 10K LOC project written in Django with quite a deal of Celery (RabbitMQ) for asynchronicity and background jobs where needed, and have come to the conclusion that parts of the system would benefit from being rewritten in something other than Django for better concurrency. Reasons include:
Signals handling and... |
When Facebook, Youtube, and even Microsoft themselves say that they've "dropped support for IE6", what do they really mean? Youtube still functionally works fine in IE6. If they mean that they've dropped support for visual appearance and fancy features, then their point is moot. Web developers have degraded IE6's appe... |
first my apologies if this isn't the right place for this question but I think that th.CS is not the right place for sure neither is StackOverflow.
I really like functional programming and I think I'm a medium level guy in F# and understand the basic concepts of Haskell rather well - and yes I think I know/fell like I ... |
The common styles of pseudocode are largely intelligible, and it is more or less clear how to write pseudocode for sequential programs.
But if parallelism is not hidden behind a full library and is regarded as a regular part of programming, then it should be treated as the same way in regards to pseudo-code.
Is there ... |
I've heard stories of this from senior coders and I've seen some of it myself. It seems that there are more than a few instances of programmers writing pointless code. I will see things like:
Method or function calls that do nothing of value.
Redundant checks done in a separate class file, object or method.
if statem... |
A business has five discrete streams of business requirements to be implemented in software. There is a team of ten developers.
A "naiive" organisational solution is to split the team into five "teams" of two (one per requirements stream). But I feel this compromises the integrity of the team (making teamwork more dif... |
TDD gurus more and more tell us that TDD is not about tests, it is about design. So I know some developers who create really great design without TDD. Should they practice TDD then?
|
A business has five requirements streams, with a "stream leader" (called Product Manager, but this is an in-house term) per-stream and a backlog per-stream.
If we wanted to follow Scrum more closely, as I understand it, best practise would dictate the identification of a single product owner managing a single backlog c... |
I'm 21 years old and a first year master's computer science student. Whether or not to continue with my PhD has been plaguing me for the past few months. I can't stop thinking about it and am extremely torn on the issue. I have read http://www.cs.unc.edu/~azuma/hitch4.html and many, many other masters vs phd articles o... |
I am planning on opening sourcing a project that I've been working on for a while and that I think would benefit the community. I've already cleaned up the code, added a reasonable license, and wrote a packaging script for it that runs the unit tests, etc (it's Python, so that means setup.py). I wrote a README that des... |
One of the things I struggle with is not using Hungarian notation. I don't want to have to go to the variable definition just to see what type it is. When a project gets extensive, it's nice to be able to look at a variable prefixed by 'bool' and know that it's looking for true/false instead of a 0/1 value.
I also do... |
Some time ago I wrote a BlackBerry application. I find that I now want to release it under an open source license. I am strongly considering the GPL v3 license. All the code is mine; there are no third-party libraries (with the exception, of course, of the all the standard BlackBerry/Java libraries that I am "linked" t... |
We have a project that everyone says we will be doing in a agile way but I doubt we have clearly understood what agile is.
In previous projects we had planning meetings, then defined the product back log and allocated the work to developers in 2 to 3 week sprints. Every morning we had scrum meetings (which seemed to go... |
We are planning a new project and we want to go with a services oriented architecture.
Everyone agrees that this is the way to go but how does this fit in with starting the development using agile methodologies?
I do not have any experience with SOA, although I have some experience with TDD (test driven development). T... |
When managing an open source project (using a service like GitHub) how would one respond to the following:
Somebody has kindly submitted a patch to add a new feature or address a problem. Any one of the following situations occur:
The source code doesn't meet one or more naming conventions, etc.
I feel that the source... |
I desire to become a more serious scientific C++ programmer. To do so, I need a consistent style of workflow (e.g., coding, test-driven development, etc.). My question is simply what sort of workflow should I consider? I am familiar with Linux and Mac, and prefer to use free tools like cppcheck, valgrind, g++, etc.... |
I think everyone will agree that the following boolean variable/property names are standard:
UserIsAdmin
OrdersAreClosed
The important thing to note about boolean expressions is that they are stated and then evaluated as true or false. User is admin. False. You get the point.
However, lately I have seen an increas... |
Is this agile? Scrum? Any suggestions on how this can be made more agile under the circumstances? Which points are positives and which can be improved?
The product is developed for a customer who will re-sell it while paying us royalty.
The team does not get to talk directly to the end user. Only to the reseller.
... |
What is the general workflow when I want to add a feature to an open source application I didn't originally write? How do I get to know the code? How do I find the spot that needs to be changed or added? How do I actually make the change without breaking anything else? How do I test that everything is still working?
Wh... |
How can I take a truth table and turn it into a compacted if block?
For instance, let's say I have this truth table where A and B are conditions and x, y and z are possible actions:
A B | x y z
-------------
0 0 | 0 0 1
0 1 | 0 0 1
1 0 | 0 1 0
1 1 | 1 0 0
This could transform into below if block:
if(A)
{
if(B)
... |
Are there scenarios where polling for events would be better than using the observer pattern? I have a fear of using polling and would only start using it if someone gave me a good scenario. All I can think of is how the observer pattern is better than polling. Conside this scenario:
You are programming a car simulato... |
I'm planning on running an executable as a child process in my program (e.g. using Ruby's popen or C's exec() family of functions). However, the executable I'm planning on running is licensed through the GPL.
The GPL, as I understand it, requires that all linked code to GPL licensed code needs to also be GPL.
But there... |
I've been working on some piece of software while being "employed" by company A. I now want to continue working on the same software while being employed by company B. Company B wants the software to become open-source to prevent any future legal issues between company A and them. I will consult company A's lawyer to m... |
I've been the lonely programmer in my work for quite a long time. Usually I've read articles and posts about
Version Control Systems
Continuous Integration/Delivery
Development methodologies: Scrum, Waterfall, V-Model, Agile, XP, etc.
Software Project Management
But almost all of them seem to be focused on TEAMS. I'm... |
For several reasons during development I sometimes comment out code. As I am chaotic and sometimes in a hurry, some of these make it to source control.
I also use comments to clarify blocks of code.
For instance:
MyClass MyFunction()
{
(...)
// return null; // TODO: dummy for now
return obj;
}
Even thoug... |
I don't really know the nomenclature regarding these matters, but here is a brief description of what I want. Please let me know if I should substantiate more.
So I have this larger project involving databases, different languages, and interfaces (SQL, R, C, Python, both GUI & CLI). It's growing a little too big to fit... |
There's a bug in my program. Doesn't really matter what the platform is. Every so often, a row in a ListView is the wrong color. I tried setting a watchpoint for the variable that is supposed to dictate the color of the row, and it doesn't change... I am guessing it means the problem could be in the framework code. I'v... |
I'm a junior developer and I find it hard to estimate how much time it takes to finish a bigger software project. I know how to structure the architecture in general, but it's hard for me to know what details I have to do and what problems I have to solve. So it's hard to estimate how much time it will take to finish a... |
I saw on a article that put forth this statement:
Developers love to optimize code and with good reason. It is so
satisfying and fun. But knowing when to optimize is far more
important. Unfortunately, developers generally have horrible intuition
about where the performance problems in an application will actuall... |
I had asked this question on Stackoverflow, and before it got booed off, I received the helpful suggestion from Péter Török that this might be a better place to post it.
I've been programming in Java for a few years. I've often discussed design decisions with colleagues on the basis of what constitutes 'good style'. In... |
I'm looking for an existing library license which satisfies the following conditions:
GPL-compatible
Can be statically linked with closed-source programs
Binary modifications of the library, including cases where the library is statically linked with another project, must be accompanied by the library source code
Lic... |
I have a written a small app as a research project that uses open source libraries. It can do packet sniffing, network scanning and man in the middle attacks on wifi and lan.
This software is intended to be used for security auditing.
But users can also use it to circumvent the MAC filtering of their ISP and get free i... |
As I know, softwares licensed under the GNU GPL is totally free and not allowed for sale. However, today I found this program called Minitube and it is sold even though it is licensed under GPLv3. Does the original author has a permission to sell his own software, even if he releases it under the GPLv3?
|
I have just recently completed my first open source project and while it is mostly a tool I still want to release it as open source considering it is C# so if someone wanted to they could decompile it. Also, I'm not looking to sell it.
I was researching licensing but the wording is a bit over my head. Mostly I'm just l... |
in JavaScript:
function getTopCustomersOfTheYear(howManyCustomers, whichYear) {
// Some code here.
}
getTopCustomersOfTheYear(50, 2010);
in C#:
public List<Customer> GetTopCustomersOfTheYear(int howManyCustomers,
int whichYear)
{
// Some code here
}
List<Customer> customers = GetTopCustomersOfTheYear(50, 2010)... |
In Java, most people expect that each call to Iterator.next() will return a distinct object. This has led some of us to define an alternative model which we called a 'cursor'. (Note that others use the term 'cursor' to draw a different distinction.) The pattern of a cursor is:
class SomeCursor {
boolean hasNext();... |
There are lots of books on assembly. However, they usually deal with ISAs about which I don't care, such as MIPS or ARM. I don't deal with these architectures; there's no reason for me to try to learn them.
But x86 assembly books seem... nonexistent.
Let's say for example I'm trying to build a toy compiler generating W... |
When writing applications for software, specifically mobile devices, will there be a problem with using any specific type of fonts (copyright/patent issues)?
If so, how can we avoid this possible problems?
Will it then make a difference if the app was a paid version or a free version?
|
I'm using a code sample from MSDN in my project. Accompanying the sample is this license:
http://pastebin.com/K46NYf69
I've modified the code sample slightly to better suit my needs and I now want to release my program as open source. However, I'm not sure which licenses are compatible with this license because I canno... |
I've been doing a Requirements Analysis module in my university. We've covered all kinds of formal requirements stuff, like UML, Use Case Diagrams, Sequence Diagrams and Contracts. I have to ask- are any of these things of any value whatsoever in the real world? The only Use Case Diagrams I've ever seen could be summed... |
I tried creating a flow chart of a function that I use in my program, but there are a lot of conditional statements in between every process and the diagrams are getting more confusing.
Is there a another language or markup other than flow charts that can be employed for large codebases with high complexity?
|
At my place of employment, we've had some serious growing pains. We went from a development team of 3 to 10, and the company itself has grow 30% in the past year. By most measurements, we're doing well. Unfortunately, the quality of our software has suffered.
In a meeting today with my division's manager, I proposed... |
I'm a Python programmer that prefers to develop on Windows but still end up deploying to a Linux server.
I've just finished writing a little script: stuff that downloads files from a site, generates a sitemap, gzip it, pings the search engines and emails the response code.
Nowadays most GNU tools are available and comp... |
I'm a reasonably experienced programmer trying to learn web developement. I'm trying to develop a client-side web application which uses svg or canvas for graphics. I've decided I'd like to write the application code in Coffeescript. I don't know either Javascript or Coffeescript.
How necessary knowing Javascript to... |
Here's the scenario: a client of mine (lets call them Company A) had a website built by someone else (let's call them Company B). They then asked me (Company C) to configure a third party framework to look and feel exactly the same as what Company B built for them.
Would it be legitimate for me to use content (inclu... |
The version of python which I am using is 2.6, and there is a 2.7 and 3.x. Usually I use python for some trivial program/snippet. I realize there are some major difference between 2.x and 3.x. I would really like to know, if I am going to make a bigger project with python, which version of python should I use?
Should I... |
Short Question
Does it fly in the face of the Pythonic view to reuse / repurpose python modules for projects out side of their intent?
Background
Over the past several months I have been working on a project that uses the Python unittest module to run manual system tests. Please see questions 1 2 and 3 for greater d... |
Does the desktop browser version of a web site always suffice for the tablet version(assuming no flash)? or is it common for websites to have a special tablet version that is different from both desktop and phone?
|
A software development company I work with has a web based product they are successfully selling to clients. All of these clients have a support agreement with us that generally requires us to access their servers, databases and application data. As the number of clients grows, (and the number of different people suppo... |
I'm working on a medium sized (100k lines) code base, it's all relatively recent code (less than a year old) and has good unit test coverage.
I keep coming across methods which are either no longer used anywhere or only referenced in unit tests which only test that specific method.
Should I remove this code if I'm cert... |
Some languages, for exemple java, introduced a low pause GC.
Those GC can do most of the work without pausing the whole world. This is obviously a quite hard problem because it require to analyze the memory when thread are modifying it, resulting in data that can be used in the begining of the process and not anymore w... |
Ideally, we would have different browsers supporting the same standards and same code producing the same result on all browsers.
That hasn't happened yet. What are the reasons why?
|
Which of these styles do people prefer?
string mystring = "defaultvalue";
if (condition)
mystring = "othervalue";
VS
string mystring = null;
if (condtion)
mystring = "othervalue";
else
mystring = "defaultvalue";
VS
mystring = condition? "othervalue" : "defaultvalue";
|
Is it possible to define variables dynamically?
Last night I was writing some code (C and VB2010) and I ran into a problem related to defining variables in my program. The variables needed depend on the number of entries added by the user and the number of users. Even using dynamic memory allocation we have a size lim... |
My friend and I are planning to develop a tiny and simple CMS by taking some inspirations from an already existing GNU GPL CMS.
We take the ideas and try to develop it as simply we can, is it possible ? We are planning to set up the same licence, GNU GPL. Is it a good choice ?
Which are the conditions to do it ?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.