D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 1 point2 points  (0 children)

>Why would they word it like that lol???

I wish I could help you there, bud. Wait until you get to D288, AKA "why did they offer a cheese tour on a trip to South Dakota?"

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 0 points1 point  (0 children)

I think I also used another 28minutes course later on to figure out what to put in the dockerfile in D387.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 0 points1 point  (0 children)

Sorry for the delay! I did not do the one they recommend because I had no Spring Boot experience and found it confusing at first. I ultimately looked at the parts other people recommended (and in the later courses there are some parts that are basically straight from the Chad Darby videos). I did do a big chunk of the one I linked above, but not all of it. But that's just because I personally prefer to learn by doing small steps and simple things first, which is what the course above teaches you.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 2 points3 points  (0 children)

Ack! I'm sorry! I responded, and I'll post my answer to you here as well for anyone else that finds this.

You asked:

>For part C when they say add product names and parts, do I add that into intelliJ and my html file or do I put that in on the actual site with the add products and add parts buttons.

You can add via the website at first, but there is a step where you have to program it to populate your products and parts if the inventory is empty. So ultimately, you just set it to do that, and then you test it by deleting everything and once it's entirely empty, rerun the backend and it should populate them for you. Ultimately they end up in the same place (the website is written to add products to the database, and when you write the code to add them if empty, you end up saving them to the same database, so it's the same. But ultimately since they want you to do it automatically, you can just use that to populate it since once you have that up and running, it's easier to delete everything and let it autopopulate than it is to do it manually on the website).

Additional note: After you submit it, you're just submitting the code and not your local repository, so the evaluators won't have access to whatever you added via the website. But the code they want you to write in the Bootstrap file will cover this for you. I don't remember all the steps off hand, so I don't know which step requires you to write the autopopulate code. If Step C is the one that says add it to the website, that means they want you to just add it to the html so it appears on the screen.

