[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / doomer / hypno / leftpol / vg / zooscat ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 9678d2d195a0032⋯.jpg (131.84 KB, 1269x952, 1269:952, 9678d2d195a0032c3e539a0ec2….jpg) (h) (u)

[–]

 No.1020779>>1020784 >>1020786 >>1020871 >>1023869 [Watch Thread][Show All Posts]

So I might be getting a job using C and I have a week to study it.

I said in my first interview I have a year experience in C even though I don't

I said this because I've programmed using C++, C#, Java and SQL for 4-5 years so I figured it wouldn't be that different.

Sure enough in the first interview I knew the answer to all their questions since most of it bled in from other languages (except some of the stock market ones, has to do with the job). So I'm not too worried.

But just in case I get blindsided by something I want to make sure I'm fully prepared and don't jeopardize anything, especially since its a small team and what they do is a big deal.

What would be a program that I could learn/write that would fill the gaps of what I don't already know with C, in other words, what it would be used for more often than C++ or C#?

 No.1020780>>1020781

Get ready to be fucked when none of your pajeet-oriented programming practices work.


 No.1020781

>>1020780

where in that did I say I was a copy/paste pajeet?


 No.1020782>>1020785

TL;DR is that C is the brick and mortar of operating systems for computers and machines and is very good at quickly and efficiently running through highly intensive programs. It's the KISS of languages.


 No.1020784>>1020785

>>1020779 (OP)

Write a simple socket server.


 No.1020785


 No.1020786>>1020788 >>1021393

>>1020779 (OP)

>What would be a program that I could learn/write that would fill the gaps of what I don't already know with C, in other words, what it would be used for more often than C++ or C#?

Read K&R. Learn how to use pointers and dynamic memory allocation.


 No.1020788

>>1020786

This. K&R C should then be followed up with Expert C Programming by Peter Van Der Linden.


 No.1020790>>1020804

Also make sure you understand function pointers, I've noticed that many C++ programmers don't.


 No.1020804

>>1020790

>Also make sure you understand function pointers, I've noticed that many C++ programmers don't.

As one preferring C++ over C, I can confirm this.


 No.1020871>>1020880 >>1021519

>>1020779 (OP)

>What would be a program that I could learn/write that would fill the gaps of what I don't already know with C, in other words, what it would be used for more often than C++ or C#?

Fucking LOL. You can't learn C. It is literally impossible. The amount of UB is infinite.

GCC and LLVM are actually not standards compliant because the compiler devs themselves can't even understand the convoluted mess that is C.


 No.1020880

>>1020871

>God is unknowable!

What kind of NPC tripe is this? Engineers fucking love working in C.


 No.1021229

Look up the slideshow called 'deep c'


 No.1021393

>>1020786

Yes. Read K&R and work the examples. It's a short book. Get used to passing pointers to structs as function arguments. pointers to structs is C.


 No.1021519>>1021568

>>1020871

> You can't learn C. It is literally impossible. The amount of UB is infinite.

Read annex J of the standard. As long you don't try to be overly smart, it's fairly easy to write portable, well-defined, C code.


 No.1021568>>1021572

>>1021519

I read that. It's a very entertaining read. It's also non-exhaustive.

As I said, infinite number of UB. This is the power of C/C++. Only Cniles defend that garbage.


 No.1021572>>1021573

>>1021568

Really? What's an UB case that isn't listed there?


 No.1021573>>1022435

>>1021572

Sorry, I'm not a nigger. I don't use dangerously unsafe languages.


 No.1021973>>1021981

Fuck off. Why do you think we'd want to work alongside a complete newfag or pajeet such as yourself? It takes literally years to gain mastery at writing good C code. Back to Jabba with you, cuck.


 No.1021981

>>1021973

>It takes literally years to gain mastery at writing good C code.

But isn't /tech/ always saying that C is so simple?


 No.1022435>>1022499

>>1021573

>never makes any arguments

>just spams insults and empty statements without basis in fact

>samefagging to spread fuddlore at someone willing to git gud at something you were too stupid to figure out

Why are you even here? You're not fooling anybody into thinking you have any knowledge of this subject.


 No.1022499

>>1022435

>LARPing

stfu nigger


 No.1023869

>>1020779 (OP)

Congrats on the job.

With 4-5 years of experience in C++ your are very well setup for it. The jump to C has less to do with learning the language it self, but in letting go of classic paradigms and adopting into what the code base does. There is always the adaption phase when getting into the job. You will read the previous code base and try to integrate into that long before you start actually writing shit.

C code bases are WAY more diverse than anything modern, because there is less of a framework to begin with. Some opt to replace OO with a whole of entity component system. Understanding that ECS then becomes way more important and all of that is largely bound to the code base you will be working on.

Don't sweat it, read up some articles of going from C++ to C and the rest will mostly depend on how the code base is layed out.

Embrace not having to layout everything in objects with complex inheritance.

On a personal note: the biggest C obstacle for me was understanding how to properly work strings, there is so much to do wrong.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
22 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / agatha2 / animu / ausneets / doomer / hypno / leftpol / vg / zooscat ][ watchlist ]