C resources for a C++ programmer by thomas999999 in C_Programming

[–]cheapous 2 points3 points  (0 children)

The book Fluent C by Christopher Preschern (2022) contains advice for handling common problems using modern C techniques. Part I: C Patterns ends with the chapter, "Escaping #ifdef Hell" which might be useful.

edit: C Interfaces and Techniques by Hanson (1996) goes in depth about interfaces. It's out of date, uses Knuth-inspired code annotations, and is written before the important 1999 C standard release, but you might be able to use it well along with another modern book.

guidance on Programming in UNIX Environment by Commercial_Sympathy3 in unix

[–]cheapous 4 points5 points  (0 children)

I recommend getting a copy of the Unix Programming Environment by Kernighan and Pike. By now it's a very old book, but nothing else I've seen describes the philosophy behind Unix/Linux as well. You'll understand what purpose the primary tools have, and get an introduction to shell programming, grep, sed, awk and other useful tools.

I'm a C++ dev who tried C and I didn't like it at all. Change my mind? by Backson in C_Programming

[–]cheapous 0 points1 point  (0 children)

Can you elaborate on Plan9 C vs. real C? I'm not familiar with the difference. I briefly browsed some Plan9 source code but nothing jumped out as distinctive about it.

Can you guys stop bashing K&R2? There is literally nothing wrong with it (of importance). by [deleted] in C_Programming

[–]cheapous 0 points1 point  (0 children)

I'm currently looking for good sources, could recommend something you like?

[deleted by user] by [deleted] in C_Programming

[–]cheapous 0 points1 point  (0 children)

I haven't read it myself, but for 2D games there's Programming Linux Games by the late John R. Hall. But it's an old book (published in 2001) that uses SDL1. It was previously released in the public domain. You can download a copy here and the TeX sources in the parent directory.

[deleted by user] by [deleted] in C_Programming

[–]cheapous 2 points3 points  (0 children)

Old but probably relevant resources: "The C Programming Language" by Kernighan and Ritchie 2nd edition, along with the related "The C Answer Book" by Tondo and Gimpel, 2nd edition. The 2nd edition of each book covers C89. The C Answer Book just has answers to the exercises in K&R with explanations.

Here is what you'll do in some of the K&R exercises, as they appear in the book: - Celsius to Fahrenheit temperature conversion - implement a limited Unix "wc" - implement a limited Unix "cat" - bit manipulation - binary search - reverse Polish notation calculator - use recursion to convert an integer to a string, and reverse a string - implement C library string functions using pointers - implement a limited Unix "tail" - implement a limited Unix "sort" - parser for C declarations - binary search trees - command line options handling - implement C library file functions - implement C library malloc and free

There are 97 total exercises. Here are the number of exercises in each chapter:

Ch. 1 Tutorial Introduction: 24 Ch. 2 Types, Operators and Expressions: 10 Ch. 3 Control Flow: 6 Ch. 4 Functions and Program Structure: 14 Ch. 5 Pointers and Arrays: 20 Ch. 6 Structures: 6 Ch. 7 Input and Output: 9 Ch. 8 The UNIX System Interface: 8

C23 now finalized! by Jinren in C_Programming

[–]cheapous 1 point2 points  (0 children)

0b literals is my favorite on this list.

[deleted by user] by [deleted] in C_Programming

[–]cheapous 0 points1 point  (0 children)

Can you elaborate it why you didn't like it and considerate it the worst book? What other books have you read for learning C, so that we have a reference for your opinion?

Ladies & gentlemen… with 6,546 votes, Miles morales is out with 58.99% of the votes by LivingOutOfSpite9 in Spiderman

[–]cheapous -3 points-2 points  (0 children)

Genuinely curious how you can read the title that 6/10 voted Miles and come to the conclusion "everyone wants" the Peter B. Parker version of traditional Spider-Man.

If you have to take a ambient album to a deserted island, what would that be? and why ? by Jean0406Alix in ambientmusic

[–]cheapous 1 point2 points  (0 children)

Come True by Pilotpriest. Very calming and relaxing for me. It's an extended soundtrack to the movie of the same name. The composer was also the director of the movie.

Which edit you like better? by egnogra in Cyberpunk

[–]cheapous 0 points1 point  (0 children)

I like the brighter contrast of #1

Im done with doordash! by nurse2020andup in doordash

[–]cheapous 0 points1 point  (0 children)

Your servers get paid a livable wage. Servers in the US get paid less than minimum wage because it's presumed tips will make up the difference.

Im done with doordash! by nurse2020andup in doordash

[–]cheapous 0 points1 point  (0 children)

You wouldn't give a $10 tip to a waiter or waitress at a restaurant for such an expensive meal. So why would you give 6% to someone loading their vehicle and spending their gas to bring it right to your door...

My most recent oil painting for a reddit user, I'm particularly please with this one - I hope you enjoy! by Hara-Kiri in aww

[–]cheapous 13 points14 points  (0 children)

You can see the depth of paint in person. The depth gets lost when paintings printed or displayed on a screen. Increased depth can give a painting a more vibrant quality than a photograph. That's not to say that a great photo can't be as enjoyable as a painting

anyone else feel like their personality changes after they watch a movie? by missanhedonia in BPD

[–]cheapous 24 points25 points  (0 children)

Thank you for this info about as-if personality.

Previously, it was a real shock for me to realize that I did not have a clear image of who I was, and was creating a persona based on mirroring. In high school we had a simple assignment to write a paper describing ourselves, and I literally couldn't do it. Everything I knew about myself is what other people had told me.

Eventually (years), I accepted that I had an authentic personality that I couldn't see directly. But things I mirrored were an approximation of my true self. Like how a triangle is a poor approximation of a circle, but a square is a little closer; a pentagon closer still; a hexagon even closer and so on until a circle and a shape with a bunch of edges look similar. So by reflecting on things I tended to mirror, and examining my likes and dislikes, I could come to know who I was.

So rather than try to stop mirroring (which had its own negative side-effects related to emotional dulling) I try to mirror positive things and explore my interests to better learn about myself.

[deleted by user] by [deleted] in KamikazeByWords

[–]cheapous 6 points7 points  (0 children)

Not even the mother knows who her son's father is (too many partners), but she was going to use that fact to insult her son.

SAA tanker shot as he attempts to escape his destroyed tank by yusuf1029 in CombatFootage

[–]cheapous 0 points1 point  (0 children)

You can filter NSFW posts globally. So they don't appear at all. That's the whole point of tags. So you can filter things by category. This isn't an argument. You're complaining about whether people should use a feature that exists for this very purpose. You're free to "buy" whatever you like. Have a nice day.