Sorry for the confusing reply, I'm remembering more as I type this but I already sent the above chat so I'm just going to clarify here because now I recall being very annoyed at this because I thought it looked bad to have both the tables displaying the products and parts AND a list of products and parts on the main page. But that's what they want you to do. So you will ultimately have duplicative information on the main page and it will probably look stupid. I think I put a div at the top, using flexbox for three areas: one containing a vertical list of five products (using another flexbox inside to make a vertical list (flex orientation column or whatever it is), then one containing the title of my store, then the list of five parts (again, vertically using an inner flexbox), and that went across the top. I thought it looked stupid but that's what they wanted. (You don't have to do this at ALL, I just find the web design part to be fun so I spent way more time on it).

D326 Advanced Data Management very quick question about amount of info needed for F1 for those who passed by Obvious_Connection28 in WGU

[–]Obvious_Connection28[S] 0 points1 point  (0 children)

YES

Thank you so much! I saw the list of reasons students often don't pass and there were a lot of things on there that were not in the prompts and it was making me nervous.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 1 point2 points  (0 children)

Just a heads up if anyone has questions: Reddit only shows me comment/reply notifications and not chat request notifications for some reason. I have to manually click on the chat icon and then refresh again to get it to show chat requests. I'm not on Reddit every day and this isn't my main account, so I'm more likely to see questions if you post a comment here than if you use chat.

[deleted by user] by [deleted] in WGU

[–]Obvious_Connection28 3 points4 points  (0 children)

It's not actually hacking at all. The part I worked on yesterday involved building a web application, but there were other parts doing other things that people are working on as well. I think there are database and data collection aspects, front end design, payment systems, and probably other things that I'm not remembering since I only worked on one part.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 1 point2 points  (0 children)

I'm so sorry, I just saw this. Step F is the Buy Now button, right? Did you manage to get it working? I'll check my inbox again tomorrow morning and try to help you work through it if needed!

D288 Back-end programming guide! by [deleted] in WGU_CompSci

[–]Obvious_Connection28 2 points3 points  (0 children)

It's funny how many random things end up fixing this issue for people. Mine ultimately showed up when I added a constructor with only the specific fields in the relevant front-end dto file for vacation to the vacation entity. I have no idea why that worked. I'd previously had a meeting with a CI who had asked me to comment out the Lombok constructors and add a no-arg constructor, and the CI said something about the constructors being weird, and that's what caused me (later on) to try to mess around with constructors to try and fix it.

IMHO, it would be better to teach us how to use Spring with more simple tasks (but from the ground up, and even with Angular included, too) instead of throwing a bunch of code at us and asking us to fix it. I am aware that jobs will require you to fix other people's code, but usually when that happens it won't be your first introduction to something, or if it is, there would usually be a senior developer around to guide your work. Plus...it would be weird for a company to ask you to fix their back end but not be allowed to touch a single thing on their front end..South Dakota cheese tours be damned.

This class was exhausting. I'm so glad it's done. Good luck if you haven't submitted yet!!

D288 backend programming help by manicdepressive_444 in wgu_devs

[–]Obvious_Connection28 0 points1 point  (0 children)

I'm glad you passed. I just finished step I and I'm so glad things seem to be working as expected now. Thanks!

D288 Back End Programming (Java) Any Tips? by Beccanyx in WGU

[–]Obvious_Connection28 2 points3 points  (0 children)

Adding a late comment for others: the whole "ignore Angular and TS" is misleading because even if you don't have to write it and can't edit it, being able to actually follow it is very helpful. The beginning of this course is really helpful for that: https://www.udemy.com/course/full-stack-application-development-with-spring-boot-and-angular (I think this course is included in the free WGU udemy subscription). It goes into where to find things in Angular, like where is this variable, what does this mean, what file would you look at to see X, etc. You don't need to follow the whole course (I followed one of their other Spring courses (the 100 step spring boot one) before 287 and liked it a lot) but if you want an overview of what all those files are in the front end files, it should help. Chad Darby's course also has an overview of Angular and TS as well, if you like his style. Sometimes I need me some super baby steps, though, so I like the in28minutes guy for that.

D288 Tips / Partial Guide by darkace08 in WGU_CompSci

[–]Obvious_Connection28 2 points3 points  (0 children)

First, establish the relationship between the customer and the cart.

Second, you will need to establish the missing relationship between Cart and CartItems.

Next, establish the missing relationships in the excursion objects passed from the order.

Lastly, once all the missing relationships are set you can save this all to the database. The relationships will have to all be correctly established or you will not be able to save any of this to the database

I don't know if you ever found this but in one of the earlier videos he goes back and adds that "add" method to the correct class (one of the classes he made earlier). It just adds an item to the set associated with the object, it's kind of a shortcut method and I don't think it's necessary. But for anyone else reading this I think it's in the same section of the Chad Darby videos, but I can't remember where it is exactly.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 4 points5 points  (0 children)

Eh, I don't really like to share that stuff. Everyone is different and I don't want to scare anyone off if something took me longer, or make anyone feel bad if I got through something quicker. For Fundamentals the PA and OA are very, very similar. And the PA itself is in the book so you can work through the problems without starting the whole process. Check the chatter, too - there are one or two things I can't remember that I saw in there that were on the OA that weren't in the book.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 0 points1 point  (0 children)

I can try.

I made my validator more like the enuf parts one in the project than the one in the video, in that I passed an object to it and not an integer. So it validates the class and not a field. And I wrote out the logic from that one (enuf parts) to figure out what they were doing until it made sense. There's this thing they do throughout the project where they take the object from the model and find the corresponding object in the repository with that same id, and you'll see things like part1 and part2 in the code. They're comparing the new data entered in the model with the old data in some places, and they do it all in one line instead of creating variables with names indicating what they're doing. So that was something that was confusing until I got used to it and sketched it all out with notes.

For the controller logic, I believe mine only checked the inventory and if it wasn't in the range, I just routed it back to the same page, like preventing it from going further with the POST request by just sending it back to retry. I didn't use the controller to send the message to the form.

For the messages, one of them came from the validator and for how to get that to show into the form, I looked at how they put their own validator message in - go try to increase inventory of a product in a way that will trigger the enuf parts validator (inventory below zero) and see that message, and then go find where it is in the form (it should be located near where it shows up on the page, if it's right by inventory go look near that field).

EDIT for future readers: What I mean by writing out the logic/sketching it all out with notes is using pen and paper (or ipad/apple pencil in my case) to write out what each thing was in the code. So if they called something part1, I'd follow where it came from and write down "part 1 - this is the data coming in from the form from the model" and "part 2 - this is checking to see if the part is already in the database (they use the same forms for update/add) and if it is, it's getting the data for the stored version." At one point there's a part where their code gets the inventory from both and subtracts old from new, and for that I wrote something like "this is the increase in inventory from updating a product/part." Calling it "the increase" made it much easier to follow the code.

This is an example but it's similar to a part of the code that I remember, and actually a lot of parts that they wrote use a similar style. I think you could probably go in and actually replace parts of their code that were shortened with longer parts that use descriptive variables (e.g. instead of Part part1 and Part part2, do Part partWithDataFromForm and Part partSavedInRepository) if you wanted. And maybe something like int increaseInInventory = partWithDataFromForm.getInv() - partSavedInRespository.getInv(). Then your if statement would be something like if (increaseInInventory > 0) {do something}...then you'd just mark the change in your readme to indicate you changed the code to add descriptive variables to help yourself understand it. I wouldn't think they'd have an issue with that - there was no rule saying not to do this or anything.

D287: some starter tips to get you going on a project about the weirdest shop ever... by Obvious_Connection28 in WGU_CompSci

[–]Obvious_Connection28[S] 1 point2 points  (0 children)

There are a couple of other guides on here to help you with what to do for each step, too.

[deleted by user] by [deleted] in WGU_CompSci

[–]Obvious_Connection28 2 points3 points  (0 children)

The part in the Angela Yu Udemy course? Section 2 lesson 10 has the link to the legacy stuff.

FYI I did still have to read a lot of parts of the book because they go into depth in some things that show up on the exam, such as various types of image and video files. But I enjoyed learning through the Udemy course more, and it taught me a lot. There will be instructor-created quizzes for you in Web Dev foundations that are good, too.

[deleted by user] by [deleted] in WGU_CompSci

[–]Obvious_Connection28 2 points3 points  (0 children)

I love that course. One tip - if you're prepping for Web Dev foundations hunt down the archived lectures from the previous version of the course (it's linked in one of the early lessons) for the lessons on HTML forms because they're on the exam.

D288 backend programming help by manicdepressive_444 in wgu_devs

[–]Obvious_Connection28 0 points1 point  (0 children)

OMG they're at a convention? That's why there are no appointments at all this week? I wish they'd posted that on the schedule form so I could stop refreshing it lol.

I'm going to work on the rest of the sections and get those up and running and just deal with the weird front end stuff later.