-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweek2.html
More file actions
177 lines (164 loc) · 7.08 KB
/
week2.html
File metadata and controls
177 lines (164 loc) · 7.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE HTML>
<!--
Massively by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Diego's Blog</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<a href="index.html" class="logo">Diego's Blog</a>
</header>
<!-- Nav -->
<nav id="nav">
<ul class="links">
<li><a href="index.html">New posts</a></li>
<li><a href="week0.html">Week 0</a></li>
<li><a href="week1.html">Week 1</a></li>
<li class="active"><a href="week2.html">Week 2</a></li>
<li><a href="week3.html">Week 3</a></li>
<li><a href="week4.html">Week 4</a></li>
<li><a href="phase1.html">Phase 1: RESET</a></li>
<li><a href="project1.html">Pretotypes</a></li>
</ul>
<ul class="icons">
<!--
<li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands fa-facebook-f"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon brands fa-instagram"><span class="label">Instagram</span></a></li>
-->
<li><a href="https://github.com/dcordoba97" class="icon brands fa-github"><span class="label">GitHub</span></a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<!-- Post -->
<section class="post">
<header class="major">
<span class="date">April 18, 2022</span>
<h1>Week 2<br />
Fancy Topics</h1>
<p>
This week was definitely a challenge for me since I went
through a lot of concepts that I didn’t know or at least
didn’t understand until now. Object-Oriented programming
was key for this week’s homework but methods were also
required to be used in order to accomplish what was assigned.
</p>
</header>
<p>
Object-Oriented programming, as said before, was key to
getting things done through this week. I’ve learned a
lot about certain tools Java has and how IntelliJ is pretty
cool to code in when you are using Java. Installing API’s and
plugins for my pom was not much of a challenge since I thought
it was something with my laptop but at the end of the day,
I think it was part of the assignment. As for the assignment,
we had to develop a class for this test in which we get through
some arrays to arrange data from a movies.txt (In which you
could see it was a big data txt of movie reviews) and then
process it so it prints some recommendations for a certain user.
</p>
<p>
I don’t think I've been more active in a single problem than
this time. My brain feels heavy and dry and I could use some sleep.
Navigating through the assignment, I realized that I had to use
hashes instead of just a regular Array because I had to have this
certain key and this certain value. So, I opted to use Hash Sets
because I had to have no repeated UserIds and HashSet property
makes it so keys are not repeated. Then I've got to realize that
I actually had to use a HashMap in both ways so I could call the
buffer writer to write in my .csv or at least that’s how I
pictured it. So far, I had all my tests going through successfully
but the last test of the recommendations part was wrong. My .csv was
giving me null values for a certain key and that made me focus on my
logic statements. After some hard work and focus I got to see that
my problem was in how I used my buffer writer... I was using it in
the wrong order in which my .csv had to be filed so I just grabbed
the pieces that my buffer writer was going to write and then called
it in a function so it makes sure that it is in the right order.
</p>
<p>
I think that if I knew beforehand about Hash’s, IntelliJ, Java
and how to google my doubts, my assignment would’ve been done by
Thursday. This kind of project will make sure you either learn or
fail and I'm happy to say that I learned a lot of concepts that only
by trial-and-error you learn.
</p>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<section>
<form method="post" action="#">
<div class="fields">
<div class="field">
<label for="name">Name</label>
<input type="text" name="name" id="name" />
</div>
<div class="field">
<label for="email">Email</label>
<input type="text" name="email" id="email" />
</div>
<div class="field">
<label for="message">Message</label>
<textarea name="message" id="message" rows="3"></textarea>
</div>
</div>
<ul class="actions">
<li><input type="submit" value="Send Message" /></li>
</ul>
</form>
</section>
<section class="split contact">
<section class="alt">
<h3>Address</h3>
<p>1234 Somewhere Road #87257<br />
Wonderland, Utopia 00000-0000</p>
</section>
<section>
<h3>Phone</h3>
<p><a href="#">(000) 000-0000</a></p>
</section>
<section>
<h3>Email</h3>
<p><a href="#">notARealEmail@weeklyessays.com</a></p>
</section>
<section>
<h3>Social</h3>
<ul class="icons alt">
<!--
<li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands fa-facebook-f"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon brands fa-instagram"><span class="label">Instagram</span></a></li>
-->
<li><a href="https://github.com/dcordoba97" class="icon brands fa-github"><span class="label">GitHub</span></a></li>
</ul>
</section>
</section>
</footer>
<!-- Copyright -->
<div id="copyright">
<ul><li></li><li>Design: <a href="https://html5up.net">HTML5 UP</a></li></ul>
</div>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>