instruction stringlengths 34 19.9k |
|---|
Possible Duplicate:
What does the latest “C++ Renaissance” mean?
Lately, I hear a lot about C++ Renaissance. What is that?
C++ is currently undergoing a renaissance. This means that, by definition, the language, compilers and compositional tooling are evolving and coalescing into a state that maximizes native devel... |
JavaScript has obviously become pretty indispensable; however, I'm still new to it, and I've found it's hard to fight the feeling that it seems such a mess and I don't want to deal with it right now. I'm much further in my understanding of other languages than I am with JavaScript, because I can't seem to get a handle ... |
I have a web app (ASP MVC2) where some forms can be accessed via multiple routes, initially once a form was complete a user was kicked back to a default page for that form rather than the page they entered it from.
Now I'm redesigning a sizable area I want to address this, I want a solution that is easy to add in. I ha... |
I have recently started putting my code under version control (in the lab I'm working, under SVN, and my own codes in github (obviously with git)). Before using version control, I used to do something like this. I had a folder with the name of the library, inside many folders with the version number. Every time I wante... |
We have a high load SAAS product and due to lack of resources the board has outsouced reporting and OLAP & Warehouse work to a 3rd Party Company. When we started working with them, they accidentally DOS'ed our production system, now they have made too many long running queries on the production databases and slowed the... |
Why is the length of the some characters e.g. the following 'ᨒ' 3 when it should be 2
ᨒ
U+1a12
1a12 means 6674
2^16 is 65536 so 6674 should take only 2 bytes and not three
|
I'm a bit of a tool nut and I'll often spend as many as 6-8 hours a week finding new tools, improving my existing tools by writing plugins or adapters or playing around with new tools to see if I like them any better than the ones I have.
That's not counting that my official day job is basically tool-chain development ... |
Supposing I want to do some kind of project, but I want to find more people interested in that area that can develop some project with me, there is some website focused on this?
Example: "I want to develop action games for mobiles" or "Want to find web developers for a new social network focused on blah blah blah".
Thi... |
Possible Duplicate:
What should every programmer know about web development?
I've heard rumblings on this site that web developers should be familiarize themselves with HTTP.
What aspects of HTTP is it beneficial to know as a web developer, and why?
Update: This is not an exact duplicate of This is not a duplicate o... |
I have done a fair bit of work with relational databases, and think I understand the basic concepts of good schema design pretty well. I recently was tasked with taking over a project where the DB was designed by a highly-paid consultant. Please let me know if my gut intinct - "WTF??!?" - is warranted, or is this guy s... |
Several responses to a database schema question, suggested an additional table to normalize a database for a feature that is not part of the current requirements (A UserDepartment table to allow for a many-to-many relationship between employees/users and different departments they may belong to.).
Not against normaliza... |
For example, is it copyright infringement if I write a class called Random with the exact same purpose and method signatures as Microsoft's .Net System.Random class? Does it make a difference what language it's written in? In this case I want to write a Random class for use in ActionScript, which lacks a built-in seede... |
I am using a library that returns a JSON object (as a string, but I think that's standard), and I would like to store the contents of this object into a local database.
I'm fairly fresh-faced in terms of interfacing with DBs, but I can find my way around. I was using a MySQL database to store the data, but this involv... |
I am thinking about releasing my premium (commercial) project as an opensource project, but I am not sure how the user might benefit, how I will benefit and which license will I use.
I really need to know anything possible about this step...
|
We have a large "legacy" C++ code base on which no static analysis is run at the moment.
Every now and then, we are thinking about at least using cppcheck, maybe via Visual Lint. (I've also briefly checked the sites of Coverity or Klocwork or RedLizards/Goanna.)
However, I do expect a huge number of found warnings and... |
I am working on a desktop application which is in German. And this isn't comfortable for me to see the words and go to Google translate to translate it.
So I am looking to make extra effort for myself to try to translate the App into English using Google translate web service. But the Application doesn't use a Spring o... |
How should I bring some very rusty C++ up to date, as I'm sure the language and best practices have evolved? I realise this might be close to being off-topic so let my clarify some details. About 10 years ago I think I was quite a good C++ programmer, I'd devoured the Scott Meyers books, I could solve the puzzles in th... |
No question that the majority of debates over programmer tools distill to either personal choice (by the user) or design emphasis, that is, optimizing design according to particular uses cases (by the tool builder). Text editors are probably the most prominent example--a coder who works on Windows at work and codes in ... |
I was thinking about that, and I had some doubts.
When I declare an interface, for example:
public interface MyInterface
{
public void method1();
public void method2();
}
Could these interface methods be considered abstract? What I mean is that the concept of an abstract method is:
An abstract method is a meth... |
I recently had to work with an SDK that had a lot of crazy parts*. Not using the SDK was not an option as it had to talk to some third party software.
What is the best way to deal with the crazy code? I genrally used static methods to convert between sensible data types to the format they required (ie bool to yesNo). ... |
Have you ever used Jython in bundle with tomcat in any serious, production-ready service?
What pros and cons can you name?
Is it worth trying if all guys in team has no problems with coding on Java, but know python as well?
|
Here is a quote from a training manual at work regarding SLIM and software estimation:
Notice also, there is a correlation between Effort and Defects. This means, the more people there are assigned to a project of a given size, the more Defects there will be.
Effort is person-time (person-years, person-months) for th... |
If my memory serves me right, there was a time when using JavaScript for web development was hugely frowned upon, because among other things, it was a privacy and security concern for users and some people just had it off.
Nowadays, you can hardly see a major website that doesn't use JavaScript, and many websites will... |
Possible Duplicate:
Why isn't functional programming more popular in the industry? Does it catch on now?
I've been working as a J2EE developer for the past 3 years and wanted to learn something different, so I started learning about functional programming by going through lots of articles and books (SICP, Paul Graha... |
We are starting a new project and the board/stakeholders are asking for metrics to check the team performance.
As a junior ScrumMaster I told them:
about the Velocity and BurndownChart
that we can chose any type of metrics as long as they are team based and not individual, they do not push people to act awkwardly / co... |
I'm the only developer at a small company. I've slowly moved into development here; until ~4 months ago 50-75% of my time was spent on operations. Now, 50-75% of my time is spent on development, with the rest split between operations and various IT stuff. I regularly end up working 50+ hours a week.
I inherited some ra... |
I was thinking of this because I was trying to write an extension for an existing 3rd party software, and their database is horribly denormalized. I needed to use their existing tables and add a bunch of new fields.
I had the option of either creating new tables in their design style (which consists of almost all the ... |
I'm struggling to find guidance on integrating various applications, usually based on a Domain Model architecture. The applications often expose and consume each others WCF services, but this tends to be done in a rather hap-hazard way. I'm quite certain that the domain should not access another applications services, ... |
I'm building a very simple iOS game that doesn't require any fancy OpenGL; I'd like to stick with Core Graphics & Core Animation. I'd like to make this a fullscreen game, and my question is of ViewController hierarchy + management:
It seems as though I should have two types of ViewControllers: Basic VCs for navigating... |
Are there any software packages out there for generating a nice looking users manual for small projects? I'm not talking about source documentation. I want to create an end users manual that doesn't look like I spent 20 mins in Microsoft Word.
|
I am not sure if both terms can be used interchangeably. Maybe there is some academic distinction in computer science which is not relevant for day-to-day programming? Or can I use both term interchangeably without being wrong? Maybe it depends on the context in which I use both terms?
Edit: On reason why I find both t... |
Due to health condition of one of the scrum member, he has to leave the team.
My question is, do I need to start a sprint planning session again? or change the burn-down chart? or ask all the team members to bite the bullet and do extra work to meet the target?
Thanks
|
I am working with server side code.
I have a request object that handles request data validation and filtering.
I have a view object that uses template files to generate html for output. the template files are mostly html. you can put one view object inside of another view object in order to assemble a page piece by pe... |
Possible Duplicate:
Does making source code available affect your ability to generate revenue?
I'm developing a web application (it's not a website, it's a closed to public management application) and I'm really unsure about how should I sell it.
The application doesn't cost enough to allow me to ask this to a lawye... |
My new site will allow for 'normal' registration or the use of Facebook openauth.
I have many tables that link data to a user_id.
Imagine one of my users with information on my site forgets they used Facebook to create an account.
They create a second 'normal' account and use the site for a while.
So the user has data ... |
Possible Duplicate:
How can I improve my problem-solving ability?
When starting a programming task, I have trouble breaking it up into steps and figuring out how to go about solving it.
I want to get better at it. Should I to focus on data structures/algorithms? Or should I be studying more design patterns?
What d... |
If an application is made during education using an IDE that had an Educational License (provided by the institute), and later the developers decide to release it in the market as a product:
Is it legal, and valid to do so?
Is it valid to build that application through the free or commercial version of the same IDE, o... |
The fact that principles like KISS and YAGNI are so popular, speaks clearly about our inclination to make things too complicated.
Is this inclination a part of our nature or is it a part of our culture?
|
What is the relation of BDD and TDD?
From what I understood BDD adds two main things over TDD: tests naming (ensure/should) and acceptance tests. Should I follow TDD during development by BDD? If yes, should my TDD unit tests be named in the same ensure/should style?
|
Sometimes it comes to me that the biggest challenge for an engineer when he find his application getting worse in performance is lack of enough information.
Imagine that you go through the weekly performance report from your application's access log, and find you get much lower response times from July. All you can do... |
I am trying to develop an ecommerce solution but stuck on the categories management issue and don't know how to proceed further.
See, A category will have a parent category, which in-return can also point to another parent and so on, until the root category is reached. I tried to design the following database schema, ... |
One of the main goals of software development companies is to increase their Bus factor This is also advocated in a talk that was organized by Google.
That means that you should code and document everything in a way that if you're run over by bus tomorrow, the project can still continue. In other words, you should make... |
I hear a lot from TDD practitioners that one of TDD's advantages is that it forces developers to follow SOLID principles (Single responsibility, Open-closed, Liskov substitution, Interface segregation and Dependency inversion). But as for me it is enough to just write some tests (unit test primarily) to understand it i... |
Whenever I do from 'x' import 'y' I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?
|
Possible Duplicate:
If you develop with ASP.NET, which other technologies do you use?
I'm currently learning C#, but I've noticed that there is a lot of demand for ASP.NET developers.
I purchased the book 'Beginning ASP.NET 4: in C#' by Wrox. I will start with that book and finish the web project provided in the boo... |
I am writing a class which consists mostly of data storage responsibilities. The context for the use of this class will, in general, be retrieving an array of objects of this type for display later. In light of that, I've created a static method, build_question_array(), which queries the database, instantiates the obje... |
We are learning about methods in class, and I am having trouble especially with the concept of static vs. dynamic.
Wikipedia says this:
Methods can be bound to a class at compile time (static binding) or to an object at runtime (dynamic binding).
Can anyone describe what they mean here?
|
I'm a little curious about the reason behind the Windows header file declaration styles.
When I read them, I see multi-line declarations such as the following:
WINBASEAPI
HANDLE
WINAPI
GetStdHandle(
IN DWORD nStdHandle
);
What is the primary reason why they're not written as something like:
WINBASEAPI HANDLE W... |
Consider the formal definition:
f(n) = O(g(n))
Why is it not:
f(n) = O(f(n))
or
f(n) = O(c*f(n))
since for the Big O analysis, f(n)=2n and g(n)=n are identical?
I am confused by the function f(n) using another function.
Update
Why isn' t the definition as follows:
f(n) <= c*abs(g(n))
What does the ... |
As far as I can see consuming SOAP requires a SOAP stack, so it is harder for your clients to consume i.e. they need to ensure that they have a SOAP stack in place that formats the POST data and the headers correctly and then gives you back some data structure, whereas with REST you just make an HTTP GET request with t... |
This question is subjective but I was just curious how most programmers approach this. The sample below is in pseudo-C# but this should apply to Java, C++, and other OOP languages as well.
Anyway, when writing helper methods in my classes, I tend to declare them as static and just pass the fields if the helper method n... |
Basically how to denote that class foo is from a different server than class bar ?
|
Short Question
Is it necessary to add the function header comments for simple accessors and mutators?
Example
u8 OBJ_get_state_x(void) {return obj.state_x;}
void OBJ_set_state_x(u8 x) {obj.state_x = x;}
Addition Thoughts
The object (OBJ) overall contains very minimal logic (if any). Its sole purpose is to main... |
I'm taking my second course on Java. We are getting into data structures. I have done an assignment on a linked list, and now a stack. I had a hard time with the linked list. The stack gave me a little trouble, but was much easier.
Should I be worried about having a hard time with these algorithms and data structures? ... |
Are Small Basic (SB) and Microsoft Small Basic (MSB) related or is this a confusion based upon similar names?
I have read that SB is written in C and is GPL. The oldest date on SourceForge is 2004 but the facebook group states its over 10years old. MSB is written in .NET 3.5 by Microsoft DevLabs. Wikipedia states it or... |
Since no one prints anything any more, the concept of actual project documents (meaning, a monolithic piece of formatted text) seems like it could be improved on. Problems with documents are things like Word version incompatibilities, endless messing around with templates, the fact people hate reading them...
I'm wonde... |
This question is inspired by this one. What was the initial goal of inventing SOAP? Why was it invented when we had old kind HTTP and REST?
|
I am building a web application and users will be able to upload pics. And I want to store these images into files instead of storing them into the DB.
But if I saved these pics into relative paths to the web application, they will be removed with each build.
So how I can handle this and the best practices related to t... |
I started an open source project in 2010 and the project is gaining some visibility. We are now 2 active committers and we hope to engage more contributors in the future.
We received today the second offer to "partner" with a company. This time is a hosting company that wants us to offer a hosting plan with a automatic... |
In a simple application I am creating there are Admin and users where admin can create users. Right now I am creating Classes that encapsulate database CRUD calls with methods.
For example: adminStore.CreateUser(userObject)
will persist that user object into the Database and return the object. I am now confused as to w... |
I am sorry if this a wrong place to ask the question.
I saw the usage "Teardown report" for a product
What does it mean?
|
There is a technique in which you don't end the response and this allows you to send content to the client in chunks like pieces of javascript or maybe xml document that can be parsed on the client side and give an effect of updating something in real time instead of polling the server again and again.
Was there such a... |
We're currently modifying out development process and I'm wondering if we should try to keep a 100% of our commits peer reviewed.
What is your experience regarding code reviews?
Do you tend to spend "a lot" of time on them (say 1/2 hours per day), or just skim over for 5/10 minutes max?
Do you have a fixed amount of ... |
If you've planned a number of user stories for a sprint and one candidate story is dependent on some external provider delivering something to your team. For example an online service provider adding a new API call to their system or enabling your test account on their system or suchlike.
You know it's coming 'soon'.... |
People who are used to garbage collected languages are often scared of C++'s memory management. There are tools, like auto_ptr and shared_ptr which will handle many of the memory management tasks for you. Lots of C++ libraries predate those tools, and have their own way to handle the memory management tasks.
How much t... |
I'm not sure if this a common scenario or not, but I have a need along the following lines:
I have an object (I'll call it node) and this object has methods X, Y, and Z. I want to be able to have subscribers be notified if the methods are called in a specific order with specific timing (a range of time would be ideal)... |
Two part question:
I am working on a project where the webservices all return a generic object. On success, that object then contains the data returned from the webservice along with additional information such as status messages or qualifiers. On failure, the object contains no data and error messages. What is the na... |
Agile software development relies heavily on a work item type called user stories. For example, you have a backlog full of user stories and you can select a few of them to work on during the next sprint.
But where and how do you find user stories to put into the backlog? There is a popular technique for doing that ca... |
From time to time, I'll have a class in Java that takes a multitude of parameters, however, sometimes when I am creating an object of this class, I don't need to use all the parameters. As of now, I usually set the parameters to null or 0 depending on the type. However, would it be easier if I just created chained me... |
Consider a Python class with a number of @staticmethod methods and few instance methods. The static methods don't accept an instance of the defining class as parameters.
Do you think that all these static methods don't belong to the class and should be factored out?
If yes, which approach would you take to clean up su... |
It seems that frequently in large projects the software is still released with the bug tracker full of bugs. Now I can understand feature requests, but several times I've seen large numbers of bugs still unresolved, not reviewed, or not finished but a release is still pushed out.
Why? Why would an open source project ... |
Two things I've noticed in the past week that make me wonder:
An interview where my Perl skills were reviewed. I always use C-style for loops and use map about once in every 10,000 lines of code, so I almost always have to reference it before using it. While I can interpret others code using that, it's not my style an... |
Maybe someone can share from his experience about developing an application that is meant to scale big time where just throwing more money at better hardware isn't a realistic option using development methodologies such as SCRUM and XP.
Did you need to rewrite substantial parts of your app
because of current framewor... |
My programming classes in school were C++, but I ended up working a job doing C# for the last few years. If there was a position that required say 1 or 2 years experience in C++, would my experience in C# be worthy of consideration? How effective could I be in such a position? So do I need to start out as an entry-leve... |
We have a system here. Recently there is a wrong calculation in one of the number in the report generated by the system. Through out our experience, we've never encounter any problem/error in this system for some years.
Because the writer of this system had already gone, we can hardly trace the programs. But we've veri... |
I learned some javascript as my introduction into programming, and now I'm trying to move on to Java and Python and from there to c++, c#, etc.
I've been caught up with schoolwork, so I've had very little chance to learn anything yet, but I have been lurking around SO looking for easy Java questions that I might have ... |
We've built up a substantial number of unit tests for our main program over the years. Several thousand. The problem is that we don't have a clear idea of what tests we have because there are so many. And that's a problem because we don't know where we're weak on tests (or where we have duplicates).
Our app is a report... |
Unfortunately, somebody has taught our upper management the word "Agile" and now they want us to move towards it. I have a peripheral understanding of agile (in principle) but have never used it in practice. From what I know, it will not be a good fit for our organization. Right now, things are pretty grungey. Here's h... |
It's not really a technical question, but there are several other questions here about source control and best practice.
The company I work for (which will remain anonymous) uses a network share to host its source code and released code. It's the responsibility of the developer or manager to manually move source code ... |
I currently have a project at my hand that I'll leave soon (PhD work) and should be left in an understandable form since it is likely to be taken up, though it is not known yet by whom and when.
Therefore, I'd like to leave at least some documentation how it is built. The project consists of 7 packages, each of which i... |
Most (all?) TDD resources show you how the cycle goes:
Write Test
Check Test
Write Production Code
Check Test
Clean up Production Code
Check test
They also - to me - seem to imply that all code is covered by tests.
However, reading posts like Writing Great Unit Tests: Best and Worst Practices (for example, linked to... |
On my current project we have two or three engineers who are tagged as Tier 2 or Tier 3 support. We often work directly with customers to gather detailed information about bug and issue reports.
Frequently we get cross-talk in the email threads and conversations about issues. While discussing Issue #1, someone pipes up... |
Well... I was hired because I did not take a comp-sci or engineering course, however I was really good at coding. My job is doing the heterodox stuff when needed... You know, the guy that sometimes has to use a goto, or invent some bizarre technology.
When I started my job, I blasted though stuff I needed to do, then I... |
Preferably something that is a combination of affordable and close to real world robotics programming and will allow me to program it with C++.
|
I'm starting at this new company as a scrum master, and they want to dive into Scrum, which is nice and all, but they only have enough people (4) for one team.
The road map includes delivering a new product and maintaining the old one, so what should we do?
2 products backlogs for 1 team? How should we do planning in ... |
What is a good attitude from developers when discussing new features, and namely, non critical/questionable features?
Say you are developing some sort of Java like language, and the boss says: "We need pointers so that developers could fiddle with object memory directly!"
Should the developer shoot down the idea becaus... |
What factors should be evaluated when determining a desktop software price?
|
In the book "Hard Code" by Eric Brechner, he states,
Lying is one of a handful of valuable process canaries that can warn
you of trouble.
I've heard a dev or two toss around the old "canary". What is it?
[Google didn't answer it for me. Perhaps my keywords were a poor choice.]
|
I recently had to investigate a field issue for our large enterprise application. I was horrified by the logs that I had to comb through in an attempt to find the problem and at the end of the day the logs did not help at all identifying/isolating the bug.
Note: I understand not all bugs are discoverable through logs.... |
I sometimes hear that having too many "manager" classes in your program's design is code smell and add an unnecessary layer of complexity. To me it makes sense that people want to use manager classes for manipulating and controlling objects from a context that makes sense to them, but figuring out how to make a solutio... |
I have a multi tenant ASP.NET MVC website and all client specific text is stored in resource files. Every time someone wants to change text I have to jump through hoops and fill out forms and let someone else put it in production. This was fine with 2 clients, but now we have 6 and are looking to roll out to 40+. I ... |
When starting a new project, my boss always avoids to make fixed decisions. He is usually saying: ok, just start to write something and be as generic as possible. When you're finished we look how we continue. His argument is basically that you never know and "agile development".
To keep the question as generic as possi... |
These two words are completely synonymous for me, but I wonder if there's actually a useful semantic difference that I can incorporate into coding/naming conventions/process.
|
Boost has recently become available on the project on which I'm working, and I don't have much experience with it. The library has so many parts and features that it's hard to know where to get started in learning it - especially since I'll be trying to learn it while making production code (so it can't slow me down to... |
The kind of OpenGL windowing that I refer to is like GLFW, GLUT, SDL, etc.
Imagine three C++ programs: (ignore syntax)
Game A:
class Game
resize()
keyEvent()
Game B:
resize()
keyEvent()
Game C:
class Key
event()
class Display
resize()
In A, everything is in one class, in B nothing is in a class, and ... |
It's time.
You've worked long and hard to add your vision to the open source project you love, on which you've worked, debated, and to which you've contributed inestimable amounts of code and insight.
But it's not going to work out with the existing developers.
You finally need to fork the code.
How do you do this and ... |
Here's the syntax for iterators in Java (somewhat similar syntax in C#):
Iterator it = sequence.iterator();
while (it.hasNext()) {
System.out.println(it.next());
}
Which makes sense. Here's the equivalent syntax in Python:
it = iter(sequence)
while True:
try:
value = it.next()
except StopIteratio... |
I do contract development on the side. You could say that I'm a contract developer? Considering I've only ever had one client I'd say that's not exactly the truth - more like I took a side job and needed some extra cash. It started out as a "rebuild our website and we'll pay you $10k" type project. Once that was comple... |
Why is Swing preferred over AWT?
Which Swing component could be used for playing a video on it?
|
What is the benefit of studying bitwise operators (Bitwise Not, Bitwise AND, Bitwise OR, Bitwise XOR, Left Shift, Signed Right Shift, Unsigned Right Shift etc.)?
Will we really use these operators in programming?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.