i just finished my portolio and i was wondering if there was a right order to write code… for me was chaotic, i lost myself several times and ended very confused.
How do you organize yourself to code?
thank you for your answers (and for sorry my bad english)
There are many approaches.
After that, I defined the layout of the page with html (with some JQuery magic to help) and then use css to make it pretty. So, my procedure is:
- Make sure I understand each coding task for the project. Test them in a separate pen. Do not continue until you know how they work.
- Make sure all the logic works. You can output to console or just to a boring, unadorned html div. Don’t worry about pretty.
- Define the structure of the page with html, maybe using some JQuery to inject some html as needed.
- Make it pretty with css.
That’s kind of what works for me. As I get better, I can dwell less on step one and just combine different steps as needed. But on projects where I’m having difficulties, this works best for me.
Again, I’m sure other people have different flows. That’s just what works for me.
Just use something like the Trello or Waffle.
I like to start out with a bare bones template. Take your portfolio for example. Strip out all the content except for maybe an
I find when I start a project with at least this much up front I can get right to work building. And as you progress you can save different versions of starter templates with increasingly more complex functionality.
Another way to get a good start is to make a bare bones template off of someone else, for example a Codepen you admire, and make it your own.
This is a too broad a question.
I don’t know if there’s a single right way to do it. Each person is different.
But these are my general steps:
- mockup design, on paper or photoshop
- determine color theme, colors to use for site. https://color.adobe.com/
- collect assets to use for the site… logos, photos, images, icons, videos, screenshots. Resize if needed, convert to png/transparent if needed, do you build the assets yourself, or provided by client, or you have to find them yourself? splice from you photoshop mockup? Do you need to purchase stock photos?
TIP: ORGANIZE, ORGANIZE, ORGANIZE!!! If you’re using PAID or FREE stock photos bought from or given by a Stock Photo company, make sure to KEEP DOCUMENTATION!!! Because a few years down the road… you will need it! These Stock Photo companies are getting bought by each other all the time, and pretty soon the new 3rd or 5th generation owners will find their photos used on your or client’s website and send you a “lawyer-y” threatening letter demanding you pay this big $$$ penalty for using their licensed stock photos. That’s when you find your original un-resized stock 25MB-each photo, and stuff back their inbox with the 10pcs of licensed photos you legally purchase from the very 1st generation owner, email it all to them and say, and say F.U. here are the original high-res photos that we bought from/given by XXXX company, that YYYY company bought, and then your ZZZZ company bought. If you have original email receipts, even better. – then you won’t hear from these lawyers again. — until the next go-around when AAAA company bought ZZZZ company.
- identify and pick frameworks you need to use, and any dependencies required.
- work from the overall big picture to the finer details. (ex: start how the page will look, centered? fluid? full-width? fixed-width? background-image?.. then to individual sections within your page
- work on each section at a time… ex: header, content, footer. Then drill-down, for header --> logo, menu section, etc.
- buildup CSS code as you work on each HTML section.
- if you need UI animation, (jquery?) add to site.
- if you need backend logic (the Model or Controller) in your MVC design, start coding and wiring them up to the View/Front end.
These are not written in stone, sometimes you may have to go back and forward on each step. – and if the client changes their mind, go back and repeat some steps.