instruction stringlengths 34 19.9k |
|---|
I learned Prolog many years ago in University. During my professional life, I have never needed to use Prolog. Have I missed something special?
As far as I remember Prolog requires completely different mindset comparing to prominent programming languages.
Is Prolog really ever used to implement something professionally... |
I have been a .NET developer now for about the past 5/6 years give or take. I have never done any professional Java development and the last time I really touched it was probably back in college. I have been toying with the Scala language a little bit but nothing serious. Recently, I've been offered an opportunity to d... |
Whether you learned from a University, or mentor, or what have you (I'm mainly more concerned with University/Equivalent), what did the institution do right? And what do you think they could've improved upon when learning your programming skills?
I'm curious how everyone felt their institution did as far as teaching th... |
I have noticed a recent trend in requesting programmers who are rockstars. I get it, they're looking for someone who is really good at what they do. But why (pray) make the reference to a rockstar?
Do these companies really want these traits as a real rockstar?
Party all night and wake up to take care of quick busin... |
I've just had quite a good phone interview (for a CakePHP-related position, not that it's especially important to the question). The interviewer seemed to be impressed with my resume and personality. At the end, though, he asked me to email him a code sample from my existing work project, "to check you're not secretl... |
My team just tried to contact some guys from an old open source project hosted on code.google.com. We told them that we'd like to join their project and commit to it — at least to some branch of it — but no one responded to us. We tried everyone, owners and committers; no one was in any way active, and no one replied.
... |
A javascript application release won't technically be closed source - at best it can be obfuscated. Given that, my question has two parts:
Is it at all possible to release a technically open source application under a proprietary license?
Are there any examples of applications which are technically open source, have ... |
The company I work for maintains a successful SaaS product that grew "organically" over the years. We are planning to expand the line with a suite of new products that will share data with the existing product. To support this, we are looking to consolidate business logic into a single place: a web service layer. The W... |
I am working on a Trading and Risk Management application and although from a C# background, I have been asked to work on SSIS packages. Now I can live with that. The pain point is that there is too much emphasis on business understanding. Trading (Energy Trading to be exact) is a HUGE area and understanding every litt... |
I assume they weren't able to sit in front of a computer for the whole day like we do today. So how did they write their program? On a piece of paper and type it later when the computer is available? How did they do their testing?
|
Inspired by this question.
I heard that some very very early versions of C compilers for personal computers (I guess it's around 1980) resided on two or three floppy disks and so in order to compile a program one had to first insert the disk with "first pass", run the "first pass", then change to the disk with "second ... |
To summarize the following article: Why You're a Bad PHP Programmer
you're a bad programmer if you don't write comments.
My personal opinion is that code should be descriptive and mostly not require comments, unless the code cannot be self-descriptive.
Consider an example given in the article:
// Get the extensio... |
Android and mobile development is an exciting area of development. As it is a new discipline, what would be expected of an android developer to build commercially robust applications in terms of skills ? The problem that I and, i think, many other "noobs" into the technology would like to know are the areas of technica... |
Consider there is a manager and a programmer in a project. A manager crates a task which a programmer performs.
In this situation who should check that a programmer didn't make some non-testable mistakes like using non thread-safe map in a singleton service? And who checks the overall project code structure?
|
A colleague and I were brainstorming about where to put the responsibility of an object to store itself on the disk in our own file format. There are basically two choices:
object.store(file)
fileformatWriter.store(object)
The first one gives the responsibility of serialization on the disk to the object itself. This ... |
I'm planning on making a simple discussion feature for a web framework I'm building.
It should:
allow anonymous posting
block spam bots
The obvious answer is to use a generic "captcha" plugin, however I think there are some creative opportunities here that I would like to explore, e.g. questions like:
(simple math... |
I know some of the basics of these technologies already, but it is mostly limited to more static sites. Using things like HTMl5 semantic elements, CSS3 gradients, shadows, @font-face etc.
Is there a book out there that's the de-facto standard for describing best practices, design methodologies, and other helpful infor... |
How do programmers in countries whose writing system is, say, right-to-left write their code? Say if they were using C# compiler, do they follow the left-to-right approach or do they have a different IDE that allows them write C# code right-to-left?
|
We are doing a cost benefit analysis on a migration project.
It would be nice to be able to say that future changes will be x percent cheaper due to the migration.
Does anyone have any experience or know of any study that shows what benefit we could expect?
|
Should programmers who build websites/web applications understand cryptography? I have no idea how most crypographic algorithms work, and I really don't understand the differences between md5/des/aes/etc. Have any of you found any need for an in-depth understanding of cryptography?
I haven't needed it, but I wonder i... |
I want to understand the linux kernel code, and I have been going through it but I am not able to get the full feel of what is happening(I am concentrating on network part of the linux kernel), so can anyone of you suggest good practices of reading C (or any other lang) code in general and specific to network part of t... |
What languages (or classes (as in paradigms) of programming languages, plus a recommended language of that class) should every computer science student be taught in college according to you? Motivate your answers; why that language? What use will one have from it? What concepts does it teach (better than language X doe... |
Just curious, what kinds of temptations in programming turned out to be really harmful in your projects?
Like when you really feel the urge to do something and you believe it's going to benefit the project or else you just trick yourself into believing it is, and after a week you realize you haven't solved any real p... |
So what really makes a program trivial?
'Unless its trivial software' is used so often in programming discussions. I find it very vague in the sense that I can't really figure if 'something is essential because its non-trivial software' or 'its non-trivial software because something has become very essential'.
For exa... |
While attempting to make a list programming subjects/topics that were unclear to me, I was unable to come up with anything.
I know I can't be clear on everything. What steps can I take to get an accurate self-assessment of my knowledge and "know what I don't know"?
|
How can one sell an idea like "we should use jQuery because its highly optimized and cross browser compatible" or "entity framework is cool because its neat and takes care of our model automagically" when the common response is a blanketed statement such as "jquery doesn't perform well" or "entities bring in 12 columns... |
I'm working on a web application where there will be many different users from all over the world making updates. I'm wondering what the best way to handle timezones would be? Ideally, as an event happens, all users view it using their local times.
Should the server OS time be set to GMT, physical location time, or my ... |
Recently I decided to add some translations to my program.
I wonder how I should name the language files?
in the culture's name of the language (example: english = en, french = fr, italian = it, etc...)
in the name of the language [in english] (example: english = english, french = french, italian = italian, etc..)
I ... |
To start an open-source project is not just to throw up the source code on some public repository and then being happy with that. You should have technical (besides user) documentation, information on how to contribute etc.
If creating a checklist over important things to do, what would you include on it?
|
Is there a software license that allows free access to source code, but does not allow redistributing any binaries, either direct from the source code or modified source code for a limited time?
The idea being much like a open source software patent; the original developer has the exclusive right to sell and distribute... |
Consider the need to simulate a set of entitities in an accurate way. All entities exist in an artificial timeline. Within 'steps' of this timeline, all entities can do certain operations. It is imperative that timed events, are handled accurately, and not in processing order. So simple threading isn't a proper simulat... |
I'd like to build a web service similar to Kickstarter that allows users to pledge money to an idea, tho I'm unsure how I can implement this kind of payment system. If the the idea receives a specified amount of money, then the donors are charged. If it doesn't, the donors are not charged. I've done some preliminary... |
Very often I'm working on small projects only for myself. I'm working on one machine, but recently I thought about using some kind of version control nevertheless. This would have some benefits as for example:
I don't have to care anymore for local backup
Mistakes can easily made undone
History can be maintained
But ... |
Should I guarantee or add a warranty clause to my contract in the event code breaks or an anomaly occurs outside the client's hand or act of God?
If so, what should that language say?
|
I am looking to integrate a live auction component (similar to BigDeal.com) to a website. I generally program using PHP. What is the best plan of action with this type of project (Timer, live bids..)?
|
Fairly recently I started maintaining my own open source JavaScript library. I created it to solve a pretty specific need but fairly regularly see questions that can be solved (in whole/part) by using my library.
I post my answer and make sure to always include that I maintain the library.
I feel for open source projec... |
I've worked on both Mac and Windows for awhile. However, I'm still having a hard time understanding why programmers enthusiastically choose Mac OS X over Windows and Linux?
I know that there are programmers who prefer Windows and Linux, but I'm asking the programmers who would just use Mac OS X and nothing else, becau... |
I'm a beginner programmer and all I've worked with so far are console applications in C++. Coding wise, how is the graphical side of programs created? I understand the logic that I am using from console apps will be the same, but how do programmers create the graphics that this logic is then used in? I know this is sor... |
What is the deal with functional programming? I see talk about it a lot but to be honest I've never found them at all useful. Why do so many universities apparently teach them?
|
Are there any canonical sources for learning how to structure multi-threaded programs? Even with all the concurrency utility classes that Java provides I'm having a hard time properly structuring multi-threaded programs. Whenever threads are involved my code becomes very brittle, any little change can potentially break... |
I know that Android uses the Java language with a limited Java SDK and that Google claims it isn't Java. But is it right to say that Android is a Programming language?
Or is it more right to say that Android is a framework in Java? Or is both true?
|
Dear programmers, as part of my final year university project, I am conducting research into what makes programmers prefer to program for Android as opposed to other mobile operating systems. The description does not need to be detailed however, I am trying to find patterns between programmers to determine what propert... |
This has happened to most of us...
You come to work one day. Everything seems normal - the sun is shining, birds are chirping, but you notice a couple of weird things on your way to work that remind you of the déjà vu cat in the Matrix.
You get into the office and there are a lot of phones ringing - but it could just ... |
Please share your views on the code review process.
If someone gave a code snippet and asked you to review that code, then what are the major things you will focus on that code Review process?
For instance, I will check if any dead code is available in that code, other than checking dead code, what are the key elements... |
I have always had this question in my mind and I would really be happy to get an explanation for this.
Is it only me or do you also feel the same way that it's hard to find anything on MS site.
For example, every time I need to download .NET framework I have to Google it. You never know what you can download, no catego... |
As a follow up to my prev question:
What is the best aproach for coding in a slow compilation environment
To recap: I am stuck with a large software system with which a TDD ideology of "test often" does not work. And to make it even worse the features like pre-compiled headers/multi-threaded compilation/incremental lin... |
If you have a number of years experience in working with Java and a number of years experience in working with C# and .NET, I would value your opinion on software development productivity differences between these two environments. One of our customers is considering replacing their existing software solution. As the r... |
We have been using Hudson for quite a while and we loved it. Now many Hudson-developers have "left the building" to create their own: Jenkins (which means the project has been forked). As Hudson/Jenkins users, we are now worried whether we should opt for the original "big and stable" producer Oracle, or the "small and ... |
I need a way to implement a fast lookup algorithm / system to find users very quickly in a multi-level department and multi-level employee/manager relation organization structure.
Departments can have any level of departments and users directly connected to departments. User are connected to departments and other users... |
I came across this Wikiepedia article which says that using interfaces for defining constants is not a good thing.
Solution suggested there is to define constants in a final class and use static import. That works for Java. I come from the PHP world which does not have the "import" thing. So, what is the acceptable so... |
Following on from a previous thread that had a link to TekPub, I have just had a quick look and I think it looks pretty impressive. Are any of you guys subscribers and if so would you recommend it? I am mainly interested in general software design and, as a language, C# and it's features. Is there much content poste... |
Let's assume the situation where a team of four developers is building an application. During the testing phase, bugs are reported by users. Who should fix them? The person who committed the erroneous code, or anyone who is free?
What is preferred approach in agile development (scrum)?
|
We use compilers on a daily basis as if their correctness is a given, but compilers are programs too, and can potentially contain bugs. I always wondered about this infallible robustness. Have you ever encountered a bug in the compiler itself? What was it and how did you realize the problem was in the compiler itself?
... |
We know of Linus' law:
With enough eyeballs all bugs are shallow
In general, people seem to say that open-source software is more secure because of that very thing, but...
There are many small OSS projects with just 1 or 2 developers (the cathedral model, as described by ESR). For these projects, does releasing the s... |
I have a "real" project I'm working on to make money from, and a side project that is vastly more interesting.
I'm having a problem where every time I go to work on my "real" project, all I can think about is ideas for my side project. How do you guys deal with that? Just power through the real work?
|
I have this open source code with MIT license that uses an Apache 2.0 licensed library.
I want to include this in my project, so it can be built right away.
In the point 4 of that license explains how to redistribute it:
excerpt:
4 . Redistribution. You may reproduce and distribute copies of the Work or Derivative Wor... |
What are some Best Practices for refactoring and renaming in team environments? I bring this up with a few scenarios in mind:
If a library that is commonly referenced is refactored to introduce a breaking change to any library or project that references it. E.g. arbitrarily changing the name of a method.
If projects ... |
When you interrupt the work on some code (be it because you have to work on something else or go on vacation or simply because it is the end of the day), once you close that Visual Studio project, what is your preferred way to remember what you want to do next when you start working on that code again.
Do you set a Vi... |
Let's say you're in a computer store looking at 10 laptops, you want to really compare the system's capabilities. What will be an efficient "your fav language goes here" script that will allow you to do this?
As an example, when I go to the store I usually open a macbook and a pro's terminal and write an equation in py... |
I have worked on several ordering systems. Every one of them has tracked the shipping and handling as part of the order header rather then tracking it as a line item. To me, it would make more sense to keep them with the line items, even if the information is not displayed that way to the user. What are the reasons for... |
Sometimes I end up writing unit test cases for code that other developers have written. There are occasions when I really don't know what the developer is trying to do (the business part) and I just manipulate the test case to get the green line. Are these things normal in the industry?
What is the normal trend? Are t... |
I've given a few talks recently and I have not found a good way to make slides.
Here are a few desirable characteristics for programming slides:
They're slides. A standard emacs buffer won't do it.
They have syntax highlighting for code.
They support basic formatting, like font size and color and bullets.
No fancy ani... |
I do not know any programming languages at all. I will self teach myself and need to know the best place to do so where I can learn from a most basic level. Where is a great place to begin learning a language? What language is best to learn first? Is it silly to learn Ruby first?
Here, I came across someone saying ... |
Here's an example with a Flash project, but I'm sure a lot of projects are like this.
Suppose I create an image with Photoshop. I then export this image as a jpeg for integration in Flash. I compile the fla as an asset library, which is then used in my Flash Builder project to produce the final swf.
So it goes like :
p... |
I just had a technical phone screen w/ a start-up. Here's the technical questions I was asked ... and my answers. What do think of these answers? Feel free to post better answers :-)
Question 1: how would you represent a standard 52 card deck in (basically any language)? How would you shuffle the deck?
Answer: us... |
I have a blog where users can post comments.
When creating a comment, various things happen:
creating the comment object, associations, persisting
sending notification emails to post's author given his preferences
sending notification to moderators given their preferences
updating a fulltext database for search
...
... |
Our firm makes websites. We also design websites. But sometimes our client brings his/her own design. This is often made by an in-house designer, or it is the same design they used for something else. However, sometimes these designs look awful. And I am talking really unprofessional, unbalanced, uncool. But the client... |
Some IDEs (or code editors like Notepad++) are released under GPL. If I decide to make a program using the IDE, do I have to release my program under the GPL? Or is it only if I take code from the open source?
|
Why should I write a commit message? I don't want to and i think its stupid every single time.
A GUI frontend I use which will go unnamed forces you to do it. I hear other doing it every time even if they are using the VCS on the command line.
If I commit several times a day and haven't finished a feature what am I wr... |
Do you think a re-distributor providing full source in a weird archive format is complying with the GPL?
This project
http://sourceforge.net/projects/minivmac/
is GPLv2 based on the earlier vMac emulator but it provides the source exclusively in mac disk images. While after jumping through some hoops you can eventuall... |
How do you manage your reading list?
Like me, you probably have 12 technical books on the go at once, and that's not including the non-technical books :)
Any tips?
Regard
TDG
|
I need to work with IT projects in system or web development in order to improve my skills by following the requirement specification.
Is there any available requirement specfication to download in order to create an application?
|
Typically when i work on a project i only go back a few days or the last major change when i decide to do something drastic.
I sometimes notice i broke a test or a feature and overlooked it for a few weeks so i may go back a month or two and see if the feature or test is broken and trace down the week i broke it. Then ... |
I would like to out who provides technical support (commercial) for two major DVCS's of today: Git and Mercurial.
This is for a place where they've been using Subversion for some time and now they're renewing their software licences. Although they will be keeping Subversion as well, they would like to justify beginning... |
The germ for this question came up from a discussion I was having with couple of fellow developers from the industry.
Turns out that in a lot of places project managers are wary about complex data structures, and generally insist on whatever exists out-of-the-box from standard library/packages. The general idea seems ... |
Well the question is in the title - how do I improve my code reading skills.
The software/hardware environment I currently do development in is quite slow with respect to compilation times and time it takes the whole system to test. The system is quite old/complex and thus splitting it into a several smaller, more mana... |
Thinking that there might be others, but not sure -- but before getting into that, let me explain what I mean by static and dynamic data sources.
Static (or datastore) - Meaning that the data's state is non-changing, and if was changed, that would be a new state, and the old data would be considered stateless; meaning... |
I'm writing a library to generate and check CSRF tokens.
I would like to do it without having to use sessions and/or cookies. What I've come up with is this:
A token generated from the current time and a unique token id (unix-timestamp.unique-token-id).
The token would then be hashed using the HMAC method. The retur... |
I am implementing a primitive message-passing system. Currently, I am designing a receive function for async calls. Can I implement such a async receive function without using callback functions?
|
I have been trying to figure out ways to effectively do performance reviews before an install happens for all releases done by our team. Do you usually make this a part of code review process or do you handle it as a separate review task?
FYI - we do not have a dedicated performance testing team. It is up to the devel... |
For example, when I first started out freelancing a year ago, my business card had my name, email and website - and up top a list of the technologies I'm comfortable with. In retrospect I don't feel this was a wise decision.
Why would a potential client know what Python or Ruby is? How could he know what .NET was?
I s... |
I'd like to have your opinion on the difficulty of the following interview question:
Find the contiguous subarray with maximum sum in an array of integers in O(n) time.
This trivial sounding problem was made famous by Jon Bentley in his Programming Pearls where he uses it to demonstrate algorithm design techniques.
On... |
If this is the wrong place to ask this question, please let me know.
I'm a Python programmer by occupation. I would love to learn C. Indeed, I have tried many times, but I always get discouraged. In Python, you write a few lines and the program does wonders. In C, I can't seem to be able to do anything useful.
It see... |
How do you handle incomplete feature requests, when the ones asking for the feature cannot possibly write a complete request?
Consider an imaginary situation. You are a tech lead working on a piece of software that revolves around managing profiles (maybe they're contacts in a CRM-type application, or employees in an H... |
Do I learn objective C? Is using Cocoa the easiest and best way to make a UI?
|
The Java is GPL license (reference from wikipedia). I am not sure I can use it in in commercial projects. I already have a website written in Java and I plan to use this for commercial use. Is that illegal?
|
What differences are there, if any, between BSD and BCL licences?
|
We're looking to create regular backups of a couchdb database, to ship offsite. What's the least intrusive way to obtain these - ideally without interrupting or significantly slowing down performance on the existing database server?
|
I forked a project that was dual licensed under the GPL and a commercial license. Since my code was open source and the GPL being what it is, I started by releasing my app under the GPL.
But now I'm thinking about dual licensing the project and can't figure out what to do. Since I have copyright on a majority of the co... |
Repeat Business obviously happens because the company has a great product or a great service.
In the software industry, do companies make the code base complex enough so that the maintenance comes back to them?
I have heard of cases where companies say "ya this code base has minor errors, let's ship them anyway, and ... |
"Everyone Knows" ...
... that c is widely used for low level programs in large part because operating system/device apis are usually in c.
... that Java is widely used for enterprise applications in large part because of enterprise libraries and ide support.
... that ruby is widely used for webapps thanks in large pa... |
In the dev shops I've worked in, nobody has ever mentioned "coding priorities". I read this in a book or site somewhere, and sets the expectation of what priority should be first in the code. In places where this is not specified, what should the first priority be?
It may sound simple to say "do what the business need... |
I've been thinking about this and it is blowing my mind...
How does a session state provider properly works internally?
I mean, I tried to write a custom session state provider based on Azure Tables or Blobs, but quickly I realized that because there is no way to ensure an atomic operation or establish a lock, race con... |
What do you think of Java's GNOME bindings and I was surprised to know that the latest version of the bindings was released this month and they're backed by a company that uses them, which means that there's a considerable amount of activity in the project, and that it's not going to be ditched anytime soon
Is this goi... |
I have been doing a little thinking about inheritance vs. realization vs. composition. I am not about to post the whole detail here. So I was wondering, when we are not talking about creating interfaces to facilitate unit testing: Why does interface-based programming seem to focus upon the grouping of common behaviour,... |
I started seriously taking a look at Lisp this weekend (by which I mean I have only been learning Lisp and not reverting back to projects in C#) and must say I love it. I have dabbled with other functional languages (F#, Haskell, Erlang) but haven't felt the draw that Lisp has given me.
Now as I continue to learn Lisp... |
I'm currently design an application that involves a lot of calculation. Now I have generally two possibilities which I have both tested:
1) During startup of the application I calculated only the most important values and these values that consume a lot of time. So the user has to wait approximately 15 seconds during s... |
Admittedly my experience of using the MVC pattern is limited. It might be argued that I don't really separate the V from the C, though I keep the M separate from the VC to the extent I can manage.
I'm considering the scenario in which the application's model includes a number of elements
that have a common base class... |
I'm looking into the feasibility of using off-the-shelf distributed SCMs such as Git or Mercurial to manage millions of XML files. Each file would be a commercial transaction, such as a purchase order, that would be updated perhaps 10 times during the lifecycle of the transaction until it is "done" and changes no more.... |
The trend in application design and development seems to be starting with the "guts": the domain, then data access, then infrastructure, etc. The GUI seems to usually come later in the process. I wonder if it could ever be useful to build the GUI first...
My rationale is that by building at least a prototype GUI, you g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.