instruction stringlengths 34 19.9k |
|---|
There have been questions similar to this, but my question is HOW exactly do you showcase your code when going to an interview? Do you show screenshots, or do you bring the actual code? Do you take the whole project with you, or just that bit of code?
|
Possible Duplicate:
I’ve inherited 200K lines of spaghetti code — what now?
I have been recently handled a giant multithreaded program with no comments and have been asked to understand what it does, and then to improve it (if possible).
Are there some techniques which should be followed when we need to understand ... |
Should I be studying big softwares written by other people in our company? My work may be a small sub module on the top of that software, and I may not be required to know what goes beneath the hood,
but
Does understanding other people's code grow my knowledge about programming methods or anything else?
|
Bigger companies usually have the problem, that it is not possible to write all programs employees want (to save time and to optimize processes) due to a lack of staff and money.
Then hidden programs will be created by some people having (at least some) coding experience (or by cheap students/interns...). Under some ci... |
Inspired by this question Using third-party libraries - always use a wrapper?
I wanted to know what people actually consider as third-party libraries.
Example from PHP:
If I'm building an application using Zend framework, should I treat Zend framework libraries as third party code?
Example from C#:
If I'm building a de... |
I am new to AJAX and trying to understand a question I've been given:
A HTTP request is generated by a form which contains some drop-down list. When the form is submitted, a new web page is displayed with some relevant text information (which is dependent on the list item selected).
Now, the same parameters are sent to... |
How does a browser determine that a script has run for too long ? Is it actually configurable through some advanced settings ?
|
I realize that I know essentially nothing about the way fonts get rendered in my computer.
From what I can observe, font rendering is generally made in a consistent way throughout the system. For instance, the subpixel font hinting settings that I configure in my DE control panel have influence on text which appears on... |
I am using yED to build an application flow-chart, and I can't figure out a 'nice' looking way of representing that a GUI's call to spawn a process loops back to the GUI process once it terminates, other than drawing another arrow to the GUI process.
Is there a better way of presenting a process looping back to its par... |
Problem Link - http://www.iarcs.org.in/inoi/2009/zco2009/zco2009-1a.php
You have to find the path with the maximum weight, from the top-left cell to the bottom-right cell. It could've been solved with a simple Dynamic Programming approach, if it were not for the special condition - you are allowed at most one move that... |
I understand the differences between interpreted and compiled languages, but if someone could provide some examples of situations when one is likely to use interpreted languages over compiled languages, as well as situations when one is likely to use compiled languages over interpreted languages, it'd be really helpful... |
I got the job as a Consultant in a firm that has 3 other programmers. My job is to rewrite all the old system in Java, Spring etc but the staff programmers only know perl and the manager does not know any programming.
I am trying to get them to understand that I have 6 projects to rewrite here but no one has design doc... |
Problem Link - http://www.iarcs.org.in/inoi/2011/zco2011/zco2011-1b.php
The task is to find the maximum score you can get in the game. Such problems, based on games, where you have to simulate, predict the result, or obtain the maximum possible score always seem to puzzle me.
I can do it with recursion by considering t... |
I'm working on a rails app, and in rails queue is a reserved word. I need to make a Queue model for my app, and I'm stuck because I don't know what else to call it.
Has anyone else run into this before, and if so what did you call your Queue that can't be called a Queue?
|
Is an ID field is always needed in database tables?
In my case I have a user with firstName, lastName and email fields. email is unique and not null, so it could be used as an ID, right? So in that case, could/should I try to remove the ID?
Also I want to have another table which extends this one. Let's say its called ... |
I am a beginner developer and I have been wondering from the start, how do professional use tools like GIT and Subversion (I don't have a very good understanding about these tools), to fulfill their project's needs. If they do use it, how would I set up something like that?
My applications are not so large and I am not... |
I want to encrypt an INI file using a Delphi program on a Windows PC.
Then I need to decrypt & access it in C on an embedded system with little RAM.
I will do that once & fetch all info; I will not be continuously accessing the INI file whenever my program needs data from the file.
Any advice as to which encryption to ... |
It would be great if some IDE offered the way to right mouse click when a function is called and have the immediate option to jump to the function when it is defined.
Is this possible in Javascript?
Maybe I've just been oblivious - is there a name for this technique?
|
My company (let's call them Acme Technology) has a library of approximately one thousand source files that originally came from its Acme Labs research group, incubated in a development group for a couple years, and has more recently been provided to a handful of customers under non-disclosure. Acme is getting ready to... |
I was asked by a colleague to explain clearly the difference between ordinary development and research and development (R&D) and was unable to do it. After reading Wikipedia, I still don't have the precise answer.
According to Wikipedia (slightly modified):
There are two primary models:
In one model, the primary func... |
If I use EPL licensed software ( namely Eclipse jars ) in an application, do I have to give the users the source code and the right to redistribute? If that is not the case, what rules should I follow if I use EPL licensed software libraries in an application that I wish to distribute?
|
I am pretty inexperienced with working in agile projects but I have tried it a few times and I always run into this problem when estimating a task.
Do we bring into the estimate the number of developers that will work on the task?
Let me explain:
Task A is estimated to one time unit and developer 1 will work on it.
Tas... |
I have this doubt many years. I am wring some code to achieve some functionality. For example I am writing 20 lines of code to achieve the functionality and my co worker writing the code for the same functionality with just 5 lines. Since he used some looping statement to achieve that, but that code will execute around... |
I'm creating a framework/library for a rather specific use-case (data type). It uses diverse spring components, including spring-data. The library has a set of entity classes properly set up and according service and dao layers. The main work or main benefit of the framework lies in the dao and service layer.
Developer... |
I want to make a simple, proof-of-concept application (REPL) that takes a number and then processes commands on that number.
Example:
I start with 1. Then I write "add 2", it gives me 3. Then I write "multiply 7", it gives me 21. Then I want to know if it is prime, so I write "is prime" (on the current number - 21), i... |
We always make 2 documents the SRS (Software Requirement Specification) and the FS (Functional Specifications) documents for the coders aka programmers.
As I have examined the SRS is more like containing both functional and non-functional requirements as compared to the FS that deals only with the functional requiremen... |
I would imagine the reason was fast, array like access to the character at index, but some characters won't fit into 16 bits, so it wouldn't work...
So if you have to handle special cases anyways, why not just use UTF-8?
|
Does it correct way to have two repository inside one service and will it be an application or domain service?
Suppose I have a Passenger object that should contains Passport (government id) object. I am getting Passenger from PassengerRepository. PassengerRepository create request to server and obtain data (json) tha... |
I have a long experience with SQL, but recently began working with datawarehouse and OLAP technologies: building fact and dimension tables, that then are queried using MDX (MultiDimensional eXpressions).
The problem is that MDX works with a completely different logic compared to SQL, and it's a whole new learning curve... |
I'm currently trying to make a case for adopting dependency management for builds (ala Maven, Ivy, NuGet) and creating an internal repository for shared modules, of which we have over a dozen enterprise wide. What are the primary selling points of this build technique? The ones I have so far:
Eases the process of di... |
I know that operating systems facilitate inter-process and inter-thread data sharing. I want to know about the mechanisms used to facilitate such sharing. I read about "pipes". What are the other ways?
|
I work on a team of three - five developers that work on an ASP.net web application remotely. We currently run a full local database from a recent backup on all of our machines during development. The current backup, compressed, is about 18 GB.
I'm looking to see if there's an easier way to keep all of our local copie... |
I've programmed in both C# and VB.NET for years, but primarily in VB. I'm making a career shift toward C# and, overall, I like C# better.
One issue I'm having, though, is curly brace soup. In VB, each structure keyword has a matching close keyword, for example:
Namespace ...
Class ...
Function ...
... |
I'm extremely new to cloud-computing, Linux, and PostgreSQL, so if this is a stupid question, I apologize.
I've managed to create an m1.large instance running Ubuntu 11.10, connect via Putty SSH, and install PostgreSQL (sudo apt-get install postgresql), but that is as far as I've gotten.
My goal is to run several pytho... |
I've been following the convention of adding created and modified columns to most of my database tables. I also have been leaving the modified column as null on record creation and only setting a value on actual modification.
The other alternative is to set the modified date to be equal to created date on record creati... |
As I've been developing my position on how software should be developed at the company I work for, I've come to a certain conclusion that I'm not entirely sure of.
It seems to me that if you are programming in C++, you should not use C style anything if it can be helped and you don't absolutely need the performance imp... |
I need to provide a quote to an external client for some software. I'm looking to use agile just for initial requirements building (which I'm experienced in from a developer perspective) but I need to do everything this is just a one man job. The client are having a hard time working out what there requirements are and... |
Problem Link - http://www.iarcs.org.in/zco2013/index.php/problems/ROUNDTABLE
It's dinner time in Castle Camelot, and the fearsome Knights of the Round Table are clamouring for dessert. You, the chef, are in a soup. There are N knights, including King Arthur, each with a different preference for dessert, but you canno... |
Many modern programming languages support some concept of closure, i.e. of a piece of code (a block or a function) that
Can be treated as a value, and therefore stored in a variable, passed around to different parts of the code, be defined in one part of a program and invoked in a totally different part of the same pr... |
Possible Duplicate:
Alternatives to type casting in your domain
I've run into this issue in a number of places and have solved it a bunch of different ways but looking for other solutions or opinions on how to address. The scenario is when you have a collection of objects all based off of the same superclass but you... |
Let me preface by saying that knowing some elementary music theory and music notation may be helpful in grasping the problem at hand.
I'm currently building a Music Notation and Tablature Editor (in Javascript). But I've come to a point where the core parts of the program are more or less there. All functionality I pla... |
We are doing some refactoring to a 20 years old legacy codebase, and I'm having a discussion with my colleague about the comments format in the code (plsql, java).
There is no a default format for comments, but in most cases people do something like this in the comment:
// date (year, year-month, yyyy-mm-dd, dd/mm/yyyy... |
I have tried to design the datastore schema for a very small application. That schema would have been very simple, if not trivial, using a relational database with foreign keys, many-to-many relations, joins, etc.
But the problem was that my application was targeted for Google App Engine and I had to design for a datab... |
I'm working on a git workflow to implement in a small team. The core ideas in the workflow:
There is a shared project master that all team members can write to
All development is done exclusively on feature branches
Feature branches are code reviewed by a team member other than the branch author
The feature branch is ... |
I'm coming from a web forms n-tier background into ASP.NET MVC projects, and I'm wondering what the best practices are for separation of the components of MVC into different libraries (or not to) in the way one might with an n-tier model. Most of the sample apps I have seen only had one project file and objects were se... |
Should I put unit testing stuffs in a separate repository, not in the same repository as the programming library?
So I reference the programming library as submodule.
But most open source projects that I have seen do not organize the projects like what I mention above.
Can anyone explain which approach is better?
|
As a team lead of about 10+ developers, I would want to promote code reuse. We have written a lot of code-- a lot of them are repetitive over the past few years. The problem now is that a lot of these code are just duplicate of some other code or a slight variation of them.
I have started the movement ( discussion) on... |
Let's say I have a procedure that does stuff:
void doStuff(initalParams) {
...
}
Now I discover that "doing stuff" is quite a compex operation. The procedure becomes large, I split it up into multiple smaller procedures and soon I realize that having some kind of state would be useful while doing stuff, so that I ... |
I saw that Java 1.2 is also known as Java 2. Do "Java 1.x" and "Java x" (for example "Java 1.6" and "Java 6") refer to the same version of Java?
And if yes, why the need for this duality?
|
I need to implement something similar to a license server. This will have to be installed off site at the customers' location and needs to communicate with other applications at the customers' site (the applications that use the licenses) and an application running in our hosting center (for reporting and getting licen... |
In objective C, I have a situation where I would like to have an abstract protocol (interface) with 5 methods and 4 properties, but at the same time, I'd like to have a common implementation of 3 of those 5 methods.
So my question is, is it ok to
1) have just an interface declaration with all the method and property d... |
In several articles and books I learnt that "V-model introduced QA into SW development".
I would like to understand the point of such statement, as from my understanding, V model activities (verification and validation) cannot be considered as QA as both deal directly with product control, no matter if it's static (ver... |
I've been thinking about unit testing best practices and have come across the one assertion per unit test rule. I can see where this idea would help to isolate pieces of complex operations or verification when you have code like so:
private Place place;
@Test
public void test_whiteHouse(){
place = new place(KnownP... |
I am developing an app in DDD manner. And I have a little problem with it.
I have a Fare (airline fare) and FareRepository objects. And at some point I should load additional fare information (from a server, call server api) and setup this information to existing Fare.
I guess that I need to create an Application Servi... |
Some time ago I have read two different books and each of them gives totally different answer for the question if it is a good pattern to define constant values in the interface (in java).
So I am curious of your opinions with some reasonable arguments.
Is it a good habit/ pattern to define constant values in interface... |
Once in a while, a co-worker will check-in bad code which blocks my application from initializing properly.
To get around this problem quickly, I comment out the offending code. I then forget to uncomment the offending code at the time of my check-in, so I want to prevent this from happening again.
Do you have any sugg... |
When you learn new technology you spend time understanding its concepts and tools.
But when technology meets real life strange and not pleasant things happen.
Reuqirements are often far from ideal and differ from 'classic' scenario.
And soon I find myself bending the technology to my real needs. At this point I begin... |
For a simple example, assume your application sends out notifications to users when various events happen. So in the database I might have the following tables:
TABLE Event
EventId uniqueidentifier
EventName varchar
TABLE User
UserId uniqueidentifier
Name varchar
TABLE EventSubscription
EventUser... |
I roughly understand that cc, ld and other parts are called in a certain sequence according to schemes like Makefiles etc. Some of those commands are used to generate those configs and Makefiles. And some other tools are used to deal with libraries. But what are other parts used for? How are they called in this process... |
While using Selenium and Ruby to do some functional tests, I am worried with the performance. So is it better to add all test methods in the same Ruby file, or I should put each one in separated code files?
Below a sample with all tests in the same file:
# encoding: utf-8
require "selenium-webdriver"
require "test/unit... |
Is there an easier way to process multiple true/false states than using nested if statements? I think there is, and it would be to create a sequence of states, and then use a function like when to determine if all states were true, and drop out if not. I am asking the question to make sure there is not a preferred Cloj... |
Possible Duplicate:
Programmers forgetting syntax
Do programmers need a good memory?
I'm a new web developer. I began learning HTML/CSS around June of this year. I picked them up easily, now I'm moving on to Javascript. My problem is this. I understand the concepts that the training material are teaching but I f... |
Background:
3-5 developers supporting (and building new) internal applications for a non-software company. We use TFS although I don't think that matters much for my question.
I want to be able to develop a deployment pipeline and adopt continuous integration / deployment techniques.
Here's what our source tree looks ... |
Today some friends and I started discussing frameworks..
Some of us strongly believe that in 99.9% of cases, writing a new framework is a bad idea. We believe that probably some of the millions of frameworks out there should fit our problem, and if not, some hack, API, or configuration should be enough. If not, we thi... |
I've got a WinForms business application that evolved over the past few years. It's forms over data with a number custom UI experiences taylored to the business, so I don't think it's a candidate to port to something like SharePoint or re-write in LightSwitch (at least not without significant investment).
When I start... |
If my application is responsible for redirecting/doing a single sign on to a destination managed by a third party, in general, where should I draw the line for error handling during this process? If an error happens on the other application's end, is it reasonable for my stakeholder to expect the application I am worki... |
I have to add new funcionality in a web service legacy project and I'm thinking what is the best approach for a concrete situation.
The web service is simple: It receives a XML file, unmarshalling, generates response's objects, marshalling and finally it sends the response as a XML file. For every XML files received, t... |
I have a number of open-source projects that have gotten some significant usage and would like to find co-maintainers so that I am not a bottleneck when it comes to maintenance and support requests and to get other perspectives on how the project should evolve.
Where should I look for co-maintainers, what should I look... |
I sometimes create 'Util' classes which primarily serve to hold methods and values that don't really seem to belong elsewhere. But every time I create one of these classes, I think "uh-oh, I'm gonna regret this later ...", because I read somewhere that it's bad.
But on the other hand, there seem to be two compelling (... |
In a traditional MVC application, which component (model, view, or controller) is responsible for reading/writing the model to/from disk?
|
When I took the Realtime and Concurrent programming course our lecturer told us that when writing concurrent programs in Java and using monitors, most of the logic should be in the monitor and as little as possible in the threads that access it. I never really understood why and I really would like to.
Let me clarify.
... |
I've been working on some project on my free time for the past few months. Recently I've been approached by friends to build a startup, and this source code would be very valuable to us.
As a co-founder, this code could count for something in the company's capital, and be exchanged for shares. But how can you estimate ... |
I have an asp.net mvc "edit" page which allows the user to make edits to the parent entity, and then also "create" child entities on the same page. Note: I'm making these data transfer objects up.
public class CustomerViewModel
{
public int Id { get; set; }
public Byte[] Timestamp { get; set; }
public strin... |
I'm in a project for creating a game engine and eventually a game, and we need ideas on how to get our game out into the internet.
I had an idea with putting it onto the windows 8 store at a low cost(or free) in order to get the word out, but does the windows 8 store only support apps programmed in windows RT?
Our game... |
We are in the business of building customizable web applications. We have the core team that provides what we call as the core platform (provides services like security, billing etc.) on top of which core products are built. These core products are industry specific solutions like telecom, utility etc. These core produ... |
I have just started learning Android App Development a few days ago, with prior knowledge of C/C++, HTML and CSS.
This is the situation I am facing Repeatedly:
I am learning from a Video Tutorial Series, after each video, or each few videos, I say myself: Let's use what I have just learnt in the simple (and also "meani... |
Preparing myself also to ISTQB certification, I found they call static analysis actually as a static testing, while some engineering book distinct between static analysis and testing, which is the dynamic activity. I tent to think that static analysis is not a testing in the true sense as it does not test, it checks/ve... |
Why does the following code output y>x when clearly 1>-1?
unsigned x=1;
signed char y=-1;
if(x>y){
printf("x>y");
}
else {
printf("y>x");
}
Please explain this result.
|
I wish to project a collection from one type (Something) to another type (SomethingElse). Yes, this is a very open-eneded question, but which of the two options below do you prefer?
Creating a new instance using new:
var result = query.Select(something => new SomethingElse(something));
Using a factory:
var result = q... |
I am working on a small Delphi project, composed of two units. One unit is for the GUI, and the other for data management, file parsing, list iterating and so on.. I've already made a class diagram, and my workflow looks like hell- it's too complex, even for anyone to read. I've considered making a dataflow diagram, bu... |
Whenever I find myself wanting to use the isinstance() function I usually know that I'm doing something wrong and end up changing my ways. However, in this case I think I have a valid use for it. I will use shapes to illustrate my point although I am not actually working with shapes. I am parsing XML configuration f... |
I'm looking to determine the congressional district based on an address my user is providing. This will avoid having the user to look it up themselves.
Does an API of this sort exist?
Note
Through my attempts to find one, I've only come across these:
http://www.govtrack.us/developers/api
(not sure how to submit an an ... |
I was trying to install Windows Phone 8 SDK on my Windows 7 machine and it hit me with the 'supported only on Windows 8' message. I actually wanted to develop Phone 7.5 apps on Visual Studio 2012, impossible thing with the 7.1 SDK, so I thought 8 SDK will do the job.
As if it was not enough that the 8 SDK was controver... |
This is primarily a lein question about setting up a major project and its sub-projects, and is not intended to be a discussion question. Instead, I am interested in either a pointer to documentation or to a Clojure/lein best practices link.
I have a municipal property assessments application that splits two master fli... |
Over the years I've noticed a shift in attitude towards design patterns, particularly amongst the emerging generation of developers.
There seems to be a notion these days that design patterns are silver bullets that instantly cure any problem, a proliferating idea that advancing as a software engineer simply means lear... |
What do you do when you are writing a test and you get to the point where you need to make the test pass and you realize that you need an additional piece of functionality that should be separated into its own function? That new function needs to be tested as well, but the TDD cycle says to Make a test fail, make it p... |
We have been asked to add comments with start tags, end tags, description, solution etc for each change that we make to the code as part of fixing a bug / implementing a CR.
My concern is, does this provide any added value? As it is, we have all the details in the Version control history, which will help us to track ea... |
We have built a service (PHP Based) for a client, and are now looking to offer it to other clients as a hosted service. For this example, think of it like a hosted forum service, where a client signs up on our site, and is given a subdomain or can use their own domain, and the code picks up the domain, checks it agains... |
If I understand correctly, all ARC does is automatically add memory-management statements such as retain and autorelease in the proper places in a program. Is there any way to see all the memory-management statements that ARC automatically adds to a program?
|
Its seems like there are 2 ways someone can handle naming classes for elements that are designed to have multiple classes. One way would be:
<span class="btn btn-success"></span>
This is something that twitter bootstrap uses. Another possibility I would think would be:
<span class="btn success"></span>
It seems lik... |
Looking for non-conceptual/non-contrived reasons of when one would need to use an object with both a private copy constructor and a private assignment operator?
As in what problem does this technique/practice solve, that some other technique couldn't solve?
|
I work as a Java programmer, but C and C++ were always my favourite languages during studies. Unfortunatelly I don't have an opportunity to work with them as often as I would like to. As a result I sometimes get realized that I don't remember something quite important (today example: inherited protected members cannot ... |
My company has been conducting a lot of interviews lately for candidates with various experience levels, ranging from interns to senior candidates. We put our candidates through five 45 minute interview sessions where we try to ask a range of questions. One person always asks the same questions that test logic and comm... |
The development team has finished a website and my duty is to prepare a document so that other programmers can maintain the website with ease.
I have no experience in this and would like to ask what should be mentioned (document structure) in that report?
So far my idea is only to prepare a ERD diagarm for the databa... |
I'm a 19 year old student who really REALLY enjoys programming, and I'm hoping to glean from your years of experience here. At present, I'm studying PHP every chance I get, and have been for about 3 years, although I've never taken any formal classes. I'd love to some day be a programmer full time, and make a good care... |
I am writing a class library to serve as a managed .NET wrapper over a REST API. I'm very new to OOP, and this task is an ideal opportunity for me to learn some OOP concepts in a real-life situation that makes sense to me.
Some of the key resources/objects that the API returns are returned with different levels of deta... |
I was recently reading an answer to this question, and I was struck by the statement "The language is mature".
So I was wondering what we actually mean when we say that "A programming language is mature"? Normally, a programming language is initially developed out of a need, e.g.
Try out / implement a new programming ... |
I've just been reading through some basic design patterns,
Could someone tell me if the term "strategy pattern" only applies if your implementing a completely abstract interface?
What about when your children (concretes?) inherit from a parent class (the strategy?) with some implemented methods and some virtual and/or... |
In javascript, what is the difference in applying a toString() method to the primitive datatype, number like this
var myString = myNumber.toString();
and applying the same toString() method by creating a reference datatype equivalent, the Number class like this
var numberObject = new Number(myNumber);
var myString = ... |
So the problem is that I have a 3D projection of a rectangle that I want to turn into 2D. That is I have a photo of a sheet of paper laying on a table which I want to transform into a 2D view of that sheet.
Thus, what I need is to get an un-distorted 2D image by reverting all the 3D/projection transformations and gett... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.