First job interview

>first job interview
>asked to write hello world in C++
>open visual studio
>hear laughing in the background
>"Actually we just hired somebody else, good luck"

Third time this has happened. Every time I mention visual studio they immediately end the interview. What editor should I learn that will actually get me a job?

Other urls found in this thread:

cplusplus.com/forum/lounge/79437/
twitter.com/NSFWRedditImage

All my interviews have been in notepad or on whiteboard. Google had me use google docs for the over the phone interview

pen and paper is all you need for hello world

This is b8

didn't happen
but i wish it did

#include int main(){std::cout

everyone knows that more lines = more program you dunce

> didn't even #include

You need to use at least 4 windows-specific API calls

>Using VS for C/C++
Enjoy your C99 compatibility.

>What editor should I learn that will actually get me a job?

Why do you need more that a plain text file and gcc?

>programming on windows

How new are you?

/*!
* Hello world! application
*
* \file hello.cpp
*/

#include
#include
#include
#include
#include

/*!
* Dispay message.
*/
void displayMessage();

/*!
* Sentence type
*
* Type of sentence, used to decide how to terminate sentence.
*/
enum ESentenceType {
eStatement,
eExclamation,
sQuestion,
eCommand
};

/*!
* Utility class to prevent unintended copying of class instances.
*/
class nonCopyable {
protected:
nonCopyable() {
}

~nonCopyable() {
}

private:
nonCopyable(const nonCopyable&);
const nonCopyable& operator=(const nonCopyable&);
};

/*!
* Utility function to obtain punctuation mark to end sentence
* of specified type.
*/
inline char getPunctionMark(ESentenceType sentenceType) {
char puncMark = '.';
switch(sentenceType) {
case eStatement : puncMark = '.'; break;
case eExclamation: puncMark = '!'; break;
case sQuestion : puncMark = '?'; break;
case eCommand : puncMark = '.'; break;
default: {
// should never get here
assert(false);
}
}
return puncMark;
}

/*!
* Utility class for creation of instances.
*/
template
class Creatable {
protected:
Creatable() {
}

virtual ~Creatable() {
clear();
}

public:
static TElem* create() {
TElem* e = new TElem;
return e;
}

void free() {
delete this;
}

cplusplus.com/forum/lounge/79437/

>implying that people don't develop Windows software using Windows

Retard.

>he doesnt know

>he doesn't develop

uhhh... most people develop for windows on Linux, even ms devs themselves...

So uhh do they just assume the code is correct without any build tests?

this did not happen

Surprised people are replying to this b8.

was a joke, because every program by a windows person is littered with shit I've never seen as a C++ dev

emacs

Notepad++

What the fuck are you talking about?

virtual ~AbstractHello(){std::cout

forgot karlie browsed 4chins

>delete this

It's true. They test in a VM or deploy to a remote test machine.

No... really?

Visual Studio Code

>Things that never happened.

Microsoft is so deeply inside the rectum of pretty much every company out there they would laugh if you used something else.

Also technically you should also only use the tools that are provided by the company due to standardization but you're just a NEET shitposting.

the include and the int main must be in diferent lines
the # makes the entire line to be a macro

nope

why do people use this garbage?

whats wrong with it?

might be IDE specific, VS doesn't allow it.
I'm pretty sure it's not allowed anywhere though.

#includes should be on their own private lines

>25 yo
>BS Comp Sci UIUC
>use VS2015 + ReSharper allday erryday
>$120k/yr + benefits
Feels good man

emacs

#include main() { puts("hello world"); }

>22:22:22

Because it's still better than Atom, yet free and not a sperg editor.

$ cat hello.cc
#include int main(){std::cout

install gentoo

delicious utility

>ReSharper

What the hell does resharper do anyways? Am actually curious.

>plain text file
Is a file format, not an editor. And to Windows users, it tends to imply use of Notepad, which really isn't ideal for anything more complex than Hello World. An editor with line numbers, at least, makes it much easier to resolve syntax errors.

What specifically makes Linux so better for development? Is it just things like make and an actually usable command prompt?

C/C++ standards say preprocessor directives are terminated by a newline, as there is no other explicit terminator like the ';' for regular code.

Ever tried installing a library on Windows?

>first job interview
>Third time this has happened.

u just got TRICKED

>unreadeable codes are what employers want

Visual studio is amazing, but in reality you shouldn't need that to write cout

Whadaya mean got tricked?

>>cout

I really really hope you don't use using namespace std;

A minimally acceptable answer would be what I put. Of course there are more satisfactory answers like yours that would be more in depth.

No, neither are acceptable.

it sharpers again

or it googles it.

Then this is why your teammates find you insufferable to work with.

If you used a namespace within a hello world program, they would literally hire you just to fire you 2 seconds later for being a faggot

It's an interview you dunce, and obviously a low level one if all they want is "Hello world" in C++.

You ever done an entry level or new grad position interview in your life?

How the fuck are you justifying writing "using namespace std" instead of std::cout.

Anyone that can touch type does not need that retarded shit.

>hello world
okay. what about some actual interview tests?

Seems like something I'd do when hiring.

Not that I'm involved in hiring, but the first thing I'd do is stick a developer on linux machine with a text editor (not ide) of their choice, and a modern gcc. Of course our real development isn't like that at all, we use plenty of tools to make our lives easier, but if you can't hack it with the bare basic tools, you probably don't understand enough to work here.

The time in my life where I train retarded windows based web dev kiddies how to 'cd' and 'ls' is over, and it's never coming back (don't even get my started on people not understanding pipes and stdin/stdout/stderr redirection)

>first job interview
>third time this has happened

Put some effort into this next time

I try to maintain a perspective.
I can work just as easily with hacked tools as professional tools.
When it comes to computer science, as with hacking, my key tenant is maintaining a multi faceted outlook. Be prepared for whatever may cross your path, and educate yourself when you are not.

Isn't C99 part of the C++14 spec?

As is the only way to survive as a developer. If you don't take that perspective, you'll get left behind after a few years.

Heard about a slightly older guy that applied to work at my office, as a dev for your standard CRUD style HTML5 frontend talking to a REST API backend. Wasn't doing well in the interview, proceeded to argue with my boss that visual basic is entirely appropriate for making modern web interfaces (he couldn't complete the javascript interview question adequately, wanted to do it in VB). He didn't get the job.

VSCode is actually pretty nice. It is free/open, fast (after initial load anyway), simple but with a lot of powerful features and cross platform. if you ignore it is from MS it is a solid editor.

You actually don't need any.

rubyist@Overmind:~/scratch$ cat foo.c
#include
#include

int main(void)
{
printf("Hello World!\n");
return EXIT_SUCCESS;
}
rubyist@Overmind:~/scratch$ x86_64-w64-mingw32-gcc -std=c11 -O2 -o foo.exe foo.c
rubyist@Overmind:~/scratch$ wine foo.exe
Hello World!

>codes
Pajeet detected

Even though this is b8, yeah. Using VS is just terrible unless it's for gamedev (where it's pretty much required).

Just use a decent text editor and a compiler. You really don't need anything else.

Nice programming there, fagget

>what is continuous integration

I don't think it's a question of need so much as want at this point.
It's full of bloat but fuck is it comfy to use, like one of those armchairs with the leg rest and the cup holder and the teamserver you don't need etc etc.

>terrible
If your PC is worse than smartphones 4 years ago. Otherwise there is no reason to use a text editor.

So that's why there are so few MS apps.

Obviously the first of many interviews for the job.

I love this

You fucking retard.

1) Get a text editor.
2) Learn to use the command line.
3) Profit.