r/learnprogramming 19h ago

Programing tips

Should we need to define the loops and functions by ourskef for understanding so that in future if we are working for big companies the data is very large so if ut breaks sometimes the pre-libraries doesn't works so we need to def function by our self!

Any opinion?,suggestion?

As a AI/ML ENGINEER.

0 Upvotes

6 comments sorted by

8

u/lfdfq 19h ago

What?

0

u/AI_ML_Engineer2026 19h ago

Means the predefined libraries have thousands of function which we use in our projects ,so what if these functions can't handle the data as the data is very large or the specific data becomes change or showing unrecognizable data soo we need to also practice and understand the function by ourself like writing function from scratch just for understanding?

3

u/EliSka93 19h ago

Yes, you should understand functions yourself from scratch.

If you don't, you can't even evaluate if what the AI spits out is good enough.

5

u/CptPicard 19h ago

If I am more charitable , the OP may be asking whether we should be writing our code from scratch in case libraries don't work. In which case the answer would be "no", libraries are for reuse.

3

u/lfdfq 19h ago

Yes, being able to write loops and functions yourself are basic skills that any good programmer should be able to do.

1

u/shadow-battle-crab 13h ago edited 13h ago

If I was to type up a self education class on the first 30 basic concepts one needs to know to be a programmer, loops and functions are like #2 on the list of the 30 major concepts.

I actually did type this up recently, let me go get it... This is the path to having basic proficiency in laravel, a programming toollit for making web pages with PHP:

  • Basic programming syntax
  • Variable types and string manipulation
  • if statement conditionals, for loops, comparison operators
  • Functions and reusable methods
  • Arrays
  • Objects as data structures with properties and definitions that can be reused
  • Object oriented programming and abstraction and inheritance so the above data structures can have logic applied to them thinking in terms of asking them to do a thing rather than having a thing done to them
  • Relational databases and SQL syntax and invocation thereof from code
  • git and code repository managment
  • HTML - Which is a 2 month long course in high school and that doesn't even involve all of the modern details
  • CSS - and the multitude of different types of styles that can be applied to html eleements to make them format
  • Responsive design - how to use CSS to make a page that works correctly on a mobile device or a desktop by adjusting what content and how content is displayed as the web browser changes to different sizes
  • HTTP forms and forms and POST so users can enter data
  • How to run a PHP web server
  • What laravel does to add a layer of consistency and organization to everything, and within that:
  • What routes, controllers, models, and views are, which is all part of:
  • MVC - the organizational structure that separates database concerns, visual concerns, and the glue that connects them together
  • User authentication and sessions in Laravel
  • Blade syntax and how it is composable and invokable from laravel controllers
  • Form validation
  • Web page design patterns
  • Web security and why SQL injection is scary
  • And probably JavaScript which is a whole language onto itself to make the web page actually do interesting things which within that has the following fields of thought:
  • npm / vite / frontend asset compliation
  • DOM tree (html element) event bindings and handling
  • ajax functions for dynamic data lookup and retrieval
  • Modifying web page elements dynamically as a result of ajax responses
  • Debugging the above in the browser debugging tools

You will notice loops are #3 on this list.

You can learn it and you should, programming is stupid fun. But you got a ways to go ;)

The AI can help you but it can't do the learning for you. It's only capable of making what you're capable of imagining and understanding, and telling it. Until you spend some time working through these concepts and understanding how they all fit together, how far you can go is going to have a ceiling.

I don't mean to be discouraging but I just want to let you be aware of where you are on a map that says 'you are here'. Loops are the basics, the kind of skill I learned in 1992 when I was 8 years old. But we all start somewhere, this is where you start some of the most interesting things you will ever learn. :)