Skip to main content
deleted 77 characters in body
Source Link
Robert Harvey Mod
  • 180.6k
  • 55
  • 267
  • 319

It kind of depends on the question. IfIf the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. InIn general, if the question isn't even tagged Java, I would avoid features that require knowledge about a specific version of Java.

It kind of depends on the question. If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. In general, if the question isn't even tagged Java, I would avoid features that require knowledge about a specific version of Java.

If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

In general, if the question isn't even tagged Java, I would avoid features that require knowledge about a specific version of Java.

added 34 characters in body
Source Link
Robert Harvey Mod
  • 180.6k
  • 55
  • 267
  • 319

It kind of depends on the question. If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. In general, if the question isn't even tagged Java, I would avoid version-specific Java features. that require knowledge about a specific version of Java.

It kind of depends on the question. If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. In general, if the question isn't even tagged Java, I would avoid version-specific Java features.

It kind of depends on the question. If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. In general, if the question isn't even tagged Java, I would avoid features that require knowledge about a specific version of Java.

Source Link
Robert Harvey Mod
  • 180.6k
  • 55
  • 267
  • 319

It kind of depends on the question. If the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?

On the other hand, if you're answering a question that is language-agnostic, a Java Stream seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.

But again, it depends on the question. In general, if the question isn't even tagged Java, I would avoid version-specific Java features.