instruction
stringlengths
34
36.1k
Extremely, extremely subjective question here, but its something I've been struggling with for quite a while. I've seriously tried to become a reasonable PHP coder for the past several years. But I've really failed every time. I hate to describe myself as a beginner, b/c I've been designing websites (using WordPress, D...
We have an HTML designer who is not a developer but needs to modify .aspx files from our ASP.NET 2.0 projects from time to time in order to get CSS to work properly with them. Currently, this involves giving her the .aspx page by itself, which she opens and edits via Visual Studio 2008 (her computer used to be a devel...
I work at a Microsoft shop doing mainly web development. We had a client who asked us to review (improve) the data model for his web app, but said that he wants to develop his app in PHP (he knows "a guy" who can do it). When I asked him why he wants to go with PHP, he gave me the standard set of arguments from the 90'...
I am compiling a detailed history of the Pascal language, and there are a few details I am missing. There are so many features today that we take for granted. What features significantly contributed to the evolution of Pascal, and why were they significant? I'm looking for language features, not platform or framework f...
I was surprised when I heard that Pascal didn't originally have units. If I recall correctly they were introduced in Turbo Pascal 4. Did other pascal version have units prior to that? How long before other Pascal's got units?
Does Free Pascal introduce any significant language features over Turbo Pascal & then Delphi, or does it just introduce the Turbo Pascal & Delphi flavors of Pascal to more platforms?
Microsoft had a Pascal compiler called Quick Pascal. I've seen some conflicting reports about when it was available. Does anyone know for sure? Did it introduce any new language features over the alternatives, or was it just Microsoft's version?
I was reading in the side bar of the Java language wiki page and it says it was influenced by Pascal and Delphi. this isn't the fact anymore, there are no references to Delphi on the entire referenced wiki page as of this edit, probably should remove all references to Delph from this question as well At first glance Ja...
I am specifically looking for language influences (as opposed to framework). At first glance C# seems to be an evolution of C/C++ or Java. But we know C# has the same designer as Delphi, and he even acknowledged some similarities and said "good ideas don't just go away." The one example I see of something in C# that is...
As opposed to influence on the C# language, did Delphi influence the .NET Framework too? At first glance .NET is Microsoft's version of Java, but .NET has properties similar to Delphi. Are there other influences?
Microsoft charges thousands of dollars for most versions of Visual Studio. Compare this with companies like Apple and Google and with organizations like GNU and Eclipse that give away developer tools for free, it makes me wonder where the difference lies. The rationale behind Apple and Google giving away the tools for...
I have a boss that is not very technical. He can write some basic SQL, speak some dev lingo, but all in all not a pro dev. I get into trouble often, by giving him a lot of detail and asking him to make a decision as to which direction he wants to go. For example, recently he asked for a bunch of changes to go into...
In building a language history for Pascal I noticed that at some point languages changed from a strong line between the language and its common libraries to more of a blurry one. In the first few versions of Turbo Pascal there was no capability for reusable modules until version 4 introduced units. Later versions of Pa...
Possible Duplicate: Would you see any use of a Trilean (True, False, ??) Well first and foremost, I'm not a programmer, I am a civil engineer that does some programming and quite enjoy it. Second and Second most, I'd like to claim rights to this amazing invention and call it TROLLEAN or DASSOUKIEAN. Joking aside, on...
I am generally a PHP Developer that deals in a few different MVC frameworks. I am being tempted (like most) to break out of my comfortable LAMP environment in pursuit of a "prettier" and "more simple" language, attached to frameworks that are becoming more and more popular. I agree with most arguments to switching to ...
On my webpage, i have to generate some excel and pdf files but the user has to wait until the file is generated. the scenario is this: user press a link and waits until the files are generated and displayed as a links on the raports page. how can i 'tell' to the user to wait?
I asked in another question about where a good place to start learning programming was and I came to the conclusion with the many helpful answers, that I would like to go with Python. So now, would there be a benefit to using a .NET implementation like IronPython or should I just do Python? My understanding is I would ...
Should I develop on the latest and greatest 1.7 version of Joomla or stick with the well documented version of 1.5? I'm new to Joomla (and webDev in general), so I bumble around, search online, and ask those wiser then myself. The problem is that the answers are for version 1.5, and don't apply to 1.7, so I'm flounderi...
This is something that has bothering me for a while now. I guess there are a couple of obvious important things that should go into a comment, such as: The author(s) A description of the parameters (and their types, if we are in a dynamic language) A short description of what the method does, e.g. "Trims leading and t...
As an independent vendor being contracted to write a product for a company, is it reasonable to ship only the source code and user documentation while leaving out design documents, architecture diagrams, unit tests etc (basically anything else not strictly needed to run the product or extend it)? The goal is to make th...
In an attempt to not reinvent a wheel, I'm asking if anyone has ideas on a data homogeneity algorithm. A brief example: My data has several elements maybe like Number Color Fruit Letter There are around a 100 of these elements in an array. The algorithm needs to sort the elements so that any 2 entries with the sam...
In iPhone, Android, and other gaming platforms you can sometimes earn credit by installing other games, going to someones website, even signing up for a credit card. For iPhone, for example, there are entire networks set up for this kind of affiliate marketing. What is the industry term for this?
I work for a small electronics and support software company that just recently got a contract with a large company that's very strict on documentation (I do the support software, essentially Windows or browser applications). Upon reviewing the required documentation from the large company, I realize that I wear more ha...
I know ads can be profitable for some incredibly popular applications, but how do average applications fare? I am about to release an application and I think it will be pretty popular, but it's not the next Angry Birds. I guess there will be a few thousand users. Would a few thousand users that use the application abo...
Looking for books (published or upcoming) and frameworks (preferably free/open-source) for sequential tests. My understanding of sequential tests is that it is very similar to a Workflow System, with the following elements: A collection of Setup/Exercise/Verify routine-sets (suites) - same as in xUnit Optionally, a...
Git is an excellent version control system. If we exclude the fact that, it doesn't have an excellent GUI support, it's really good and fast. But the source controls like Clearcase has large support for enterprise customers. Companies are investing huge amount for source control servers and licesense. Of late most of ...
In the recent years, the hype around Git raised greatly. Everybody knows about Git, nobody knows about alternatives. Other ones like Mercurial seem to be unnoticed. Both have been released in 2005, and provide similar functionalities. Moreover, Mercurial is generally considered to be easier to use, more intuitive and h...
There are various types of quality that can be measured in software products, e.g. fitness for purpose (e.g. end use), maintainability, efficiency. Some of these are somewhat subjective or domain specific (e.g. good GUI design principles may be different across cultures or dependent on usage context, think military ver...
I am reading the source code of ObjectListView and there is a Munger class. What is Munger? Does Munger mean anything general in programming jargon? Afaik, the Munger in the source code wraps the methods to do map string to object properties through Reflection (C#). Thanks.
I know the syntax, rules applied to abstract class and I want know usage of an abstract class Abstract class can not be instantiated directly but can be extended by other class What is the advantage of doing so? How it is different from an Interface? I know that one class can implement multiple interfaces but can ...
When did people start writing Readme files? It seems that pretty much all programs have this file, regardless of the format. Is there any documented first use of this document?
This wiki page tells : A schrödinbug is a bug that manifests only after someone reading source code or using the program in an unusual way notices that it never should have worked in the first place, at which point the program promptly stops working for everybody until fixed. The Jargon File adds: "Though... t...
This is just theoretical question, without context. In case somebody hire me (as freelancer (I'm A1)) client (A2) wants to develop CLONE of an existing application from B1 company after some time I give completed application to my client (A2) after some time original owners of application (B1) I cloned want to go to ...
The team over at LMAX have a presentation about how they were able to do 100k TPS at less than 1 ms of latency. They have backed up that presentation with a blog, technical paper (PDF) and the source code itself. Recently, Martin Fowler published an excellent paper on the LMAX architecture and mentions that they are no...
Simulated threads are known as "green threads" in programming-language-wonk speak. They are compared to "native threads" as provided by the operating system, but is there an analogous colour for native threads, and what is it?
I have a fairly ambitious software development project that I have no time to give. This project is for my personal life and if completed will save me much time and money. I am a software developer by trade but don't have much time to work on this project. So, I am considering outsourcing or contracting out some of t...
I work on a team developing a web site with a large number of pages. The QA guy on the team currently runs all of the tests manually. I am thinking of having him create a bunch of Selenium scripts. I don't think he can automate all of the tests, but he could automate many of them. Because he doesn't have a programming...
I've just started getting to grips with event driven programming and I'm finding delegates and events to be very useful. Since starting to see the potential I've began using them all the time to solve problems such as updating displays between controls and calling stored procedures following updates etc. I'm starting t...
...formerly known as MSIL, simple question, it is widely known that Anders Hejlsberg is the father of C#, but is there a "father of CIL"?
I have keen interest in design patterns. I have been reading a lot about them. Specially, from HEAD FIRST. Can I write about design patterns in my resume? I am a fresher. Going to sit in on-campus placements. Though I think that would impress the interviewer if i am able to defend his questions but, on the other hand ...
This is part of a series of questions which focuses on a project called the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework. Another page associated to it related to structural typing can be viewed here. The meta-topic associated to an inquiry about the fram...
When it comes to merging, each control version has it's engine to do it. Conflicts are unavoidable but the question is - which revision control has best AI to avoid conflict. Is it possible to measure such thing? More specifically, we are thinking to move to GIT cause it has nice hype and rumour that handles conflict ...
If you click the cc-wiki link at the bottom of this site, you get a nice plain-english description of what you are and are not allowed to do. The legal stuff is there too, but as someone looking to use a library, I don't want legalese, I want a list of what I can and cannot do. Does a similar resource exist for softwar...
I have to write an algorithm to split/sort numbers into three groups to make them equally large. To be more specific: I have three groups, let's call them A, B and C. Then I have a lot of numbers. Each number has assigned a group to which it belongs, but the thing is, that one number could belong to one of two or one...
I'm wondering if anyone can share their thoughts, experience and guidance on how to approach the data access layer for a composable application? By composable application, I mean an application with the domain layer made up of modules. The goal is to make the application highly extensible by 'plugging in' additional (...
Real programmers can write assembly code in any language. (Larry Wall). As far as I can make out, Mr. Larry Wall is trying to say that to a real programmer any language can have the same functionality as ASM. But I seriously do not understand. How can you write assembly code in high level languages like Perl, Pytho...
I have heard about programmers coding for two days without sleep and drinking coffee and Red Bull. Also in movies like The Social Network, in a scene they show that Mark Zuckerberg has been programming for 36 hours. Also i read somewhere that in companies like Facebook, Google, foursquare, etc. they can code for more t...
We're a team of developers working on some PC applications. But we have also witnessed a trend in the market towards writing more and more mobile sites and mobile applications. Is it time for developers to shift to mobile programming?
I have recently been learning D and am starting to get some sort of familiarity with the language. I know what it offers, I don't yet know how to use everything, and I don't know much about D idioms and so on, but I am learning. I like D. It is a nice language, being, in some sort of ways, a huge update to C, and done ...
We're a team developing a hosted CMS (something like WordPress.com, but in .NET platform), and we want every site to get updates as we update our software. Our CMS is not multi-tenant, i.e. each site is an entire copy of a site template and has an individual database, files and folders, and would be deployed across man...
In C++ and other influenced languages there is a construct called Structure (struct), and another called the class. Both are capable of holding functions and variables. Some differences are: Class is given memory in the heap and struct is given memory in the stack (remark: this is wrong for C++, but maybe correct in w...
There is a notion in scrum that emphasizes delivery of workable units at the end of each sprint. Each workable unit also maps directly of indirectly to a user story and when in new sprint PO introduces new PBI (new user stories), this means that practically team can't always go back to previous user stories to do the r...
I've got a legacy PHP web application wherein almost each and every function makes references to $_POST variables - retrieving their values, AND setting them (or setting new POST variables) as a means to communicate with the calling code or other functions. eg: function addevent() { ... $add_minutes=$_POST['minutes']; ...
I am looking for an online, free coding management tool, where I could log my coding process, for example, bugs to be fixed and has been fixed. What are some good recommendation?
All characters in ASCII can be encoded using UTF-8 without an increase in storage (both requires a byte of storage). UTF-8 has the added benefit of character support beyond "ASCII-characters". If that's the case, why will we ever choose ASCII encoding over UTF-8? Is there a use-case when we will choose ASCII instead of...
I'm starting to develop a mobile app, and have a first choice name I'd like to use. However the .com domain of the name has already been taken. Is it actually worth it buying it, or would you tempted to go with CoolNameApp.com or CoolName.net instead? If you couldn't afford the .com domain name, would you use a differe...
Looking for recommendations on industry-expert blogs from front-end web developers (emphasising RIA applications; e.g. HTML5, Javascript, AJAX, JQuery, Ext JS). Trying to sort out the best from the rest. Which blogs are the well respected and worth following?
I have an idea for what i believe would be a profitable Apple app store application. I also know that i don't have sufficient knowledge to complete it from start to finish and need help from more experienced iOS developers. Is there a standard NDA you have used and liked that would allow you to discuss details of the a...
After almost 4 years of experience, I haven't seen a code where yield keyword is used. Can somebody show me a practical usage (along explanation) of this keyword, and if so, aren't there other ways easier to fullfill what it can do?
I have an application and I'm ready to release it into the wild world of the Internet. However, I am a confused of a few things. Keeping in mind that I am not releasing the source code, must I include a license If I don't want my program copied and claimed someone elses? If yes, then which one? Also, note that is a no...
I want to start doing freelance work, but no matter how I look at it, it seems like the best way to get customers and to have work most of the time, you have to already be in the freelancing game. Most freelancers I've talked to have had the same customers over the years or got new customers because their satisfied cli...
I have been hired to do functional development for several web site redesigns. The company I work for has a relatively low technical level, and the previous development of the web sites were completed by a graphic designer who is self taught as far as web development is concerned. My responsibilities have extended bey...
Situation: For many years, ACME corp has outsourced Task B to me. Over the years I've learned the ins and outs of Task A (manual labor). Together Task A + Task B = finished ACME corp product. So now I discovered an opportunity to optimize their Task A process. But to develop a system to help ACME corp to work more effi...
When I wrote original code, I was using TortoiseSVN to manage versions, but later a new problem evolved. Customers desired customization on few things and now the list of customers is growing. I want to keep version control depending upon customers. I want to keep a root source code and than add version changes dependi...
I want to know: Do you need hardware skills to be a robotic programmer?
I'm looking for an application which takes the address of a website, browses that website, and provides reports based on some user-defined criteria about the HTTP requests/responses. For example, this application should report how many images doesn't have Cach-Control response header, or how many items are more than 25...
I want to develop some PHP applications on my iPad device but there is 2 problems! First , i can not find any local server applications on iPad like Wamp or Lamp, and second my Googling only returns Cloud based IDEs for this!!! any idea?
I'm founder of a web-site called Now.in. I wrote all programs by my-self at first. And we are going to run a start-up company. More people will soon get involved. Some know-how/overviews only exist in my mind, it takes time to explain to newcomers. Hence, I would like to write some documents for others to read. Here co...
I am just starting to learn Ruby, and I want to do something that required a DB but I'm unsure whether MAMP would work or do I need something else?
I am using Microsoft's free tool Visual Basic 2010 Express (downloaded from here ) to develop a desktop application with database features using Microsoft access as the database. Connectivity is being done by OleDbConnection. The software is now complete. I am planning to sell it for money. The software is going to cos...
When I first started using Hibernate I heard about all the joy of using a DAO layer. Initially it made sense for my problem: I was going to experiment with Hibernate and later experiment with NoSQL and/or XML for experience. It made sense at the time Before I go any farther I want to say that my current DAO layer isn't...
I'm a long time Java developer and finally, after majoring, I have time to study it decently in order to take the certification exam... One thing that has always bothered me is String being "final". I do understand it when a read about the security issues and related stuff... But, seriously, does anyone have a true exa...
I have a class with a variable that is private and the class has a getter and a setter for that variable. Why not make that variable public? The only case I think you have to use getters and setters is if you need to do some operation besides the set or the get. Example: void my_class::set_variable(int x){ /* Some o...
I'm a bit amazed that this hasn't been asked by anyone yet, but at a high level, what should every developer know about working with UNIX-based systems? My *nix experience is very limited, because I have absolutely no reason to use it over Windows for my own purposes, but I have two interviews coming up where the compa...
I would like to improve the TOR network, where the exit nodes are a vulnerability to concealing traffic. From my understanding, traffic to .onion sites are not decrypted by exit nodes, so therefore - in theory - a .onion site web proxy could be used to further anonymize traffic. Yes/no? perhaps you have insight into th...
Model View View-Model was developed by Microsoft to target UI development platforms which support event-driven programming, specifically Windows Presentation Foundation (WPF) and Silverlight on the .NET platforms using XAML and .NET languages. In the years since, many Javascript frameworks such as Angular, Knockout an...
I am trying to understand the concept of Application binary interface (ABI). From The Linux Kernel Primer: An ABI is a set of conventions that allows a linker to combine separately compiled modules into one unit without recompilation, such as calling conventions, machine interface, and operating-system interface...
For a C or assembly program that does not require any other library, will linking be necessary? In other words, will conversion from C to Assembly and/or from Assembly to an object file be enough without being followed by linking? If linking is still needed, what will it do, given that there is just one object file w...
I have a method that looks like this: def foobar(mock=False, **kwargs): # ... snipped foobar actually makes several calls to Amazon S3 and returns a composed result. In order to make this testable, I introduced the mock parameter to turn off making live network connections. It feels like a code smell for me but te...
Setup: We've got a form with default text values present within the text box itself which "goes away" when I click on them and enter a value (not if I dont enter a value). Currently the 'default' value or the user inputted value gets POSTed to the PHP script. Should I have the javascript code check if the value being s...
It seems there's a HUGE discrepancy between what I expect someone who's studied programming for a few years at university, and what one actually knows. I don't feel like I'm asking overcomplicated questions in interviews. Some of my usual questions are : What's the difference between a reference type and a value type?...
I often hear that scala has a ability to pass function as a parameter to another function. I would like to know the difference between passing a value as a parameter vs passing function itself as the parameter. How the latter approach brings advantage to the programming. If functions are passed as the parameter how th...
Roles in scrum are Product Owner, Scrum Master, and Scrum Team. A user story should also break down into smaller pieces called tasks. A task seems to have four phases, namely, definition, assignment, implementation, and following. Who should do what in Scrum about tasks? Is it the responsibility of scrum master to upda...
I'm developing sites based on .NET platform. I usually deploy these sites on my local IIS, so that I can test them and see their functionality before going live. However, each time I restart windows, it seems that sites take a long time to run for the first time. I know about JIT and I'm also aware of this question, bu...
I use unsigned ints everywhere, and I'm not sure if I should. This can be from database primary key id columns to counters, etc. If a number should never be negative, then I will always used an unsigned int. However I notice from other's code that no one else seems to do this. Is there something crucial that I'm ove...
I am making one website and i want to use mortgage repayment calculator. I have seen many real estate sites using that. I want to know that i copy their javascript calculator code and style my form differently , will that be an legal issue there
I have submitted a bug report over a month ago to one of the biggest software companies about one of their flagship development products (I deliberately not include any more details about this bug report, so that the question doesn't turn into a rant). I only received an templated assurance that "we're working on it". ...
I'm a totally blind programmer who would like to learn .net. It appears that the Visual Studio express editions are not accessible since the scripts that come with Jaws for Windows, the screen reading software I use, requires the VS object model to make Visual Studio accessible. This is not available in the express edi...
I've been working in ASP.net for over three years now. The project I'm working on is designed with a 3-layer presentation/business/data design. The presentation layer is an ASP.net web site. The business and data layer are also in .net, with the data layer working with a SQL server. Recently, I've had to add several ...
While threads can speed up execution of code, are they actually needed? Can every piece of code be done using a single thread or is there something that exists that can only be accomplished by using multiple threads?
Say you're a software engineer, what does the company actually own of your work? Do they own the source code, the binary, both? What about code you do outside of the workplace? Do they have any claim to that? I was just wondering from a legal standpoint how that all works.
Is there any risk in allowing your team of developers to install whatever Visual Studio Add-ons they want? Is it a good idea to allow them this freedom?
I am a Web application developer who also is responsible for project managing some projects, I sometimes have to manage remote developers, who work for me under a contract basis. I feel that sometimes it is really difficult to manage. I am facing some strange situations. For example: Once a developer didn't respond fo...
It seems logical to me that one could define a context for static source code analysis that included rules to produce a relative value of complexity. I know it is not like in the physical sense because souce code doesn't have "Energy" but I'm betting there have been efforts, at leat academic, to draw a parallel. Has ...
What would you do if you were in a situation where the project you are working on is obviously built poorly and will have failures in the future and be a nightmare to maintain...but it is considered a "success" by management because the clients are happy? Should I just not care? Is it ok that the clients don't even ...
I presently have the task of baby-sitting a business critical batch ETL system, querying the database of this system every morning for inconsistencies, and rerunning jobs that have failed. I am not the original designer of the system or of the database, but have made several changes to both, and am reasonably comfortab...
What is the appropriate method to describe a valid range of a parameter in the documentation of code? Obviously long-form documentation (white papers, API documents, etc) can be more verbose than the actual code but this is really to address issues in the actual code than in the distributed documentation (that every us...
I have resigned my old employer to start a new job, and I need to prepare a handover [documentation to be taken by some new employee that haven't arrived yet, and would be some weeks from when I go to when they fill the position again]. So what important points should I make sure to cover, I was making some iOS apps, ...
What sort of languages would be able to handle writing your own web crawler? Could PHP handle this? I'm quite good with PHP (following best practices etc). But I'd like a good reason to learn a new language if I need to. The idea is to crawl one specific website that has multiple entries, much like an RSS feed, but t...
A software project that I am working on involves me and another programmer. The project involved an engine backend with an MVC front end. Initially I did alot of the work on the project and so setup some simple design methodologies mainly surrounding abstraction and template strategy. For quite a while I have been of...