QL design? via /r/learnprogramming


QL design?

So, I submitted a resume for a curious job posting which was hilariously vague. "Looking for Visual Basic, VB.NET, or VBA coders!" I got a call this morning, "I know it seems vague, I don't know what to expect either, but the manager is looking for .NET experience and QL design." "Did you say SQL design?" "No, it just says QL…" I did not pry into it, but This Wiki page seems to be a QL, but I don't see how a Java language would work in a .NET environment. Help?

Submitted July 31, 2015 at 07:38PM by sql_no_run
via reddit http://ift.tt/1Dgrbx7

I took class for a quarter on learning C. How should I proceed? via /r/learnprogramming


I took class for a quarter on learning C. How should I proceed?

I decided to take my first programming class in college and learned some C basics. I did well, but it wasn't that hard of a class. We learned the basics with the last portion of the class dedicated to structs, pointers, and recursion. At my school, the next class in the series teaches you C++, and this is known to be the weeder class. I don't plan on taking it because I'm in a major with a rigorous class load, and its not computer science or computer engineering.

I want to learn more programming, so I plan on doing it myself. With the knowledge that I have of C, should I continue onto C++?

And if I do, to anyone who has taken a C++ class, what are the main things you have to learn? The hardest things? You don't have to explain them to me. It would be enough to just name the concept so I can google it.

Submitted July 31, 2015 at 07:40PM by chealous
via reddit http://ift.tt/1DgrbNE

Denotational Syntax: Valuation Functions via /r/learnprogramming


Denotational Syntax: Valuation Functions

I'm having trouble understanding some of the lecture slides from a class I am taking (Principles of Programming Languages) and I've been stuck on it for a few days. The slide states (note AS stands for Abstract Syntax and SA stands for Semantic Algebra, I've already learned how to define these):

Finally, we define the valuation function, V : AS → SA.

It is common to ‘partition’ the valuation function into a number of functions whose domains correspond to the abstract syntax nonterminals,

P : Program → Nat → Nat⊥

C : Command → Store⊥ → Store⊥

E : Expression → Store → Nat

B : Boolean-Expression → Store → Bool

N : Numeral → Nat

The meaning of a program (in this language) is a function that maps Natural numbers to Natural numbers.

P : ℕ → ℕ⊥

For example, an input number, argc, is mapped to a number ‘output’ as the final value of the variable x, i.e., P (argc) → x.

Note, that P may not be defined for a given argument. Hence, the codomain of ℕ (i.e. ℕ and the bottom element, ⊥ ).

For example, in the program we’ll examine later,

P (0) → ⊥

I'm having trouble putting this in plain English. For instance, I really don't know what the uptack (⊥) is supposed to mean. What I'm getting from 'P : Program → Nat → Nat⊥' is that it will a program will produce a Natural number which will produce a Natural Number or Bottom element? I don't know what that means.

Submitted July 31, 2015 at 07:41PM by Ass_Dragon
via reddit http://ift.tt/1DgrbNM

[Java] – Failed my interview, feedback? via /r/learnprogramming


[Java] – Failed my interview, feedback?

Heres the code i wrote for my tech interview: http://ift.tt/1DfkRq7 The problem was when the instructor asked me to do it without using the second for loop, because that means it needs to iterate over the entire input to find the match, how would you solve this problem?

Submitted July 31, 2015 at 06:23PM by kazdum
via reddit http://ift.tt/1DfkRq9