instruction stringlengths 34 19.9k |
|---|
I just read a very compelling blog post from Scott Hanselman where he quoted colleague Erik Meijer as follows:
JavaScript is an assembly language. The JavaScript + HTML generate is like a .NET assembly. The browser can execute it, but no human should really care what’s there. - Erik Meijer
He goes on to give examples... |
I have two instances where I'd like to display information in a "justified" alignment - but I don't care if the values are switched in order. One example being displaying the usernames of people online:
Anton Brother68 Commissar Dougheater Elflord Foobar Goop Hoo Iee Joo
Rearranging them we could get exactly 22 charact... |
I am part of a developer team that works with many other teams to maintain and improve an application that has been in use for at least 15 years. When it was first built and designed, TDD was unheard of.
The application is fairly stable, and we rarely encounter a show stopping bug, but we do average about one or two bu... |
I want to develop a paperless application in .NET to reduce paper usage at my university. It will contain Exchange data and reporting.
What do I need to study before I start?
|
After being hacked companies often give numbers and details on how much of their data was compromised e.g "13K user and passwords".
After a possible intrusion how do you know what the hacker did in your server?
|
I am using the TFS 2010 SCRUM template.
So, let's say I have these user stories:
As a user I want the ability to add contacts directly from the Partner page.
As a user I want the ability to add contacts directly from the Project page.
Design wise the contact forms should be the same and so should the functionality. So,... |
I am currently using TortoiseHg on windows. I want my server to be available automatically as it is switched on.
But I need to do these:
when I set up a new project, I need to enter the localdir=URL pairs under the [web] each time I set up a project.
I need to run the hg serve or the Tortoise frontend each time to get... |
I am asked to create a pseudo-random number generator using the following algorithm:
The generator will generate every integer from 1 to N-1 exactly once
The algorithm for N=2^n
Initialize an integer R to be equal to 1 every time the tabling routine is called and then on each successive call for a random number:
set ... |
I watched Douglas Crockford's JavaScript talks recently, and at one point, he said that Microsoft did not consider JavaScript important because they saw the web as a passing phase of internet usage that would be supplanted by something loosely known at the time as "Internet X", and they wanted .NET to become "Internet ... |
I am a college student majoring in CS and I have yet to take an internship. I am wondering what the normal workday for a junior programmer is like. What is the normal daily work load like? Are there any specifics or office ettiquite to being a programmer that's different for other junior-level employees?
|
I am a computer science student currently in my 2nd year of bachelors. My problem is pretty straight forward yet still so far has not been self-resolvable. It is simply is that I am tired of programming. I don't know why but it just happened.
When I started my first course in c++ I was very excited. So excited that I f... |
I have a job interview tomorrow and it's for a junior web developer role. I am really excited about it because I really want to get my foot in the door in this industry.
I have been told how the interview will pan out. It will consist of a 45 minute interview with two of their developers and an 'aptitude for programmin... |
A company I'm going to interview with says they deal with huge amounts of data. How does one prepare for an interview where that fact is telegraphed beforehand as something that one really ought to ponder over?
Should I memorize maximum file sizes for Ext4 file systems or something? Or just be aware of the need for the... |
Imagine a system which has a number of functions and a number of users. A user must have rights to a specific function. Users may belong to a group. A group may belong to a group.
So as a simple illustration, user A has rights to function 1 and 2. User b has rights to function 2 and 3.
User A is in group1 which has rig... |
I just started working with Django coming from years of Spring MVC and the forms implementation strikes as being slightly crazy. If you're not familiar, Django forms starts with a form model class that defines your fields. Spring similarly starts with a form-backing object. But where Spring provides a taglib for bindin... |
In order to provide a more comprehensive educations for computer science students at my old university, I'm trying to develop an open source group they can contribute to.
What should I be looking for in project ideas so that they provide the maximum educational value for students who aren't very experienced in real-wor... |
I'm beginning to work on my first WordPress blog, however I've noticed most tutorials just have you do modifications (such as theme changes, installing plugins) on the production site. This worries me for a few reasons:
No backups
No version control
If you make a mistake, your production site is affected
Developing re... |
My manager, an enthusiastic programmer, is full of good energy to program. But he has a ... habit were he will be negligent in meetings if he can't understand the issue or argument. As a result, he screws up a couple of things.
For example:
When we were talking about the design process for REST web services, I suggest... |
I ask this from everyone's perspective. If you are in America and you outsource to offshore programmers, are you disloyal to your countrymen? If you are in India and you outsource to offshore programmers, are you disloyal to your countrymen? This question applies to all programmers and people in a position to hire prog... |
We are currently usign a roll-forward approach to DB changes, akin to Migrations, where each developer creates and checks in a script that promotes the latest version of the DB to a new state. Problems arise when multiple developers concurrently work on non-trivial tasks and end up making changes to the DB that interfe... |
I'm a SQL guy, but I know there is Not Only SQL databases - document-database mostly. As with most technologies there are pro and cons for each technology.
I've read some articles, but they were too theorical. What I would like is two real cases :
when a switch from relational- to document-database gave an improvement... |
i am glad to say that we are going to make Advanced Electron Forum (anelectron.com) an Opensource project, since we have a lack in developers and we think that this will make the development wheel turn much much better,
we are going to post the source code to public in github, but we are not sure about the license tha... |
When writing Cocoa Applications for MacOSX, you have the choice of either having a custom preference dialog, or using the Settings.app to manage your preferences.
Functionality wise, there is no difference at all between the two (apart from the fact that preferences in the Settigns.app can be accessed when your app is ... |
Anyone know if great enterprises (Google, Oracle, SAP) uses Functional Point Analysis to estimate software building effort?
|
As most projects use a C++ API, they deal with constraints of the API and constraints of the project itself.
I'm a beginner at programming, I don't like to use OOP at all because nobody clearly managed to explain to me WHY it's is so important to restricting yourself with private scope to prevent others programmers to ... |
I did my degree in physics and moved later into programming. I have two and a half years experience under my belt and like to think I write good code. I am, however, concerned that not doing a compsci degree has left holes in my knowledge. I would like to fill those up now since I know I want to be doing programming fo... |
Inspired by a question from SO: https://stackoverflow.com/questions/6623391/how-to-gain-control-of-a-5gb-heap-in-haskell
It can be a long debate about FP's numerous advantages and disadvantages, but for now, I'd like to narrow the scope to principal efficiency of FP on modern hardware.
Thesis:
Functional paradigm impl... |
I recently came across some code which generates an identity value for a key:
DECLARE @ID INT;
SELECT @ID = MAX(ID) + 1 FROM Person;
INSERT INTO [Person]
([ID], [FirstName], [LastName])
VALUES
(@ID, @FirstName, @LastName);
I brought this to the attention of a coworker who claimed that not using a built in au... |
Sometimes I spend ridiculous amounts of time (hours) agonizing over making code "look pretty". I mean making things look symmetrical. I will actually rapidly scroll through an entire class to see if anything jumps out as not looking "pretty" or "clean".
Am I wasting my time? Is there any value in this kind of behavior?... |
I participated in a set of interviews for a position in which I was hired recently. During the interview process I was interviewed 6 seperate times. 3 technical interviews and 3 situational / business interviews.
During my second (and most dificult interview) the interviewer, who is now my manager, asked me to provi... |
While developing in a group atmosphere and adding or modifying features in some code base. Is it considered offensive or impolite to reformat the previous developers code to bring it up to current coding standards? I understand that standards have changed, and will probably continue to change, but would any of you get ... |
Multiple clients can modify the DB and all need to be notified if a DB change occurs. Where I work, this is implemented with application threads that poll the DB every second or so. This doesn't strike me as a good way to do it, so I was wondering how do people usually handle this?
|
I'm considering sitting with the end-users and observing them while the work for a day to better understand the software requirements.
Before I try this, I'm hoping someone can provide a list of best practices, suggestions on when this approach is more/less suitable than simply interviewing the users, and notes from yo... |
I want to create a new application. It will basically be a Deep Zoom application that users can draw annotations on (that will save to a DB so other users can see those annotations.) At first it will just simply run in a browser. However, the app would be useful if it could be used by enthusiasts in the field, so abi... |
I've got a team of developers which are trying to write specifications/tests concurrently for different (and sometimes adjacent) parts of the system.
Typically, the person writing the specification/test is not the developer who will write the implementation and make the specification/test pass.
Here's the problem we're... |
I am involved with the development of a Windows application that has various screens. One of them takes ten seconds to appear with no spinner or other indication that the screen is loading. I consider this a serious performance issue but I seem to be the only one who is concerned.
Am I being overzealous? What is an ac... |
If you maintain many branches in your favorite version control system it is essential understand which branch for which indented.
In SVN you can put README on same level as trunk/branches/features dirs.
How about DVCS?
You can maintain ChangeLog. But with this approach it is hard get breif view that done in all branche... |
It was started with C# 5's new keyword "async". And now I see this async programming everywhere from Javascript to C++, mostly from Microsoft. And from various discussions I came to know, this is a very useful technique to avoid threading yet keep CPU working while other things are fetched form hard disk or network.
My... |
I want to automatically generate documentation for a java project, but I'd like to have my own custom styling for it.
As an example, take the stackoverflow api (method description page), can that be done by an automated tool? Can it "take me close" to that?
I wouldn't mind having to manually change a few things to achi... |
I just found myself writing the following comment in some (archaic Visual Basic 6.0) code I was writing:
If WindowState <> 1 Then
'The form's not minimized, so we can resize it safely
'...
End if
I'm not sure why I subconsciously use "we" in my comments. I suspect it's because I imagine someone stepping throug... |
I'm starting with BDD and this is my story:
Feature: Months and days to days
In order to see months and days as days
As a date conversion fan
I need a webpage where users can enter
days and months and convert them to days.
I have some doubts ...
Should I write my scenarios before coding anything or sho... |
I have read the licensing FAQ and from what I understood people are allowed to use Mono in commercial applications. However, I wonder if Microsoft can interfer with this in any way since they own the .NET Framework and, I suppose, every related patent. Can't that a tiny little bit dangerous?
Also, as a side question...... |
I am creating a main object, MACHINE, which will contain a diversity of several other objects -- AXIS, AMPLIFIER, ENDEFFECTOR, etc. The number of contained objects will vary depending on the MACHINE model object that I am using.
For example, a certain machine might have one AXIS and one ENDEFFECTOR; another 3 AXIS and ... |
From last one week i was searching for most suitable architecture for a new web application. To be honest i did web development for only 1 year (back in 2007). And from last four years i am working in C++. Now, suddenly i am assigned a task to search for best architecture for a new web application. During my search i c... |
I've been looking for a efficient and secure way of enabling multi-site capabilities to codeigniter for a while.
These two(one & two) articles I found pretty interesting, but they don't seem to offer a scalable way of doing it. Of the two, John Dennis Pedrie's(link two) method seemed to be more thought out for our purp... |
Quoted from Wikipedia:
A scripting language, script language
or extension language is a programming
language that allows control of one
or more applications and makes the
compiler of the language part of the
language runtime, and as a result,
enables code to be generated dynamically. "Scripts" are distinct... |
Question for lisp programmers:
Lisp code is lisp data, usually lists. Is there an advantage to code being lists over code being arrays?
Would macros be easier to write/faster to run?
You can assume that, in such a language (you could call it "arrap"), elements can be deleted from or inserted into arrays and that the a... |
From my understanding, the web interface was developed to use HTML because at the time it wasn't possible to simulate a desktop style application in the browser such as how Silverlight and Flash work, because of bandwidth limitations, and possibly processing power.
Why hasn't there in the past, and the present been a l... |
I'm a nub programmer, using python, and my current project is a chatbot for an irc channel I reside in. I wish to make it capable of keeping conversations organized, primarily between its self and one other person.
Right now, I'm creating a conversation object when the bot is initially addressed.
The object has the at... |
I am looking for a SAAS solution that offers project management, time tracking, invoicing and file sharing (to share with clients) as well as source control, work item management and team management for a programming team. In other words, a complete solution for a consulting programmer/programming team.
I am looking a... |
I was reading about memcache and one of the questions that I have for this moment is about 'measuring database load'. In this tutorial they are talking about a 'database load of 20'.
How can I measure the database load of a web application?
|
I am pretty good with C++, good as in I am comfortable with the language, I have read Accelerated C++ and done almost all the exercises.
However, I have a big problem. Do I need to learn C? I have never done C ever in my life. I just started with C++ when I started with programming. Probably cause I was always interest... |
I have a requirement to filter profanity out of users' submissions in a Java-based web application. The client is aware of both the Scunthorpe Problem and the Clbuttic Problem and have accepted the consequences. Please, I don't desire a debate on the merits of lack thereof of censorship.
There are two bits of data:
Th... |
I have the impression that more and more applications with a user interface use HTML+CSS+JavaScript client-side instead of a native GUI framework.
I wounder what are the most important driving forces for this? or in other words what are native GUI frameworks lacking to be competitive? e.g. is it easier to do some kind ... |
I have come across the expression software/feature bloat, but is this a real thing or should we rather be talking about things like performance problems, memory and disk footprint, user experience and on-demand installation? What am I missing here?
|
Possible Duplicate:
When should you call yourself a senior developer?
I often see offers for senior programmers and the rule of thumb seems to be that you need to have worked three years to become one. Duration doesn't mean much so what exactly is expected of a senior programmer? What should he be capable of doing? ... |
What are some common algorithmic optimization opportunities that everyone should be aware of? I have recently be revising/reviewing some code from an application, and noticed that it appeared to be running considerably slower than it could. The following loop turned out to be the culprit,
...
float s1 = 0.0;
... |
So, I have this idea for a huge game that would take years to develop if I did it on my own (with help from friends)
I've learned a lot about game programming, but nowhere near enough to start coding the thing itself.
It would still take at least two years if I started a business and hired programmers
How much will ope... |
From Wikipedia:
the term endian or endianness refers
to the ordering of individually
addressable sub-components within a
longer data item as stored in external
memory (or, sometimes, as sent on a
serial connection). These
sub-components are typically 16- or
32-bit words, 8-bit bytes, or even
bits.
I w... |
I want to learn new things. Initially I was a PHP programmer. Then I thought it was not enough.
Then I started learning Java thing. It took me 3 months to learn.
Java, J2EE, Spring, Hibernte, Spring Security, Spring Roo and many design patterns MVC and stuff like AOP, DI . I never knew that before but I got the idea wh... |
I'm a student with good knowledge in C programming and like to contribute any open source project which is developed in C. I searched SourceForge and selected 7-Zip because its widely used one and developed using C.
I thought to start first by fixing bugs (which was suggested by many people in their websites) and gone ... |
I generally include JavaScript files using the script tag as below.
<script type="text/javascript" src="somefile.js"></script>
I have seen some people using the language attribute as well.
Now-a-days I find many people omitting the type attribute. I have started to get a feeling that if JavaScript is the default scri... |
The idea of java3d is very interesting, but I don't see any desktop or web applications built using java3d. Where is it used and what perspectives does it have?
|
I was wondering what the standard/best practice is with regard to managing user-uploaded images.
Obviously there needs to be a way to limit file sizes, but what's the best and most common practice here -- limit the size of the image that can be uploaded by the user, or reduce the size once it's uploaded on the back-en... |
I've been reading the book "SQL and Relational Theory: How to Write Accurate SQL Code" by C. J. Date. I have no formal background in CS, much less relational theory. Combined with the fact English is not my first language, I'm having a little trouble to understand a statement. At one moment (page 17) the author states:... |
I been struggling to understand few concepts but no success yet. Can someone help me to understand that with simple example and definition please.
1 - Delegates in .NET
2 - Abstraction
3 - Three tier architecture
Thanks
|
I've been programming for about 2 years, and so far Java is all I know.
When I made the switch from BlueJ to eclipse I noticed my old projects ran much faster. What would be the reason for this, as far as I knew the executing of java byte code is handled by the JVM and I still had the same JVM after I switched. Other t... |
I like LaTeX, but I find its macro system and logic both complex and weak.
languages such as Schem/Lisp/Clojure are very good at macros. I imagine the entire document written in a lisp family language, which, when run, would emit LaTeX code and produce a document. Has this been done before? Any links?
|
I found many things when searching, but nothing that seemed both updated and complete.
In last quarter of 2010 I remember reading what were very sad news for me, as WebSockets were disabled in most (if not all? can't remember) modern browsers that supported it by default due to security concerns in the proxy protocol t... |
Is java used out of web and without GUI? To develop web applications you have to learn design stuff, html+css+javascript+ajax => it takes really a lot of time to learn it. Developing a GUI application also requires design skills. Is it possible to write something in pure java and what exactly?
|
I've seen that some of software systems have functionality of audit and log. Both of those functionality seem that they are just doing the same things - records all the users's actions behind the scene. There are respective tables of audit and log even exist in the database. If they are really doing the same things why... |
Regardless of programming language(s) or operating system(s) used or the environment they develop for, what should every programmer know?
Some background:
I'm interested in becoming the best programmer I can. As part of this process I'm trying to understand what I don't know and would benefit me a lot if I did. While... |
I always liked to ask myself "what's the first principle(s) of this?" after I learned the basic stuff of something (e.g. programming). It's an inspiring question, IMO, that can force you to think about the most important principle(s) behind something, especially a skill such as programming.
So, what do you think is the... |
Currently we have a Development server on which we write the HTML/CSS/JS code. We do not optimize our code using compressors/minifiers. So our deployment process from Development to Production is simply to copy the files on the Development server to the Production server.
But now we are planning to use compressors/mini... |
Google built a testing system that can infer which tests need to be run after a change. In their own words:
... we built a
continuous integration system that
uses dependency analysis to determine
all the tests a change transitively
affects and then runs only those tests
for every change.
...
Inspired by that, I have... |
I work for a subsidiary of a large world wide company. This was not a subsidiary from the beginning, it was a company bought by the larger company.
We seem to be heading toward a death march and I'm wondering if there is anything I (or my team) can do to either resolve the management problems or complete the project in... |
Example: A file, representing a serialized version of an object, needs to be read and deserialized. It would simple to implement this if we only cared about a single serialization format, but many such formats exist (JSON, YAML, etc.).
One way to handle this would be to create an abstract serializer type/interface with... |
I'd really like to focus on why some new programming languages are adopted in the mainstream, and others remain relatively niche. I'd like to know about things like specific use cases, backwards compatibility, or some new features, simple or complex implementation difficulty. Specific examples would be appreciated, but... |
I've been very interested in writing compilers but have been scared off by the complexity of it. I've finally took the plunge and started writing my first compiler and the language I picked is Brainf*ck as I think that it would relatively easy to implement and I could implement the full language.
This brings me to a q... |
I built a simple burn down chart with Google Spreadsheet, as shown below.
The project consists of 99 tasks. And the user finished 5 tasks on the first day. So the "Actual Tasks Remaining" point is below the "Ideal Tasks Remaining" point on the first day, which is different from the burn down chart shown in the Wikiped... |
Last year, me and three good old friends of mine founded a small web/mobile development team. Things are going pretty well. We're learning a lot, and new people are joining the group.
Keeping knowledge always updated and in-sync is vital for us. Long emails threads are simply not the way to go for us: too dispersing an... |
I'm trying to find a research answering a question: "How much time developers spend on development vs debugging?". I found several interesting links on the Net but they are little too old.
This 2002 RTI study states that software bugs cost U.S. economy $59.6 billion annually. And in this book Beizer (1990) reports that... |
I'm going to be developing some functionality that will crawl various public web sites and process/aggregate the data on them. Nothing sinister like looking for e-mail addresses - in fact it's something that might actually drive additional traffic to their sites. But I digress.
Other than honouring robots.txt, are th... |
i'm currently working on a project in my spare time (mostly 3-4 hours from monday to friday, and up to 6 hours on sundays) and i've found redmine very useful to hold a record of development tasks.
However, there are some stuff, specially when you are trying to prototype or brainstorm a redesign of a set of related cla... |
I have written a small library of classes in my preferred language (PHP, but it doesn't really matter), and typically use them in most of my projects.
Until now, the projects have been personal, or small stuff at my part time job that isn't really a commercial product. Neither of these things worry me as far as the fr... |
I have a question about whether we should use different Data access layers for different database providers like SQL Server, MySQL Server, Oracle etc..
Is it not better to use a single data access layer with the ORM or like mappings so that the database specific activities are taken care of with less coding than comple... |
If 'explicit is better than implicit', why aren't there explicit access modifiers in Python: Public, Protected, Private, etc.?
I know that the idea is that the programmer should know what to do through a hint - no need to use 'brute force'. But IMO 'Encapsulation' or 'information hiding' isn't just to keep people out,... |
Some say that DBaaS (database as a service) -- aka cloud database -- is not suitable for Business Intelligence (BI), analytics (OLAP) or archiving.
Is this true? More generally, when DBaaS is the most effective technical choice?
|
I am working on a large website and having been thinking a lot about when I should be using a 3rd party API/Library and when I should be writing my own implementation from scratch. There is no Library out there that would incorporate all the functionality I need for my site but there are a number of libraries that woul... |
I am working on a Java application, and I see that Run time exceptions are handled in many places. For example,
try {
// do something
} catch(NullPointerException e) {
return null;
}
My questions is, when is it a good practice to handle Runtime exceptions? When should exceptions be left unhandled?
|
I'm interested in knowing what are the real difference (benefits and drawbacks) between the two types of python templating engines; XML (like Genshi or Kid) and a custom syntax (like Cheetah or Jinja2).
I'm not looking for which is better, or a recommendation. I understand that no one solution will be perfect, and that... |
Do you know that feeling when you just need to show off that new trick with Expressions or generalize three different procedures? This does not have to be on Architecture Astronaut scale and in fact may be helpful but I can't help but notice someone else would implement the same class or package in a more clear, straig... |
We're actually using Mantis for our projects. Or should I say "we try to use".
The problem with all bug trackers I know is that they're made by programmers, for programmers. So the design is non existent or totally absurd.
Of course, as a programmer, I can use mantis without problem, but how useful is a bug tracker whe... |
I will be putting together an application to automate an external web site/application. In some instances I will need to navigate the site as a user would (some links I need to follow cannot be predicted and must be parsed from a response)
I am already using Html Agility Pack, and am aware of Tidy if that is needed.
A... |
I work for a company that has begun integrating embedded computer systems into our products that we manufacture. We have a pretty wide range of products and they are distributed across the globe. Additionally, we've designed a few integrated boards that can serve multiple purposes depending on the firmware that has b... |
I have an application which does heavy autoloading, meaning, that only two classes are "included" directly. For every module tha the application has (total like 14 modules), that module defines an autoloader. However, I wanted to know if is too time expensive to load all classes using autoloaders and what could I do to... |
Since I learned about the Spiral Model of software development, I've tried to apply it to the different projects I've been involved in. However, I'm starting to feel like it's really just compressing and iterating more rapidly through a traditional Waterfall Model.
Even in each Spiral or Agile cycle, there are still s... |
So I have a good handle on how to rapidly develop a GUI controlled application in .NET (not so much in Python, I've only used Tkinter). I want my code to be easily deployed with very few dependencies. It does however have to interface with a particular 3rd party software package that exposes a very difficult COM API ... |
With the new world of rapid browser releases I am trying to figure out how to define & implement our browser compatibility process.
Previously we would always support the latest major version of a browser plus one or two older major versions depending on the browser. When I say support, I mean we would proactively test... |
Does there exist a software solution of some form that has the ability to map out the actions of calling a function.
So what I mean is, let's say that we have the following class.
public class Foo
{
public Foo()
{
if (this.SomeProperty)
{
DoSomething();
}
}
private void... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.