Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
1
6
title
stringlengths
15
150
text
stringlengths
30
21.8k
1
"Comments are a code smell"
A coworker of mine believes that _any_ use of in-code comments (ie, not javadoc style method or class comments) is a code smell. What do you think?
100007
Keys as attributes for ajax calls
I have been told its kind of a bad idea to use a key as an attribute of an xml tag. I find the very handy for ajax as i can just stick the key i need in what ever element is being clicked,changed, or whatever. I can see how this is a security risk but have only used the tactic in internal apps. On external application/...
100010
How to flag a class as under development in Java
I'm working on a internship project, but I have to leave before I can finish up everything. I have 1 class that is not stable enough for production use. I want to mark/flag this class so that other people will not accidentally use it in production. I have already put the notice in Javadoc, but that doesn't seem enough....
10002
Is there a standard for when you include libraries or not?
I often come across a class which has a single reference to another library and was wondering if its better to include the library or to reference the object by it's full name. Is one better then the other? Is one more of a standard then another? For example using System.Windows.Messagebox: Option A: usin...
100024
Do programmers need to know about graphic designing?
I want to know your opinion. Do programmers (like me) need to know about design? For example drawing, web design, image manipulation etc. Edited Actually, I like web, enterprise and mobile programming. Thanks :D
100031
one programmer, many languages -- the name dilemma
When you work across multiple programming languages, there is a problem you encounter... _**A valid name (identifier) in one language is invalid in another._** For example... `var` `new` `function` `this` are a keywords in JavaScript, but you can use them freely in Python. Similarly `list` `dict` `def` can be used in J...
100032
Using continuous build results as part of performance review metrics?
My boss is planning to use the metrics from our continuous build (builds and runs tests on every commit) as part of our performance reviews (in our 'quality' metric). This seems like a REALLY bad idea to me, but I'd like to know if anyone has studied this or seen this tried before. My thought is that it's going to have...
100044
Basic Database Relationship Advice?
I am finding it difficult to get together in a single place the different types of relationships used for different things and would like to find out which I have correct and incorrect and the proper "technical" terms for the different types of relationships. An example: In database we have: One to On...
100047
Why (not) segmentation?
I am studying operating systems and the x86 architecture, and while I was reading about segmentation and paging I naturally was curious how modern OSes handle memory management. From what I found Linux and most other operating systems essentially shun segmentation in favor of paging. A few of the reasons for this that ...
100050
Model Design: Which layers should access resources?
I am implementing a model design where DB tables are 'resources', and a model can use many 'resources'. When I return a row from a table, it is represented by an 'item'. (This came from a book by Keith Pope, but I've seen it in several other places too). So, my question is, who should be able to access the resources? I...
100062
Should I create a new database for a public website when the data already exists?
I am looking for advice on how to create my data schema for a public web site. Currently, we have an Intranet website where our agents create the data needed for reservations. The data includes tables like Establishments, products, prices per periods, and a typical Users table. This intranet is already in production. I...
100064
Do I have the wrong idea about software engineering?
Hello folks I have a question which's been raised by my latest job (rather intern). Just to put things into context - I'm 21 and I've finished my 2nd year of university before that I've had around 2 years of experience doing sys admin/QA jobs and basically I can say that I've seen how different IT sectors operated. Fla...
100068
Software Patents: can I license the use of an existing patent?
I know the software patent is a hot topic and is very frustrating. But as I live in the US I don't think I have any choice but to deal with it. What I'm wondering is if there are actually companies or a site where I can look up what patents might apply to my idea. Then, be able to license the appropriate use of the ide...
100074
How to effectively manage source control for project with both open and closed source?
I'm currently working on a project that has both an open-source "community edition" and a set of closed-source features for paying clients. One of the pain-points right now is figuring out how to handle keeping the shared source in sync between projects. We use Mercurial for source control, and the open-source piece is...
100094
Where to put common shared methods
I have a bunch of methods that are commonly used everywhere. Right now the codefile is named globals, to represent the fact that they are... in fact... global. However, I do not like this. I want to group these into a class and pass an interface around. I'll make only one instance, but I'm not falling into the singleto...
100127
How do I view Scala code without all the syntactic sugar?
I have been studying Scala, but what I keep running into is the optimization of syntax. I'm sure that will be great when I am an expert, but until then.. Not so much. Is there a command or a program that that would add back in all/most of the code that was optimized away? Then I would be able to read the examples, for ...
100201
2 year degree plus experience vs 4 year degree
Alright, I have searched around a bit on this site and found two somewhat similar questions: Computer Science Programming Certificate vs. Computer Science Degree? Is it possible/likely to be paid fairly without a college degree? But these do not provide an answer specifically to what I am seeking. I have my 2 year A.A....
100203
What's the difference between an Asset and a Resource?
I've used several IDEs and created several default projects. Upon creation, I'll find folder structures created for me. Sometimes I'll see a Resources folder, sometimes an Assets folder, and sometimes both. Is there actually a (standard) difference?
10021
What is a "powerful" language?
I have often seen people fighting over that their favorite language is more "powerful" than others. When it comes to describing a programming language, I can understand what an object oriented language is or what a dynamic language is, but I still can't figure out what exactly a "powerful" language is. What are your th...
100214
Do you throw an argumentexception or argumentnullexception from private methods?
I was just reviewing some code I wrote a while back, and can see that I have a couple of private methods that throw argumentnullexceptions and/or argumentexceptions if there are issues with the methods parameters. I guess my rationale is that helps future proof the application if someone attempts to "misuse" the method...
100219
How to begin writing a relational SQL database
I was wondering about how databases like MySQL and SQLite are developed to run as quickly and as well as they do. I'm looking for answers to questions **like** : * How is SQL token-ized? Do you build an AST and compile/interpret like any other language? * How should one handle connections to the database? TCP? IPC?...
100221
Should one test for algorithmic complexity? If so, how?
Let's say I am implementing something simple like searching a sorted list/array. The function (in c#) would look similar to: static int FindIndex(int[] sortedList, int i); I could implement and test this in terms of functionality, but for obvious reasons I would usually prefer a binary search over a ...
100227
Best practices working with frameworks that invent their own types [more of a C/C++ question]
Is there a correct way to handle APIs that invent their own types? For example, WinAPI, QT, Boost. Many frameworks have their own integer and boolean types, along with more complicated data-types. So, is it better to use native C/C++ type like `bool` or alternatives like `QBool/BOOL/etc`., and native container types li...
100284
How to reconcile my support of open-source software and need to feed and house myself?
I have a bit of a dilemma and wanted to get some other developers' opinions on it and maybe some guidance. So I have created a 2D game for Android from the ground up, learning and re factoring as I went along. I did it for the experience, and have been proud of the results. I released it for free as ad supported with A...
100297
Tools and/or methods for regular Code review of Remote development team
We are outsourcing a development to a small team of offshore developers. Our in house process for code review is manual, paper based, based on a waterfall model requiring "big bang" delivery. It cannot be changed. Past experience is these devs are proficient and reliable, however come time to deliver, the overhead of r...
100298
Naming UI components in web based editor
I'm developing a web-based source code editor. I'm developing everything(tabs, context menu etc) out of HTML elements. How do I come up with names for UI controls? Is there a book or guide or project from which I can learn how to name things?
100303
Correlation between two curves
I am trying to solve a mathematical problem in two different ways and output is a curve in both the cases. I want to compare these output curves for similarity in python. Is there any function or framework which provides this functionality? Thanks.
100316
Programming late at night problem
I recently found out that programming late at night causes sleeping problems, so what are the best hours for 'after-job' programming? Maybe there is some time interval that should be set after finishing programming and going to bed, or some activity involved?
10032
Dynamically vs Statically typed languages studies
Do there exist studies done on the effectiveness of statically vs dynamically typed languages? In particular: * Measurements of programmer productivity * Defect Rate Also including the effects of whether or not unit testing is employed. I've seen lots of discussion of the merits of either side but I'm wondering whe...
100334
Using Backbone.js with ASP.Net MVC
I'm currently looking into the advantages of using Backbone.js, but I'll be using ASP.Net MVC as the main bulk of the site. My question is, is it worth blending the 2 together or am I making a rod for my own back? Should I just use an ASP.Net Web Forms site instead?
100336
Does having a funny or silly name hurt a project?
This question has been bothering me for a while. Let's take some of my projects as an example. In my projects I tend to prefix them with "quack". This means that you'll have project names like (disclosure: These are my actual projects) Quackbot, an IRC bot, and Quackedcube, which was a Rubik's Cube solver. At least whe...
100348
Choosing between CL and Python for web development
I'm coming from a Java / PHP background and after I read this little essay by Paul Graham I started wondering about picking up a new language namely Common Lisp to speed up my work (I'm a web developer). I'm writing pet projects currently but I have some business plans for the future. Paul speaks about LISP in his essa...
10035
Am I potentially hurting my career by taking a dev test position?
Background: If you haven't read much of what I've written here, then: * I'm a sole developer * I've developed professionally for ~3 years, personally for 13 * I love my work * Top-to-bottom, I find the whole process of developing software interesting, fun and exciting (with the slight exception of marketing) ...
100350
What does Google or Microsoft get by hosting JS files on their Content Delivery Networks (CDN)?
As you know Google, Microsoft and jQuery.com offer JS files on their CDN. To do this, they must need to operate significant servers which must come at a cost to them. Why do they do this and what do they get from it?
100356
Can we develop ASP.NET MVC application with MySQL as the database?
I have mostly seen ASP.NET websites using MSSQL as database. Even I developed one some time ago. Why only MSSQL, when MySQL, a free alternative is available. So, the question is, IS it possible to integrate a MySQL database as easily as MSSQL with ASP.NET application or we need to use some API for doing so ??
100365
Standard/Proper way of counting lines of code?
How should I count the lines of code in a project? In C++ for example, should I count the lines of the header files with my class definition? Should I count the header of a (non standard) library I am linking against? In Qt (or any other GUI framework), should I count the lines of the form's design? Should I count the ...
100373
Switching to Windows Identity Foundation - Should we use the SQL Server role and membership provider?
We have an application which uses SQL Server as the back end. It was client server based, now it will be web based. Our implementation to logon was a user ID and password hash/salt stored in the database. Additionally, all policies and roles were stored in our table schema and assigned to users and or user defined grou...
100383
Small companies and software licensing
Small companies with small budgets may not have have the money to invest in expensive software licenses that they may need for a given development project. This is even more so if the project was a loss-leader to drum up more business and the price of the development product cannot be renegotiated without potentially h...
100404
Coming from a Windows keyboard background and still using a generic keyboard, how can I transition to Mac for development?
I got a new MacMini a little while ago because I already had a monitor, keyboard, mouse, etc so I just wanted something cheap I could play with for Apple development where I could just change plugs to the computer I want to use. The biggest problem is that my keyboard is a standard (or not so standard being a DasKeyboa...
100410
Example for explaining object-oriented concepts
What are some _good_ examples for illustrating the concepts of object-oriented programming? I'm talking about sample classes, classes that would have inheritance, overriding, etc. The only one I can ever think of is of animals. A base `Animal` class, with `Cow` that have a different `makeCry` method or something like t...
100417
What is the relationship between the Dynamic Language Runtime and C# 4.0?
Let's say I wanted to create a dynamic language compiler/interpreter, a Scheme interpreter perhaps, on the .NET platform as it exists today. Would I be better off using the Dynamic Language Runtime (DLR), or using C# 4.0 to implement my language's dynamic features? Or do I need both? I know that there has been other wo...
100422
How applicable would an Automata class be to professional development?
Would it be worth taking Automata over Databases or Networking assuming no immediate plans on a Masters degree in Computer Science? I'd assume I'd learn things in there that would somehow be real work applicable like complexity theory but is it more useful immediately out of school or better to do a course somewhere po...
100429
What workflow do you use with asp.net web forms development and your design department
I work at a place that has a clear separation between designers and developers. We're a fairly new start-up and we're trying to figure out what would be the best workflow for our team. We're a small company with a total of about 11 employees, three of which are designers (they deal with the HTML, CSS, some jQuery), and...
100442
How can a web site be set up using the MVC Pattern? (Without MS ASP.NET MVC)
We used a contractor to create the initial version of our site; they used their own MVC-pattern code-generator to create the (ASP.NET / C#) site and customized from there. That was turned over to us two years ago, and we've been working on it since. That's the environment I'm coming into, with little practical MVC expe...
100448
UnitTests, will cleaning up your act-statement make your test more or less clear?
Lets say that we are testing `FooClass` with the following method: public void Foo(string stringParameter, int intParameter, Action<Bar> successCallback, Action<Exception> errorCallback); If the call to `Foo` succeeds, the `successCallback` will be called with the result of `Foo` in the form of a...
100457
Can static and dynamically typed languages be seen as different tools for different types of jobs?
Yes, similar questions have been asked but always with the aim of finding out 'which one is better.' I'm asking because I came up as a dev primarily in JavaScript and don't really have any extensive experience writing in statically typed languages. In spite of this I definitely see value in learning C for handling dema...
100460
How far should I take email address validation when the cost of bad emails is high?
**When it's more important to prevent typos than to cover 100% of all possible email addresses, what syntactic email validations do you do?** Imagine this: > You're with the local gas & electric company. 10% of new installations are > cancelled because the customer is not home and it costs your company $50 a > pop. You...
100462
How do i put my head around ISAPI Filters
I am a newbie. I have decent command over C++ but i lack domain knowledge when it comes to servers and stuff. My current assignment is to write ISAPI filters for IIS Web Server. I have been googling for a couple of days and have found out that its quite a challenging task. I found some examples here. I need to understa...
100480
Is there any evidence that Intellisense reduces productivity?
> **Possible Duplicate:** > Should newbies use IDE autocomplete (Intellisense)? I was having a conversation with another developer the other night about the pros and cons of Visual Studio. He was of the opinion that Intellisense reduces productivity. Of course I thought that was insane but I could be wrong. Is there...
100488
Is learning C# as a first language a mistake?
I know there are similar questions on here, which I've read, but I recently read this post by Joel Spolsky: How can I teach a bright person, with no programming experience, how to program? And it got me thinking about my way of learning and whether it might actually be harmful in the long run. I've dabbled with various...
100499
Can I safely use an open source library in an internal closed-source project?
I m thinking of using iTextSharp, which is licensed under Affero GPL, in an internal closed-source WinForms project. No one outside my company will be using it. GPL (and Affero GPL as well) typically demands that the source be provided with the binary. Given that this is an internal project, do I need to provide my emp...
100506
One global HashMap vs. many local HashMaps?
Which is more efficient; which is faster? Trade-offs? Goal is for fast look-ups in a web application. UUIDs are the keys, so global will work. Approx 50 million values. A global cache is definitely more manageable than many smaller ones, even using JMX. But, I had a hunch that maybe the total overhead of the hashtabl...
100528
New Silverlight app. MVVM. RIA Services vs CSLA
Another 2 days of reading and watching demos and here we go. For my enterprise LoB Silverlight app I'm going to use: 1. Prism for UI aspects and modularity. 2. MVVM pattern (using Prism) 3. ??? to bring data over and validations... 4. Entity Framework for Data access 5. SQL Server for data Ok, main dilemma is...
100529
Price Comparison Database Scema
I have a bunch of data from multiple retailers. Each product that each retailer sells may or may not be sold by another retailer in the database. If multiple retailers sell the same product, then the product can be identified by a SKU. I currently have 1 database for each retailer. I'm having a problem trying to concep...
100534
What are the most common mistakes and anti-patterns NHibernate user programmers make?
What are the most common mistakes and anti-patterns NHibernate user programmers make? Please explain why those are bad practices or give link to resource for further reading. **For example:** * One anti-pattern common for new NHibernate programmers is to use identity/native POID's instead of ORM style onces. Read mor...
100537
Is it a code smell if an object knows a lot of its owner?
In our Delphi 2007 application we are using a lot of the following constructs FdmBasic:=TdmBasicData(FindOwnerClass(AOwner,TdmBasicData)); The FindOwnerClass travels the Owner hierarchy of the current component upwards to find a specific class (in the example TdmBasicData). The resulting object is st...
100544
The best method to get personal projects done
I have numerous personal projects I've begun and never seem to finish because I get sidetracked with other ideas. I was wondering what the best method to get personal projects done is? Any tricks or tips to it? The problem is I get a spurt of inspiration on some projects, and I don't wanna lose track of my ideas and ri...
100551
Will this referral code scheme work?
I'm thinking of implementing the following referral code scheme to sell my software: * Anybody can obtain a referral code. They just provide an email and I send them the code. * With that they can recommend the software to their friend, etc. * Each time someone buy a license using a referral code, I give 10% of t...
100553
Should we choose Java over C# for a new project?
We have a team of .NET developers (C#) with a range of experience from 2 to 6 years. Over the last few years we have been developing Silverlight, ASP.NET MVC, and WPF applications. However, there is a new two year project which means we will develop a HTML5 application on Linux. The company I work for would like all de...
100561
Do Web Applications and The Cloud provide better Career Opportunities than Systems Programming?
As the years progress , I can't help but see how web apps and the cloud is replacing normal computer software. Developers of systems programming languages like C/C++ are going down the hill and PHP / ASP.NET(C#) is rising to the skies (cloud?). Since I am a serious C++ fan and like to develop mostly in C++, I was wonde...
100567
When is a loop "non-trivial"?
Is it correct to call a loop that you do not know the limit at compile time `"non-trivial"`? If you know that you will be using a value from a class that will be in a range e.g. between 0-1000, is that still non-trivial? e.g. Where ISomeInterface.MAX_LIMIT is always between 1-1000: public bool someMethod(...
100575
How to design an algorithm-heavy and object-light application
Other than vertices, edges, faces and meshes, my geometry processing project/application has only about half a dozen other entities such as curves on surfaces. However the majority of my code is dedicated to geometry processing. Being a naive programmer when I started this project, I implemented the various geometry pr...
100587
How do I get a job as a game developer?
I'm an entry-level programmer just out of college. As I've found out, I don't really enjoy working on "boring" applications like networking, firewalls, and such. My dream job would be something like a game developer. What should I be focusing on to move into games development? Are there specific technologies or languag...
100600
Google Native Client - The end of client/server side programming?
As some of you may know already, Google Native Client is going to be released with Chrome 14. Google native client is a technology that allow us to run native code(C, C++) on the web. (Cross-browser). I heard it's pretty secure as well. Is it the end of client/server side programming? The end of javascript, php, asp.ne...
100601
Java class version specific naming conventions
I have to create an Adapter between two software (mech. simulation, non-cs). Assuming we have a class named `ThatThing`. I have to handle various vendor specific implementations. These versions don't have meaningful names (unlike eclipse helios, indigo etc.). **1\. How should I name a class that should express version ...
100611
best approach to learning for an undergrad operating systems course?
what is the best approach to learning for an undergrad operating systems course in order to understand the concepts and get a good grade in the exam? I know that some courses can be mastered through diligently reading the textbook or attending lectures while for others the concepts can only be understood by doing hands...
100615
Is it a good idea to do contract work for a former full time employer?
Assuming: * The employee and company are parting on good terms * The new company is OK with a little contract work as long as it doesn't distract from the new job * The former company wants the help and the employee is willing to work a few hours a week Is it a good idea to do contract work for a former full time...
100617
Are there any notable examples of business disasters directly attrutible to open-source software?
In "enterprise" environments, I've observed a strong prejudice towards proprietary software. Even in large business that use Java, it is unusual to find MySQL or PostgreSQL, and WebSphere and WebLogic are strongly preferred over JBoss or Tomcat. This is very understandable. While many developers prefer Tomcat or Postgr...
100618
Wrapping basic functions in high-level functional-programming languages
I'd like to know if there's a general guide or best practice for wrapping basic functions. Let's take J for example. It has several 1-or-2 character "functions" called primitives. Examples: * `,` : Flatten a matrix or append to a vector * `{` : Catalogue combinations or take nth item of a matrix * `{.` : Take fir...
100632
Is this interview question real or a communication skills test?
I've been to about 50 interviews in my life. Many of them I've done just to get experience, and keep doing. The question I keep hearing again and again is > Are you more a front-end or a back-end developer? I program mostly for the web, but 2-3 years ago I was database developer, and even wrote a desktop app. And if I ...
100637
Functional testing must be done by external party to avoid bias?
Our developers demand that someone external to the development team completes the functional testing. Their argument is that they are biased and cannot test their own code as they are too close to it. Our last round of testing is with the client in the form of UAT. To be clear by 'functional testing' I mean testing the...
100650
How to organize Javascript and AJAX with PHP?
My javascript is getting out of hand for my PHP application. I have 20 tags that link to various javascript files in a javascript folder. Each javascript file basically controls one element on the DOM. And, if the javascript file uses AJAX, then it will have a corresponding PHP file that the AJAX will call. For example...
100656
I'm questioning my education choice because they say there's no place for old programmers
> **Possible Duplicate:** > How old is "too old"? I'm about to start CS next year. I love both the coding and the mathematical aspects of programming. However, recently I encountered multiple rants about how it's impossible to actually be a programmer over 45, unless you're in a managing position or filling a very s...
100665
function pointers are so complex to me
I found this code sample in this answer by Armen Tsirunyan. class MyClass { public: typedef void (*funcPtr)(int, int); MyClass(funcPtr whatToCall) { callme = whatToCall; } void myClass::callMain() { callSomeApi(callme, <some argum...
100671
Making money from developing Open Source Software. How does that work?
> **Possible Duplicate:** > Making money with Open Source as a developer? I've been hearing recently that more and more developers contribute their efforts to many open-source products. Being a novice in many aspects of software development I've never thought about myself as being a member of a team that builds a pr...
100678
What techniques do you use when dealing with a difficult project manager?
I'm currently working on one part of a technical data heavy project. The project manager in charge of this project is what one might term "An Old- School Project Manager" in that he has absolutely no knowledge of the application domain or anything remotely technical whatsoever - in his own words "What he does is Delive...
100680
When should you rewrite?
> **Possible Duplicate:** > When is a BIG Rewrite the answer? In Joel Spolsky's famous (or infamous) article Thins You Should Never Do, Part I, he makes the case that doing a rewrite is always a wrong move because: 1. It automatically puts you behind (your competitors/schedule/etc.) 2. The code probably isn't as...
1007
What traits do the best testers you've worked with have in common?
Tester and blogger Lanette Creamer recently posted this question on Twitter: > If you are a professional software developer who works with testers, think > of the best testers you know. What traits do they have in common? I thought it would make an excellent question for here. My thoughts are: * They want to remove a...
100711
Is it time to do away with 'front-end' and 'back-end' as tech jargon?
It seems that the primary usage of these terms is either: 1. mutual mystification of contractors and/or clients who don't know what they are talking about or how to talk about it, 2. the innocent and ignorant (see this question) , or 3. laziness to avoid having to say user-interface/user-facing or business logic/...
100725
Should I be concerned if I have nothing to do during an internship?
I have been an intern at this company for about four months now. At first, it was great because I didn't have a ton of hours, the work was interesting, and it didn't interfere with school. However, once summer started, some problems turned up. They changed my direct supervisor from the person who managed the programmer...
100738
MVVM light Communication
I am working on a large MVVM application. I am using the MVVM light toolkit for this. The application is like a web browser with back and forward buttons. The main view is an user control. I laid the back and forward buttons in the main view user control. The main view in turn has user controls. The user controls chang...
100744
iPhone development options for the [from-my-cold-dead-hands] C developer
Please forgive the humor of the title but it certainly gets my point across. I am quite familiar with C code, I can write it in my sleep and after reading through a few tutorials on iPhone development and Objective-C, I'm beginning to feel like I'd rather avoid Obj-C at all costs. It's not that it's unlearnable or "har...
100768
How can I be most productive in Visual Studio when limited to small screen space?
I'm a student, and I do a lot of code on a small (12.5", 1366x768) laptop screen that I carry from class to class. Most programming environments are designed with the idea that someone has large screen size available, because most programmers do in fact have access to large screens. However, large screens are difficult...
100790
Freelancing as an individual. Products as a company. Should I integrate the two to grow?
When I started my company in 2005, I began with freelancing projects, but quickly moved to products. My personal site listed my consulting availability and portfolio pieces, which included a selection of the products sold by my company. Over the years, the company has gained rep through the products, and my personal si...
100792
API design pitfalls in C
What are some flaws that drive you nuts in C APIs (including standard libraries, third party libraries, and headers inside of a project) ? The goal is to identify API design pitfalls in C, so people writing new C libraries can learn from mistakes of the past. Explain why the flaw is bad (preferably with an example), an...
100804
What is an algorithmic programming language?
"... You need to understand the core language: is it algorithmic, functional, object-oriented? ..." - Effective Java, Joshua Bloch, 2ndEd. 2008. Foreword, p xiii Functional: Lisp, OO: Java, but what is ( would Bloch mean by ) an algorithmic programming language?
100833
Need to make a stock inventory application
I need to make an application for my dad to keep track of stock trading inventory. He trades shares for himself and for his clients and would like to keep the records, things like buy/sell price of shares, profits, loss, date etc etc for his shares and his client shares and would like various kind of reports/views. He ...
100839
Should we hire someone who writes C in Perl?
One of my colleagues recently interviewed some candidates for a job and one said they had very good Perl experience. Since my colleague didn't know Perl, he asked me for a critique of some code written (off-site) by that potential hire, so I had a look and told him my concerns (the main one was that it originally had n...
10084
Any other guides out there like Why's Guide to Ruby and Learn You Haskell?
I was looking for some guides to start programming with, I'm a college student and I'm learning Ruby as my first language (Side-question, is that something good to start with?). I found _Why's guide to Ruby and I also found Learn You Haskell (which is of course not Ruby) and I was curious if there were any more guides/...
100871
Resources for understanding iOS architecture
I recently finished reading Randall Hyde's excellent book Write Great Code: Volume 1: Understanding the Machine, and I have a much better knowledge of what's going on under the hood now. I want to start making iPhone apps, and there are lots of guides for that. Embracing my inner Hyde, however, I want to first learn ab...
100898
Domain-Driven-Design - external dependencies in the Entity problem
I'd like to start Domain-Driven-Design, but there are several problems I'd like to solve before starting :) Let's imagine I have a Groups and Users and when user wants to join a group, I'm calling `groupsService.AddUserToGroup(group, user)` method. In DDD I should do `group.JoinUser(user)`, which looks pretty good. The...
1009
How do I sell my software on the Internet?
I'd like to sell my software on the 'net but am not sure how to do the whole Merchant setup. I have access to Commerce Server 2009, and I want to seem professional so a plain old PayPal account is out. What do I need to know/do to sell a few things using ASP.NET, accept credit cards, and what not?
100901
Do you write unit testing or TDD as a line item requirement into your contracts or statements of work?
If you do, do you discuss coverage, continuous integration, quality control, or anything related to the difference between unit testing, functional testing and TDD in general? If clients ask, do you simply state that you will unit test, but leave out specifics?
100903
What would motivate you to do free programming work for work after work?
I'm not talking about working overtime for a project, but R&D, or test bed applications that benefit the company. These would become teaching tools, and eventually sales tools. I know it sounds crazy to even ask, but I'm seeing a trend in this industry with regard to rapidly changing technology, and a problem with gett...
100914
What do you do to make the client understand that requirements not mentioned in contract should be charged separately?
I've done a very small project for a specified amount of payment. The project was some client-side validation code. However, now client asks for code improvement (general code improvement including server-side, not mine which was purely jQuery and client-side) and says that these requirements are obvious duties of deve...
100939
Is SQL important if I know ORM frameworks well?
I don't have any serious experience in SQL and I even hate to write SQL instead of LINQ. I am happy enough with ORMs. From the employers and sector view point, is it important to know SQL? Do I have to master on it? Are companies that prefer pure SQL over ORM frameworks a "dinosaur" in the programming world?
10094
How does office bureaucracy affect code quality
I'm interested in stories where **office bureaucracy** has had direct effect on the final **code quality** result. For example, a friend just told me that at his previous work place the version control system was so bulky that programmers were not allowed to create new "modules" (root directories in the source tree) wi...
100945
What's the best way to logically compare two XML files?
I want to compare two XML files logically. That means that following text lines should be the same for the comparison tool: 1. <test><hello/><test/> 2. <test> <hello/> <test/> I'm a Windows developer and tried some comparison t...
100956
What kind of licensing is required for Visual FoxPro?
I am thinking of developing customized software for desktops in Visual FoxPro 9 and want to know what type of licensing is required. As a developer, would I need to have a Visual FoxPro 9 license and would my users need to have the End User License? What type of licenses would be needed for commercial release? How woul...
100958
Is it wise to accept for a backend developer to work only on the Front end part of the application only because you even know it well?
I am a python developer , i have experience in developing web applications using python. Since i deal with web , i have to know some knowledge about the front end part , hence i even learned HTML, CSS & JS. I have chosen python as my career domain. I recently moved onto a new R & D company , they hired me as a python d...
End of preview. Expand in Data Studio

CQADupstackProgrammersRetrieval — BEIR, unified schema

A normalised copy of the dataset behind the mteb task CQADupstackProgrammersRetrieval, one of the tasks of the BEIR benchmark as mteb defines it (a member of the aggregate task CQADupstackRetrieval). Same queries, documents and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by every dataset in this collection.

Source mteb/cqadupstack-programmers @ 6184bc1440d2 (the revision pinned in mteb)
Domain · languages stackexchange · eng
Queries / documents / qrels 876 / 32,176 / 1,675
Qrels per query min 1 · mean 1.912 · max 149
Score values 1 ×1,675
Layout queries · corpus · qrels, split test
License cc-by-sa-4.0

Schema

config columns rules
queries id: string, text: string ids unique and non-empty; every query has ≥ 1 qrel
corpus id: string, title: string, text: string title is always present ("" when the source has none)
qrels query-id: string, corpus-id: string, score: int32 referential integrity to both tables; no duplicate pairs; no floats

Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator before publishing; provenance.json records the source file hashes, what changed, and the output file hashes.

What changed from the source

  • byte-preserved all text — no whitespace, newline, or control-character normalisation
  • cast qrels.score double -> int32
  • kept 3 documents whose text is identical to another document's — a property of the source; note that models embed such documents identically and retrieval ties among them are broken by corpus order
  • renamed _id → id
  • renamed source splits (queries←queries/queries, corpus←corpus/corpus) to test

Load it

from datasets import load_dataset
queries = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "queries", split="test")
corpus  = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "corpus", split="test")
qrels   = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "qrels", split="test")

License and attribution

The data is redistributed under the source's terms — cc-by-sa-4.0. All credit belongs to the original authors; see the source repository and the references in mteb's task metadata (http://nlp.cis.unimelb.edu.au/resources/cqadupstack/). This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers.

License discrepancy. The upstream dataset card declares cc-by-sa-4.0 while mteb's TaskMetadata declares apache-2.0. This card carries the upstream value as the more conservative choice.

Downloads last month
49