I have edited this question as the code in it is not bracketed properly. One reviewer accepted it, but the OP rejected it. But what is the logic behind it? I want to draw moderators attention.
I often reject such edits, albeit with a different reason.
The code posted by OP is how OP wrote it. It's the code he wants reviewed. Lacking decent indentation is something often pointed out in a review. This being edited away by somebody else than OP is against his intent and shouldn't happen ...
public class Matierial
{
public string Id { get; set; }
public string Description { get; set; }
public Status Status { get; set; }
public IList<Measurement> Measurements { get; set; }
}
I don't want to show the measurements on my Index.
Learn a new language!
Write anything1 in a language you're completely unfamiliar with.
1. Ideally, something more complicated than "Hello World" and something more interesting than FizzBuzz.
OK, weekend challenge.... we all solve the Rock Paper Scissors Lizzard Spock problem with our 'favourite' language, and we all have to post a question here with our solution to be reviewed.
I have only coded in C++ and a little bit in python, I have an assignment to code in java and I don't know how to start. Could someone give me a hand?
here is the assignment:
Write a Java program that uses arrays and strings to simulate a deck of cards.
Your findCard met...
@CaptainObvious Here's a good start: public class WriteSomeCode { public static void main(String[] args) { System.out.print("Look 'ma, I started my card finder!"); } }
I would recommend using a constructor function to create the objects:
function FolderData() {
this.allAttachments_vector_counter = 0;
this.allAttachments_vector = [];
this.attachment_position_dict = {};
this.extraDetails_dict = {};
}
FolderData.prototype = {
constructor: ...
In SQL Server, it's possible to insert into a table using a SELECT statement:
INSERT INTO Table (col, col2, col3)
SELECT col, col2, col3 FROM other_table WHERE sql = 'cool'
Is it also possible to update via a SELECT? I have a temporary table containing the values, and would like to update ...
SQL ones were: 1. Difference between Inner/Outer join, 2. Difference between Where/Having, 3. Examples of good/bad PK's, 4. is an SSN a good PK.
C#/.NET ones were: 1. Does C# support multiple inheritance (more than one base class directly), 2. Does C# support multiple interface inheritance, 3. Difference between base class and interface, and I can't remember the fourth...let me think here.
I never got programming questions. They usually cut to the chase and ask for opinions about current projects or projects they're about to start. To measure state of mind and more of those words.
Background
I'm currently working on a web-based app using ASP.NET so we can quickly change test settings for our products. I've been working to make the UI easier to use by adding modals, AJAX, and some custom JavaScript to do things like change the order in which things are tested, but I don't ...
Hey look, I just wrote a query to fix in the neighborhood of 10K exceptions that up to this point had been done by hand. Other guy had been working on this on-and-off for over a year and had not made a dent.
I am supposed to address the situation, and I wanted to know if I could have the Customer table take and validate R_NAME, and pull the other values from Realtor.
@Hosch250 Very easily, just need to write a little UPDATE query. And then triggers to automate it, if you must keep those redundant fields in Customer table.
update "cust"
set "c".R_ID = "r".R_ID
from Customer as "c"
inner join Realtor as "r"
on "c".R_PHONE = "r".R_PHONE
and "c".R_NAME = "r".R_NAME
where "c".R_ID <> "r".R_ID
So you're asking hypothetically, or, are you remarking that you "don't know how to update, create, rollback, or do anything really interesting with SQL" but wouldn't mind learning?
So I finally actually did something on the site instead of talking to you people in chat: http://codereview.stackexchange.com/questions/102217/web-based-test-settings-manager-app
Is there any way anyone thinks I can improve my question, or is it good for now?
I wrote an ugly mess of a javascript funtion that pops up a dialog box based on validation data when a checkbox is clicked. I am wondering if it can be refactored somehow.
varButtons contains code for which buttons are used as a parameter to BootstrapDialog function.
//checkbox validation
var ...
I'm studying C# and trying to work on efficiency and making the best use of C#6.0 features. I have created the following program based on an exercise challenge in a book, and have used Resharper to fix certain things; however, I still feel my novice knowledge of C# is preventing me from creating...
I would have started by looking over more than just the question in the linked question. You should have looked at the answers.
First of all, while the added where clause option in switch statements is a nice addition to the language, it doesn't make anything better here.
Moreover, we're faili...
How can I truly randomize the way cards are dealt?
How can I remove a card from the deck as it's dealt?
I have no clue where to start when it comes to figuring out the questions above.
using Sandbox.Properties;
using System;
using System.Windows.Forms;
namespace Sandbox
{
public partial ...
of all the legacy issues I have to deal with, thankfully the largest date issue I have is that they're stored in datetime fields instead of datetime2 or datetimeoffset