Tag Info

Hot answers tagged

83

References might be implemented by storing the address. Usually Java references will be implemented as pointers, but that's not required by the specification. They may be using an additional layer of indirection to enable easier garbage collection. But in the end it will (almost always) boil down to (C-style) pointers being involved in the implementation of ...


42

Why? Because, although consistent terminology is generally good for the entire profession, language designers don't always respect the language use of other language designers, particularly if those other languages are perceived as competitors. But really, neither use of 'reference' was a very good choice. "References" in C++ are simply a language construct ...


41

I'm not sure if this is what you're looking for but NIST has the Dictionary of Algorithms and Data Structures. It's a pretty comprehensive dictionary for data structures and algorithms (doh) and usually a good to place to look when I find something I never heard about before.


31

Take your pick from devcheatsheet.com.


24

Your assertion that references are rarely used is incorrect. As others have already mentioned there's a ton of native functions that use references, notable examples include the array sorting functions and preg_match() / preg_match_all(). If you are using any of these functions in your code, you are also using references. Moving on, references in PHP are ...


17

I don't know if Stroustrup ever said anything like that. I've never heard that. I did once attend a lecture by Brian Kernighan in 1992 or thereabouts where Kernighan pointed out humorously that he routinely wrote programs that used every feature of C and had never even come close to writing a program that used all the features of C++, but his point was not ...


13

In a comment to your original question, I mentioned that I'd seen something similar, but I couldn't find it. Well, I found what I was thinking about. From Stroupstrup's "interviews" page, there is a link to a PDF ("Interview by Ryou Ezoe") Page 9 of the PDF has the quote I'd remembered. It reads as follows (Stroustrup speaking): Even I can’t answer ...


11

The Skiena book is a good reference also: http://www.algorist.com/ The book covers everything from background through different problem areas (data structures, searching/sorting, graph problems, combinations/permutations/heuristics) and even the issues of P vs NP-complete problems. The particularly relevant section of the book to this question is a catalog ...


11

I would break it down into sections like What to know week one, including people, names and titles, bookmarks, logins needed (no p/w!) Deeloper Machine Setup. Describe the process of a setting up a new developers machine in detail. This is usually 'expected' to only take a day, but often it take 3-5 days in reality. The development process, how work is ...


11

is it just an exaggeration? ...this affirmation should be present on his website It's just an exaggeration and you are right, affirmation of that is present on his website, right in the FAQ page. Stroustrup's position on C++ complexity is clearly stated in FAQ -> Why is C++ so BIG? Full quote of this section is presented below for your convenience, I ...


9

I use TiddlyWiki a single html file wiki with lots of plugin possibilities, it combines great with dropbox. The getting things plugin makes it into a great tool for managing personal projects.. And as such i use it for current projects, little things I need to remember server names who knows what internal sites hour codes to book hours. ...


9

When I join a new company, it usually fills up with: Remote desktop / VM names. Folder paths for project documentation. SQL scripts for common fixes/cleanups in data. Common web-service end points / WSDL locations (I know you SOA guys...UDDI ;)) URL's to time sheet systems, bug tracking systems etc.


8

Structure and Interpretation of Computer Programs and the Art of Computer Programming are the closest I've seen to what you seek. SICP walks through common data structures and algorithms. While it's not encyclodpedic, it is pretty good a covering a wide swath of territory in a limited amount of space. What can be said about The Art of Computer Programming ...


8

There is nothing wrong with taking those temporary references - in fact it may be preferable in some cases because you can name the reference. If that particular reference has a particular role that may not be immediately obvious from the array index then the name will add clarity. If the discussion centers around "performance", then the guideline is the ...


8

Refcardz has lots of them.


8

Cormen, Leiserson, Rivest, Stein - "Intoduction To Algorithms" Introduction to Algorithms, more commonly known as CLRS, is the standard algorithms textbook at a large number of universities. It covers a range of algorithms for a variety of applications, including sorting, searching, graph theory and basic numerical computation. It also includes a ...


8

This is very possible. If you have defined an identical namespace and type name on different assemblies (or in your project and the added assembly), you will get a conflict with any code that tries to use one or another of these types. If you ensure you have unique namespaces, as do your references you wouldn't have this problem. Another possibility has ...


8

A reference is a thing that refers to another thing. Various languages have ascribed a more specific meaning to the word “reference”, usually to “some thing like a pointer without all the bad aspects”. C++ ascribes a specific meaning, as do Java or Perl. In C++, references are more like aliases (which can be implemented via a pointer). This allows pass by ...


7

JQuery Cheat Sheet


7

In the C++ view of the world, a literal does not occupy any memory. A literal just exists. This view makes that there is no address for a pointer to refer to when it would point to a literal and for that reason, pointers to literals are forbidden. Const references are actually the exception here in that they allow apparent indirect access to a literal. ...


6

Typical scenario: customer says "Hey, this doesn't work anymore". I spend half a day finding a solution, and tell the customer what to do. One year later, another customer (or possibly the same one, of course) asks the exact same question. No way I can remember the complete solution after a year, so I effectively lose half a day looking for the exact same ...


6

XKCD's Linux cheat shirt isn't 100% thorough, but it's pretty convenient:


6

Yes, I would get it. For the small amount of money a month that it costs, you really can't beat what's on there. They have top notch people making the videos, and there is a load of content. What's nice is that They add new content (they just add Mastering C# by Jon Skeet). If at some point in time you don't get any more value, you can always cancel. ...


6

Although NetBeans has a nice GUI editor, I would recommend that you start by learning Swing, with the Java tutorials. Swing is the GUI framework often (but not exclusively) used for Java applications, and it's also the framework supported by the NetBeans GUI editor. Once you understand Swing, you can dive into learning the tools provided by NetBeans.


6

C++ references are different again. They have to be initialized and can't be null (at least not in a well formed program) and can't be reseated to refer to something else. a C++ reference is much more like an alias for an object. Another important difference between pointers and Java/C++ references is that you can take the address of a pointer you cannot ...


6

Since 1998 C++ is an ISO international standard, which basically means it's not just one person redacting it. It's a committee with a lot of people arguing about features to add or things to change (after a proposition have been made ready for review). It also means the details of the language might not be understood fully by all committee members, mainly ...


6

Not sure what you mean with reference driven programming. From what I gather, you're wondering what the advantages of event-driven programming are as opposed to writing code, and then using a bunch of branches to determine when to call a given method. Before I set off, allow me to be pedantic and point out that: a module can't listen for any event, nor can ...


5

In graduate school in Physics I really enjoyed Numerical Recipes in C. It does not cover all algorithms, of course, but gives excellent explanations of many that are incredibly useful in the sciences: http://www.nr.com/ The book covers how to solve: Linear equations Linear Equations Interpolation and Extrapolation Integration of functions Function ...


5

I have not read it, but I'd recommend the book by Martin Fowler on the subject "Domain Specific Languages". Many of his other books have proven to be very insightful and helpful in my thinking about software development. And I expect the DSL book to be as much so (it is on my to read list). http://martinfowler.com/books.html


5

You can do the same thing as in RMDBs, you reference by identifiers. I use MongoDB, so we can talk about this from that point. Tag: { _id: ObjectId('tag id'), tag_name: "nosql", tag_description: "blahblah' } Then in the Post { _id: ObjectId('post id'), tags: [ ObjectId('tag1 id'), ObjectId('tag2 id') ], title: "title", // etc.. ...



Only top voted, non community-wiki answers of a minimum length are eligible