Hey, I tried to help...I'm a C# dev.
I've had people tell me that avoiding VS2012 is probably the best idea for now so you may want to consider that I guess![]()
Since the IDE talk is still somewhat fresh, what is the consensus for Codeblocks? Is it actually useful or not?
I have access to Visual Studio 2012 but I would rather not have to migrate over to Windows from Linux to use an IDE if I don't have to do so.
Is there a summary of changes with VS2012? I really like 2010.
Programming in two (easy) languages I don't have much experience with for a project that is due in two weeks.
Not entirely sure what I'm doing. Experienced members of team disappear frequently.
THIS GONNA BE GOOD
//Assume quantity is 1000.
class Pump
{
public:
void setQuantity(double amount);
void setPricePerLiter(double price);
void literCounter();
void displayLitersBoughtAndCost();
void resetPumpCounters();
void displayCostPerLiter();
double decrementQuantity();
double litersUsed;
double pricePerLiter;
double cost;
double quantity;
};
double gasRemaining;
gasRemaining = pumpOne.decrementQuantity();
double Pump::decrementQuantity()
{
return (quantity-1.0);
}
double Pump::decrementQuantity()
{
quantity -= 1.0;
return quantity;
}
It's been alright so far, mostly looking at some of their code and trying to emulate stuff they did.
PHP/HTML + MySQL.
class person{
public:
class luggage{
public:
int id;
void setid(int x){ id = x;}
luggage(){};
private:
};
int H, E, P, id;
vector<luggage> circs();
person(){};
private:
};
vector<person> j_vector(100);
int result = 5;
[B]j_vector[z].circs().at(d).setid(result);[/B]
error LNK2019: unresolved external symbol "public: class std::vector<class juggler::circID,class std::allocator<class juggler::circID> > __thiscall juggler::circs(void)"
class Person{
public: //stuff goes here
private: //stuff
};
class Luggage : public Person {
public: //stuff
private: //stuff
vector<person> j_vector(100);
int result = 5;
j_vector[z].circs().at(d).setid(result);
vector<luggage> person::circs()
{
// return vector here
}
vector<luggage> circs; // Without the parentheses
j_vector[z].circs.at(d).setid(result);
But you probably meant to declare it as a variable instead:
Code:vector<luggage> circs; // Without the parentheses
Code:class person{ public: class luggage{ public: int id; void setid(int x){ id = x;} luggage(){}; private: }; int H, E, P, id; vector<luggage> circs(); person(){}; private: };
Congratulations, you now qualify as a professional PHP-coder!
Great! I'll slap that on my resume.
I ended up sorta finishing what I was working on last night. It works except I haven't figured out how to properly store the date based on a user's input. (User enters date in the format of YYYY-MM-DD, program makes sure the day entered is withing these bounds (5 days from now < entered dated < 45 days from now), then stores it in the database). Not sure if I should store it as a string, or store it as a "date" from PHP. I use strtotime on the user's entered string to convert it to a PHP date.
To those with a bit of experience with different languages:
Which language is the most "fun"?
Great! I'll slap that on my resume.
I ended up sorta finishing what I was working on last night. It works except I haven't figured out how to properly store the date based on a user's input. (User enters date in the format of YYYY-MM-DD, program makes sure the day entered is withing these bounds (5 days from now < entered dated < 45 days from now), then stores it in the database). Not sure if I should store it as a string, or store it as a "date" from PHP. I use strtotime on the user's entered string to convert it to a PHP date.
To those with a bit of experience with different languages:
Which language is the most "fun"?
Data types a date should be stored in: DATE/DATETIME/TIMESTAMP
Don't store it as a string![]()
To those with a bit of experience with different languages:
Which language is the most "fun"?
As a note would suggest not using Timestamp unless you are sure you want it and understand how your database implements it. Otherwise you can get in trouble with udpate queries and that timestamp being automatically changed to the current time. Datetime is always a good choice.
To those with a bit of experience with different languages:
Which language is the most "fun"?
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
VISIBLE VAR
IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
KTHXBYE
To those with a bit of experience with different languages:
Which language is the most "fun"?
Obviously that's gonna be pretty subjective. For me, getting stuff done is fun so I enjoy the language I'm best at: C#.To those with a bit of experience with different languages:
Which language is the most "fun"?
To those with a bit of experience with different languages:
Which language is the most "fun"?
To those with a bit of experience with different languages:
Which language is the most "fun"?
What aspects of a language give you enjoyment?
Probably not going to be an option this late in the project, but it's something to consider!You would have an easier time storing it as a date or datetime.
And I dont know if you can use jquery or not but I would suggest their date picker. It can restrict the date the user can input making it easier for you.
Well, that's what I'm doing right now as far as I can tell. User enters date in a specific format (wont work otherise, we don't accept the date if it's not entered in YYYY-MM-DD), I use strtotime($theirdate) in PHP which converts it to... a Unix timestamp I guess, and then I store that in the DB.Why would you store it in anything else but your DB native date, datetime or timestamp field?
LOLCODE:
Code:HAI CAN HAS STDIO? I HAS A VAR IM IN YR LOOP UP VAR!!1 VISIBLE VAR IZ VAR BIGGER THAN 10? KTHX IM OUTTA YR LOOP KTHXBYE
Well, that's what I'm doing right now as far as I can tell. User enters date in a specific format (wont work otherise, we don't accept the date if it's not entered in YYYY-MM-DD), I use strtotime($theirdate) in PHP which converts it to... a Unix timestamp I guess, and then I store that in the DB.
I haven't created the PHP to call the stored info from the database and display it on page, so I have no idea what our stored date from the DB is going to look like yet.
Please dont do this. Just make the input type date.
MIPS assembly
What are you doing here, jon?
writing a compiler for this must be fun
Yes, technically.I should still technically work if we store it correctly right? Personally I don't really care of this thing is the biggest pile of crap, so as long as it works for our demo day in class. Professor doesn't care how we do it, so as long as we do it.
Can only use the date input type if we're using Google Chrome, Opera, or Safari according to w3schools.
MIPS assembly![]()
Ask the user how many
fibonacci numbers
they want from the sequence
and print
that many one number per line.
To those with a bit of experience with different languages:
Which language is the most "fun"?
Anybody know of any quirky informative videos about programming that I could show some high school students next week? I get the joy of being shadowed x_x