Alaska, we send our children outside to school and they stay there, sigh.
I don't think I'm going to go for a masters, honestly. Time will tell. If I do get one, it will be in China.
Dude my school wanted the paper work in Feb. That's insane.
Mine did that too... Always at the start of your last semester.
Don't stop now... Grab on to all the education you can get with both hands.
Where did you read this?
A lot of the Kaboomers I have known who majored in computer science and programming back in the computer stone age that was the 1970s to mid-1980s have told me they became obsolete in 15-20 years, depending on how hard they worked to stay current on their knowledge. On the other hand, computer engineers were able to stick at it until relatively close to retirement age.
I don't know how the industry works these days, seeing as how we don't have punch cards and no one owns a computer built by IBM...
I imagine the feeling I have now as I listen to Watermark talk about programming is very similar to when people listen to me talk about guns.
Variable name: A name of a variable. For instance, in C
int x = 3;
int is the kind of variable, 3 is the value being assigned to the variable, x is the name. Oldskool programmers would write names like this:
int tmp = tmpctrllr.crrtmp;
Modern programmers would make variable names like this:
int theCurrentTemperatureReadingFromTheTemperatureGuage = theClassThatControlsTheTemperatureGuage.aMethodThatRetrievesTheCurrentTemperatureGaugeReading;
Clearly, the second example is much preferable.
Global: A kind of variable accessible from any part of the program. This is bad practice, because you don't want a function in some obscure part of the program modifying the value of a variable that might be being used elsewhere, in a function, a class, or the main part of the program (the main part is the part that starts running when the program launches, from which all the other classes and functions used in the program are first called).
You've just been skooled.
All I read was moon man speak.
I'm sorry, I can't start any further in the basics of programming than the concept of assigning values to variables. The absurdly long variable name was supposed to be a joke, btw. In practice, I was critscizing ancient, extremely brief and non-descriptive variables as much as modern, unnecessarily wordy ones.
Meh, learning more computer science would take away from time that I could spend learning all the languages in the world and studying history.
public partial class MainWindow : Window{
public MainWindow(){
InitializeComponent(); }
private void First_PreviewTextInput(object sender, TextCompositionEventArgs e){
Regex regex = new Regex("^[.][0-9]+$|^[0-9]*[.]{0,1}[0-9]*$");
String text = (sender as TextBox).Text.Insert((sender as TextBox).SelectionStart, e.Text);
e.Handled = !regex.IsMatch(text); }
private Func<double,double, double> opOfType(String operationName){
switch(operationName){
case "times": return (x, y) => y*x;
case "divide": return (x, y) => y/x;
case "plus": return (x, y) => y+x;
case "minus": return (x, y) => y-x;
default: return (x,y) => -1;}}
private void op_Click(object sender, RoutedEventArgs e){
if(First.Text=="" || Second.Text==""){
MessageBox.Show("Need numbers in both textboxes.");
return;}
Button opButton = e.OriginalSource as Button;
Func<double,double,double> operation = opOfType(opButton.Name);
double firstNum = Convert.ToDouble(First.Text);
double secondNum = Convert.ToDouble(Second.Text);
double outNum = operation(firstNum, secondNum);
Output.Text = Convert.ToString(outNum);}
private void clear_Click(object sender, RoutedEventArgs e){
First.Text="";
Second.Text="";
Output.Text="";}
}
Um... They do have classes in those in places called "schools" and "universities"... They are amazing places. Languages are easy for me though, I wouldn't spend too much money on those.