[ / / / / / / / / / / / / / ] [ dir / asmr / chicas / gdp2083 / hikki / htg / russian / strek / vore ][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.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 477246c3878af8d⋯.jpg (16.97 KB, 500x388, 125:97, 1458248608275.jpg) (h) (u)

[–]

 No.801797>>801805 >>801812 >>801819 >>801890 >>801925 >>801995 >>806368 [Watch Thread][Show All Posts]

I want to learn C well. The web is not helping much: hard to find references/tutorials. I have a job in web 2.0 meme, but I have a USB device with Winblows & Crapple drivers, but without linux driver, which I want to write. Can anyone recommend me some books or tutorials which teach me a to be a productive C programmer?

 No.801805>>801807

>>801797 (OP)

Which device is it?


 No.801807>>806959

>>801805

>Which device is it?

Speedlink Arcus drawing tablet. Got it a few years ago, but I never use it bc I got linux


 No.801812>>801871

>>801797 (OP)

>teach me a to be a productive

it would be a lot more productive to spend $100 on a wacom tablet than to spend $1000's in man hours on writing a driver.

or just pirate windows/mac and dual boot for your art.


 No.801819>>801975

>>801797 (OP)

>OP's pic

ここにゴミを捨てないで下さい。

Please don't throw trash here.


 No.801866>>801875 >>802276

Read K&R then the CERT secure standard.


 No.801871

>>801812

>it would be a lot more productive to spend $100 on a wacom tablet than to spend $1000's in man hours on writing a driver.

>or just pirate windows/mac and dual boot for your art.

I don't art. And it's not about productiveness in general. It's about being productive in C, and the problem of one of my usb devices not being compatible with anything else than botnet OS. But thanks for tripping over semantics.


 No.801875>>802232

File (hide): c0d1451a71f45fe⋯.jpg (42.3 KB, 540x393, 180:131, security_privacy.jpg) (h) (u)

>>801866

>Read K&R then the CERT secure standard.

Thanks m8, didn't know about CERT


 No.801890>>802204 >>816164

>>801797 (OP)

It is not worth the effort in my opinion. But if you insist, I eould learn it this way:

1. watch derek banas C tutorial series to get the general idea

2. go through Learn C The Hard Way, do exercises, but dont listen to authors advice, because he is retarded. still good exercises tho

3. Go through K&R slowly and do Daily Programming challenges at reddit (sort by top)

4. when you are comfortable enough with your skill, read Linux Device Drivers book, it is outdated by it will give you the general idea and help you research further

At this point you are looking at least a year of studying.


 No.801925>>802204

>>801797 (OP)

Are you wanting to distribute this driver? if not then you don't need to limit yourself to C. Writing the driver in userspace will save you quite a bit of headaches and let you use other programming languages like C++.

I haven't written any userspace USB drivers, only userspace drivers for PCIe devices, but from what I understand the process is far easier. Libraries like libusb should make things go smoothly http://libusb.info


 No.801975>>802204

>>801819

its fairly obvious they tried saying "dont dump shit here" but retards think its funny they got dump/dumb wrong


 No.801995>>802204

>>801797 (OP)

It would kind of suck because the project would end here, but have you verified that it doesn't work on Linux? If it is a USB HID compatible device it might already work.


 No.802204>>802279

File (hide): f09d0c9d0c93a16⋯.png (461.64 KB, 972x641, 972:641, hitlerapproves.png) (h) (u)

>>801890

>not worth the effort

What programming language would you consider worth the effort, then? Suckless & cat -v made some good points imo. That & the low level attracts me to C. High level is so much "common sense", and mostly just werks.

Thanks for the resources & chronological steps, looks promising.

I have time so a year is fine.

>>801925

>Are you wanting to distribute this driver?

If it works well I'd post the source code & ask for judgments on irc. But atm I'm not confident enough to imagine my shit widely implemented.

Thanks for the link!

>>801975

I laughed, otherwise I wouldn't have saved it. Maybe I can make it up to you with pic related.

>>801995

Haha yes, I checked a while ago. I wouldn't dare post the reason & model name if I hadn't done simple troubleshooting lol


 No.802232


 No.802276>>802435

>>801866

I would add Expert C Programming by Peter van der Linden after K&R C.

>the CERT secure standard

Any way to read the full book without having to sign up?


 No.802279>>806424

>>802204

Ignore /tech/ webdevs, C is the best language to know. I'd just recommend learning by working on other people's code where the project has a rep for good code and it's a healthy section.


 No.802435


 No.806332

go2 library or thrift store and make de purchase on a bookabout linux programming and el c language


 No.806356

File (hide): 7efa38f2e39da23⋯.jpg (16.38 KB, 342x440, 171:220, C primer.jpg) (h) (u)

I'm learning with this book. I'd say it's very well written. It gives you just enough information to learn everything without treating you like a tard.


 No.806368>>816220

>>801797 (OP)

Read this [pic] then get lots of practice.


 No.806379

Read 'Expert C Programming - Deep C Secrets', it really gets into the mest of things


 No.806402

I've been doing C for 30 years and would teach you personally in exchange for sexual favors.


 No.806424>>806426 >>806681

>>802279

I second this. For all the shit it gets, systemd is very well designed and good to learn how to write idiomatic C from.


 No.806426>>806429

>>806424

I'd not use systemd as an example of C programming. The code is largely gccisms and has pushed clang to adopt a lot of them.


 No.806429

>>806426

gccisms are idiomatic C.


 No.806679

This Super FAQ is a good place to start for anyone wanting learn C as a first language anon.

https://isocpp.org/wiki/faq/c#c-diffs

tl;dr

>don't.


 No.806681

>>806424

RhIDF please go.


 No.806959

>>801807

https://digimend.github.io/

it probably already works


 No.806987>>816212


 No.816164

>>801890

>Not going straight to K&R

>Daily Programming Challenges from reddit

o


 No.816212>>816381

>>806987

>My main idea is that we need to teach C in a way that helps students understand why a very large fraction of critical software infrastructure, including almost all operating systems and embedded systems, is written in C, while also acknowledging the disastrously central role that it has played in our ongoing computer security nightmare.

Here's a better idea. Why don't they teach Ada and explain, in the same classes, why C is such a disaster? I already know why. There is a huge industry that depends on security consulting and other money-sucking wastes of time. Ada would actually solve the problem and C shills would be out of work.


 No.816220>>816328 >>816406

>>806368

The biggest C meme there is. At least tell OP to get a book written in this decade.


 No.816328

>>816220

It's a good book. Almost nothing has changed with hardware in the past 40 years as far as a beginner is concerned so any low-level architecture book is still just as relevant as it ever was. Only advanced programmers are going to deal with things like vectorization and GPGPU. Most programmers never will.


 No.816381

File (hide): 849676d35d26c3d⋯.jpg (46.27 KB, 728x387, 728:387, rms linus.jpg) (h) (u)

>>816212

>C master race

>out of work


 No.816406

>>816220

The fundamentals of C hasn't changed at all. Anybody who studies this book to a good level is more than capable to find modern C syntax and libraries on the Internet.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
34 replies | 5 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / asmr / chicas / gdp2083 / hikki / htg / russian / strek / vore ][ watchlist ]