Programmer

Programmer

ManWithComputer

The Internet, IP

Male, 37

I've worked at multiple Internet startups of different shapes, sizes and ambitions. Now I'm the CTO (Chief Technical Officer) of another small company with big dreams. I look nothing like the picture above.

If you copy and paste your homework question in here, I will answer with something that will, at best, get you an F on your project, and at worst, will get you kicked out of school. You have been warned.

SubscribeGet emails when new questions are answered. Ask Me Anything!Show Bio +

Share:

Ask me anything!

Submit Your Question

76 Questions

Share:

Last Answer on September 07, 2015

Best Rated

I am learning C++ and want to know why is it not a good idea to redefined the predefined identifiers cout and fin

Asked by Leo about 10 years ago

Basically, because other people exist. Other people are either going to extend your code someday, or you'll be using code that other people wrote. And if you redefine "cout" or "fin," things will get as confused as if you redefined a common natural-language word like "dog" or "red."

what degree would you reccomend for a person to get into website programming and app development, computer science or computer programming, does either have benefits over the other?

Asked by spartan616 about 10 years ago

This is actually a very perceptive question. In short, if your heart lies specifically in website programming, a programming degree is probably better.

Computer science, properly speaking, is the branch of mathematics that deals with the theoretical underpinnings of computation. Computer programming is a practical, not so much a theoretical, discipline: how do you get a computer to do what you want to do? You could say that computer science is to computer programming as physics is to mechanical engineering. As a mechanical engineer you'd better know some physics, but your interest is mostly going to be in practical applications.

One secret of web programming is that, from a theoretical point of view, it's really simple. A browser somewhere makes a request to your site; based on that, you get some data out of a database; and then you wrap the bits of information you got in some HTML and send it back. What makes it trickier is being able to do that tens or hundreds of thousands of times per second, 24 hours a day, on all sorts of different browsers. But the algorithmic aspects are largely well understood and already taken care of.

Design a calculator that evaluates an infix expressions entered by the user.
- You must use Stacks.
- The calculator accepts the 4 binary operators “+”, “-”, “*”, “/”
- Convert the infix to a postfix expression and display it.
- Evaluate the expr

Asked by kholoud over 10 years ago

Do your own homework.

How do you change a computer application to a mobile app?

Asked by smile over 10 years ago

Generally you don't, but your question gives me an opportunity to explain a few interesting aspects of software engineering, so here we go anyway.

Engineers (software and otherwise) talk about the concept of "coupling." This means, roughly, "If I change Part A of this thing, how much if any do I have to change Parts B, C, D, et cetera?"

Good design usually calls for "loose coupling," which means that you can change one part mostly or totally independently of all other parts. In other words, Part A is a "black box" to Part B: Part B knows that it can get Part A to do something, but it doesn't have to know or care how Part A does that thing exactly, so you can replace Part A with something completely different, and as long as it continues to do the same task that Part A did, everyone's still happy with it.

When you see the opposite, "tight coupling," that means parts work together more closely, and it's a bigger pain to change one, because you have to change many others. Once in a while this is done for performance reasons, but usually it means that the design or implementation is bad.

So as programmers we like to make chunks of code that don't overlap, that only do one thing, and that offer certain services to other chunks of code ("expose an API") without actually committing ourselves to doing those services in a particular way. These high-level chunks of code are generically called "modules" although there are plenty of other terms too, for different contexts.

In particular, if you have an application with a complex UI, you would have one or more modules that did nothing but the UI: a module to put things in windows onscreen, to know what to do if someone clicks here or types there, and so on. But there would be more modules that handle things behind the scenes. Imagine for instance a mapping app where you could either type in an address, or say the address into the mic. These would be two separate modules, as piece of text in a window is a very different thing than a pattern of sounds, but the meaning of the address "123 Elm Street" is the same in both cases, so both of these UI modules would talk to one common module in the "backend," which means basically all the code that does something that the user doesn't see directly.

And this brings us, finally, to an answer of sorts to your question: if you can get your hands on the source code to the original application (which if the application is proprietary good luck with that), and if the UI is loosely coupled to the backend, and if you know how to program in whatever language the application is written in, then you replace the UI modules with modules appropriate to a phone or tablet.

The rest is just details. Thousands and thousands of details.

Hello,
I am using GameMaker to create a small Jump and Run game but when i press the Left key it enters into a Main loop which basically stops the game. Please help ASAP as I need an answer quickly.
Thanks,
Ahmed Jamal

Asked by ajamalm3@gmail.com over 9 years ago

Not a clue, have never touched GameMaker.

Hello I'm still a beginner in uni so if you will please show me how to draw a flowchart for this pattern

*
***
*****
*******

Asked by Shatha about 10 years ago

I can't. The last time I drew a flowchart was...possibly never. They're not much used anymore.

Hello,
i'm building a sharing website for an internet providing company, i want this website to be accessed by only registered users for that company or else the website would be forbidden, how can i manage that? depending on their IP's or what ?

Asked by Sarah over 10 years ago

You should only do this by IPs if the site is going to be used exclusively from their internal network. Otherwise, for a number of reasons, it's not a reliable technique.

If that's not the case, I'd see about implementing single-sign on with their site.