r/c_language • • 13d ago

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

16 comments sorted by

2

u/zsaleeba 13d ago

No.

They're not related to C, specifically. They're tools which might be handy when working with any programming language, but you don't have to use them.

0

u/the_imposter_2 13d ago

Thanks but in my uni they are telling me that this is the core thing

3

u/zsaleeba 13d ago edited 13d ago

It's not about C. At my university course we learned both flowcharts and pseudocode, but they didn't teach C.

1

u/the_imposter_2 13d ago

What!! Then what language did you learned?

2

u/zsaleeba 13d ago

We learned Pascal as our first language at university. This was back in the 1980s.

These days it'd be Python or Java first.

2

u/mjmvideos 13d ago

Well, it’s a fundamental skill that will help you. But a person can write C code ( or any other language) without needing to create a flowchart or pseudo code first.

1

u/the_imposter_2 13d ago

So ur telling that it's not only for c but in any other programming language flowchart and pseudo code are not necessary

2

u/mjmvideos 13d ago

Correct. In the same that creating an outline when writing a report is not necessary.

2

u/JeLuF 13d ago

Pseudocode and flowcharts are language agnostic ways to describe algorithms. They are tools to focus on the structure, without wasting time on syntax requirements or implementation details.

At some point, you need to apply what you've learned in C to other languages. This is where thinking in structures will come in handy. Abstraction is an important skill.

1

u/flyingron 12d ago

I haven't touched a flowchart since highschool. My first job had dataflow diagrams which have their use if you bother to learn what you're doing with them (most of our project management was clueless).

Pseudocode is a way to express ideas in forums where a particular language is not a given. It's kind of pointless for designing C by itself, you just write real code.

2

u/Educational-Paper-75 13d ago edited 12d ago

You'll find yourself designing code that or in similar ways when things get more complex. There's really not much difference between commenting your code and writing pseudocode. As such flowcharts, pseudocode or if need be state diagrams, are just ways to come up with a proper algorithm that you check by inspection before actually diving into coding. Which used to be more important in the ol' days when mistakes took much longer to correct.

2

u/DirtAndGrass 13d ago

It's a tool to help understand how your application (will) work.

It has no relation to c

It might seem stupid for the types of applications you are writing now, but will be useful to discover bugs and edge cases before you are writing code, which can save you time. It also helps to communicate with others. 

Planning and diagramming are a requirement for professional software engineering and applies to any system regardless of language 

1

u/Poddster 12d ago

If you can't understand a flow chart or write pseudo code you won't be able to program C.

1

u/Pale_Height_1251 12d ago

No, they are common to use but not necessary.

0

u/FedUp233 13d ago

I personally find flowcharts and pseudocode pretty useless. They both document pretty low-level structure and you can usually just write the code. And they reskin aren’t any easier to read than well written code with a few good comments.

Higher level diagrams are much more useful that document the system you are making at a modular level and document the interactions between modules or document a set of communication protocol interactions.

Just my opinion of course.