Tuesday, December 30, 2014

Holiday fun

I've been visiting the family over christmas and it's been fun, but fairly unproductive coding-wise.

But I've made 3 drafts for the design of the webshop, so I've got that thing going for me which is nice. I'm also trying to read up on the new design principles. It's going so-so. I'm not quite the fan of the style, but I'd make it work.

So I can finally get to the coding of the front end, so that's out of the way.

Also, new year... hmm...

I guess my New Years resolution will be to code a lot and exercise when I can, for health.

Wednesday, December 17, 2014

Awwwyiss mo-fo tomcat!

So today we had a little meeting in class about the dismay a lot of us in the class have had with our new teacher. It was decided that we would get down an dirty with the code and start from the very beginning with how to run a tomcat server, setting up CATALINA_HOME and making a little servlet which we placed on the server.

And thanks to the lovely peeps in Java on SO I now know how to put the website on there too. Now I actually have the tools to start working and playing around for real

And all I can say is YAY! Finally! :D :D

Thursday, December 11, 2014

Java frameworks

Pretty much sums up how I feel after today's class in working with RESTful API in Spring.

Wednesday, December 10, 2014

Puns

In this house not only am I the only one who programs in java, I am the one who opens the jars.

Suitable job for the programmer, eh? Eh?

That is all.

Calling it a day

I think I've done kinda well so far, and I'm gonna call it a day with web-coding now. the current result:

Not too bad comparing to my draft, eh?

There are a few things I need to fix for putting the content in there, but the basic design is laid out at least.

Coding websites

So I'm having the astronomic fun of coding a website now so that I can apply some JavaScript on it. It's good practice; it's been a while since I last made one and there are so many things I forgot how to do.

My idea was to make something kinda like this:
But we'll see how it ends up.

Saturday, December 6, 2014

Score!

Got my grade for the JavaFX course now, and I am happy to reveal that I got the highest grade!

And my other little JavaFX project is comming along just fine now, thanks to the people at the StackOverflow chat. I love having people to talk code with. I can't wait until I get good enough to help them back or pay it forward to other newbs.

Life is good in other words. I began coding on a new site for my current class, so I got that going for me which is nice.

Happy coding everyone!

Wednesday, December 3, 2014

And it feels awesome again!

Having people to talk to really is amazing. Got pretty much everything solved now, and my "old" project got a facelift and is starting to look really good! Yatta!

I've gone from "I don't even know what I don't know" to "I can't wait until I wake up again so that I can continue coding!" since the last entry. Now it feels like it should feel! Coding is fun!

I've been up for  18h now so I suppose it's bedtime, but I don't want to sleep.

I'm sorry new teacher, but coding this is more important than going through HTML and CSS which I already know. I got so engrossed in this that I forgot that it was the night to thursday. I promise I'll be on time and alert on tuesday!

Good night/morning!

So many buggs it's almost not fun any more

Today I've spent so much time trying to figure out what is wrong with NetBeans that it's almost not fun to code any more. At first I though it was something wrong with my code, then I noticed it works if I commit it to my repository and download it on my other computer. Eventually though I found that if I clean the project after any JavaFX changes it will run.

The frustrations I've had today has been to the point of me making new projects with profanities as the naming princip as I was re-writing the apps to see what I did wrong. At least I'll sleep well tonight...

And then I gave up on my original project and made another one instead. I dunno what my teacher will think of it so I will probably keep trying on my old one a little bit more.

Tuesday, December 2, 2014

I've had it with these mo-fo birds on this mo-fo train

Hey POM-file what are you doing?
I dunno, Maven stuff I guess.

I'm working on my JavaFX project and it's going so-so. I want to abandon ship but I put down so much work on it already that I A) don't want to abandon ship and B) Fear it will take me just as long on a new project, and it's already overdue.

What else? Well today was the first class of the new course and I celebrated that by being stuck on a train for two hours and thirty minutes. The train ahead of mine hit a bird, but they treated it as if it had hit a person (which is also what they told us had happened).

Time to whip out my webdesign knowledge in this course.

Saturday, November 22, 2014

No internet!

Yes, it's just that horrible!

Tuesday morning, right after I unknowingly left for school in the morning, we lost our connection to the internet. We have not had it return yet, but my darling neighbours lent me their Wi-Fi password enabling me to write this entry.

I'm trying to make a JavaFX project to get graded. Wow this course went by fast!

So, time to get back to the code.

Sunday, November 9, 2014

First World Problems

Not much going on at the moment other than my first world problem of doctor.biopsy(run); causing leg.skin(); to return a null, and
while (healing){
     if (skin == null){
         body.move(false);
         ass.fatten();
     }
}
And then body.status(); throws a PainfulException which I catch and turn into wound.heal(-1); and boolean bleeding = true.

Tuesday, October 28, 2014

Passed my first course with flying colours!

I've nagged about this everywhere online today, but I'm genuinely happy about passing my first course with the highest grade and lots of praise I didn't expect.

The goal in my coding is to make readable good code that's safe and generally well structured and built. It feels nice when it pays off, and I just love coding more and more for each day.

So I'm celebrating by bying myself a new mouse and keyboard that they had on a daily sale today. My mice are failing so I need at least one new, and I'd like a USB keyboard.

Oh, and the other week I made an avatar for the Java room's bot. While I gloat in my happiness you can have a look:


Monday, October 20, 2014

The difference between Java and JavaScript

Java is a cake and JavaScript is a cookie.

Java goes with the different C programming languages, and they are cakes. Like cheesecake, strawberry shortcake and sponge cake. (People who knows the different languages gets to decide which one is which) They are different cakes with different ingredients and flavors and all of that, but still all cakes.

JavaScript belongs in the same category as PHP, Python and Ruby, and they are cookies. Like raisin cookie, chocolate-chip cookie and gingersnaps. These are also very different cookies, but still in the same category of cookies.

HTML and CSS in this simile are cereals. While they are still edible, they're not pastries.


(Note: this is just for laughs, no hate on which one is which or need to mention that the languages are not in the same categories in how they work ex. Java is object-oriented, C is not)

Monday, October 13, 2014

Master of Arrays!

So what have I done tonight? Arrays. I now feel like I can graduate as a master of arrays.

I've done arrays at startup, arrays of primitives, arrays of objects and ArrayLists.

Now I only have to master everything else. But small little play-abouts like I did tonight is fun.

Next step? I'm thinking learning about collections. I should master those too. Feels like a logical next step.

Saturday, October 11, 2014

AFK Coooking



I can cook quite well if I do say so myself, but cooking is quite dull, boring and comes with a ton of dishes. So I thought I'd share with you my AFK (Away From Kitchen) cooking with minimal amount of dishes.

Lately I made up a fairly tasty yet simple home-made thai-food inspired dish. You can pretty much add any vegetables you like into this mix, this is just how I make it.


package food.lazy.Omnom

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * My recipe for Thai-inspired food.
 *
 * @author Me
 */
public class ThaiFood {
 
    public static List<Object> dishes = new ArrayList<>();
 
    public static void main(String[] args){
     
        Scanner sc = new Scanner(System.in);
     
        // These are the items you need to prepare the food
        Cutlery spatula = new Cutlery("spatula");
        dishes.add(spatula);
        Cutlery cuttingboard = new Cutlery("cutting board");
        dishes.add(cuttingboard);
        Cutlery knife = new Cutlery("knife");
        dishes.add(knife);
     
        // These are the utensils you need to cook the food.
        Pot pot = new Pot();
        dishes.add(pot);
        FryingPan pan = new FryingPan();
        dishes.add(pan);
     
        /*
         * These are the ingredients you need.
         *
         * The vegetables can be anything you like. Just buy a bag of frozen
         * wook vegetables at the store or make your own by buying a bunch
         * of veggies and either freeze them yourself or put them in fresh.
         */
        Food vegetables = new Food("vegetables");
        Food noodles = new Food("egg noodles");
        Food chicken = new Food("chicken");
     
        // The spice
        Food redCurry = new Food("red curry");
        Food soySauce = new Food("soy sauce");
        Food sNsSauce = new Food("sweet and Sour sauce");
        Food salt = new Food("salt");
     
     
        System.out.println("Hungry? And lazy? Here's how you make a nice thai-inspired wook, lazy-style! \n\n" +
                            "Here's what you do:\n");
     
        pot.add(chicken);
        pot.cook(chicken);
     
        System.out.println("");
        pan.add(vegetables);
        pan.cook(vegetables);
        pan.add(soySauce);
        pan.add(sNsSauce);
        pan.add(salt);
        pan.add(redCurry);
     
        System.out.println("");
        spatula.stir(pan);
        spatula.get(chicken);
     
        System.out.println("");
        pot.takeOut(chicken);
     
     
        System.out.println("\n* Keep the pot with chicken water on the stove,\n" +
                            "  but turn the plate off until right before the \n" +
                            "  vegetables in the are done.");
     
        System.out.println("");
        knife.cut(chicken, cuttingboard);
        pan.add(chicken);
     
        System.out.println("");
        spatula.stir(pan);
     
        System.out.println("");
        pot.add(noodles);
     
        Cutlery strainer = new Cutlery("strainer");
        dishes.add(strainer);
     
        System.out.println("");
        pot.takeOut(noodles);
        strainer.get(noodles);
     
        Cutlery fork = new Cutlery("fork");
        dishes.add(fork);
        Cutlery plate = new Cutlery("plate");
        dishes.add(plate);
     
        System.out.println("");
        System.out.println("Total number of items to dish: " + dishes.size());
    }
}

Yes this is a working program. I spent all night on it.

Friday, October 10, 2014

Studying something you love

It's so nice to be studying something you love. I began coding around ten last night and now it's nearly half passed seven in the morning. I want to keep going, but I got to a part I've never really learned, and I'm too tired to think or understand what I'm reading.

So continuing from here is more or less impossible... but I'll live.

I'll bear the code with me in my dreams, and I'll logic my way to a solution. Right now I'm stuck on trying to create something I should be able to make, I'm just too tired to brain.

It's a nice feeling though; I've been at it for so many hours and I still just wanna continue! I've already ordered my JavaFX textbook and I feel so ready for it! Finally some GUI!

The things I wanna make somehow make more sense if you're thinking with the visuals.

I hope I can catch some zeds soon.

Code something

Code something I'm giving up on you.
I'll write some code if you want me to.
Anywhere I would have coded too.
Code something I'm giving up on you.

And I am so small
It was over my head
I know nothing at all

And I will stumble and fall
I'm still learning to code,
just starting to call.

Code something I'm giving up on you.
I'm sorry that I couldn't get(); to you.
Anywhere I would have coded too.
Code something I'm giving up on you.

An I will swallow my drink
Java's the one that I love,
and I'm starting to think.

Code something I'm giving up on you.
I'm sorry that I couldn't get(); to you.
Anywhere I would have coded too.
Code something I'm giving up on you.

Code something I'm giving up on you.

Code something...

Saturday, October 4, 2014

Future hope

The photo appears to be taken by this photographer:
http://www.mlorenzphotography.com/ Pay it a visit!
Although I'm currently battling the question "am I object oriented enough?" I still feel optimistic about the future.

I can't wait until we start learning JavaFX. I really want to start working with GUI. Somehow I imagine it will make my programming better. It will be fun none the less.

So apart from working on my course examination program, I finally found my drawing utensils, So here's a little I-haven't-drawn-anything-in-3-months doodle:


Friday, October 3, 2014

Female Programmers


For some reason there aren't many female programmers. Girls - at least in my country - are increasingly better at math and physics. Girls are topping the national results of test and more girls get into university than ever before. Yet, so few girl programmers.

My theory, based on growing up as a girl myself, is like so:
While girls are encouraged to study, girls are not encouraged to actually do anything that revolves around math and physics, or engineering. Draw a pretty pony is ok, but build a pony with Mechano, or worse, god forbid, build a vehicle! Girls needn't bother their pretty heads with that. In other words, gender stereotypes.

Now, children and teens (as a general) are not aware of that they are being subjected to stereotypes; children just assume that whatever the adults teach them is how things are. If noone tells a child she can work with computers, make her own programs and apps, she won't know she can do that.

Even with gender stereotypes, girls can become programmers. You want a nice horse game? Or a pretty princess app? Go for it! Do what you think is fun! Use all that studying math you've been doing pick up programming! The internet is full of teach-yourself-how-to-program tutorials. If you can follow a photoshop tutorial on how to put on makeup on your pictures, you can follow a programming tutorial.

Most girls I've met who takes an interest in creative processes and/or IT ends up as self-taught web-designers (I myself started out there too). A frustrating business even as a girls since it's over-saturated, and these girl normally ends up just making stuff for their own blogs. Blogs which they earn more money from than the actual coding of it, and that's still not a whole lot.

So I was thinking, maybe I should address that issue myself later when I'm done becoming a programmer myself. It's nothing radical, but I thought I could perhaps hold some information meets for girls and tell them what kind of world is available to them. Tour some schools. It'd be some extra work of course so I dunno if I can actually do that, but it really would be nice if there could be some more girls picking up programming or engineering.

Thursday, October 2, 2014

Keeping at it

I don't have much to say right now, I got sick in the beginning of the week so I've mainly just been fibbing with my old stuff and started a little on my course examination project. But I thought I should post something here because... Days of nothing happening.

But my kittens survived the winter so I've got that thing going for me which is nice.

Friday, September 26, 2014

Oh sandwich cake, oh sandwich cake...

...How much I love thee sandwich cake!


Aww yiss! Sandwich cake and monay! Can life get aby better bro? Nah it can't! I'm a rich bitch!

Seriously though:
I know this is a blog mainly for Java and my antics revolving that, but today, I made a sandwich cake as a good bye meal. I am now enjoying the leftovers as I count the last money I have. It's really not as glamorous as it seems; yesterday was pay day, and that's pretty much all the money we (yes, we're two people living on this) have to spare the coming month. And by "to spare", I of course mean "will have to put into the food account" since I made a sandwich cake.

The money on the picture is less than what it cost to make the cake. 
So much for being rich...

The cake really was a luxury. But I thought it was a funny contrast on the pic. A picture says more than a thousand words, but in this case it's a thousand lies. It isn't cheap to be a student after all.


WTF is a Sandwich cake?

And for those of you who wonder what a sandwich cake is, it's exactly what it sounds like; a cake made out of sandwiches and sandwich-toppings and whatever you want really. There are as many versions of sandwich cake as there are grandmothers in Sweden. So if you ever go to Sweden. Have sandwich cake. It's better than any smörgåsbord, I promise you that!

But I warn you; once you've had it, you won't be able to be without it.

Wednesday, September 24, 2014

Sooo tired...

Today I've been coding all day straight. I'm so tired I just can't understand what I'm reading any more. But my program is done.

I can't say I'm too happy with it though; too much static, too little object. I blame my roots in C++!

I will take all the criticism I can get tomorrow. Next program will be much better!

Tuesday, September 23, 2014

Wow I feel stupid now!

I've spent all weekend trying to figure out how to solve an issue in the program I've been working on for two weeks now... And on the first student presentation of the programs my classmates have been working on, I figure it all out. I felt so stupid when I realized how simple it was. So it turned out to be a very useful day despite the fact that I've spent most of it derping around with ArrayLists, Lists and Arrays, printing in different ways. At least I know I will be done with my program by tomorrow night.

It's been a very fun day today so far. I can't wait to get home and keep coding in peace. (Sadly I get a bit distracted coding in class, since I actually am listening)

And I'll try to not make this happen:


But until the program's done I'll tell myself this:


Gotta stay humble.

Sunday, September 21, 2014

The immutable drama of map

Gently, gently, he moved his fingers over all her buttons.
- "Before I commit," he says "I have to mutate you".
Map fidgeted a bit.
- "But you know, darling, that I'm immutable. The source code says..."
He interrupts her.
- "To hell with the source code, I need this now!"
He passionately holds on to her whole body, moving his fingers faster. She squirms a bit and sighs;
- "I-if you want to mutate, p-please be gentle!"
He gives it all he's got. M, K, and he commits to her whole repository!
- "I SAID BE CAREFUL! THAT HURT! Dammit why didn't you SetFromMap! I trusted you!".
She escapes his grasps as the application crashes.
- "DAMNIT!" says the the programmer.


Don't ask me what I'm doing. I was just reading the source-code.

Friday, September 19, 2014

The golden rule

The second week of programming I made my own list of rules;

1. Make it work. (FÃ¥ det att fungera)
2. Make it awesome. (Briljera)

I was quite amused that the Java guru I saw monday had pretty much the same expression: "Make it work. Make it better."

I've been chanting my order of creation to my classmates all the time. It's a good method to work by, which is why I'm not very surprised to find that a Java Guru is using it as well.

Thursday, September 18, 2014

LinkedIn

Sooo... While working on my assignment... (which is similar to this subject, don't ask how) I remembered my empty LinkedIn profile. As vacant as my heart (and wallet) used to be as an unemployed (well, it still kinda is; since I'm studying, I have even less money now).

Straight to the point

 AHEM! So, now that I am on my way to actually becoming something, I figured; why not  try to actually connect with people? I only have less than 1½ year to network before I need to be out on LIA (It means "Learning By Working" but I'm gonna leave the acronym as "Learning In Action"). And I'm quite looking forward to the LIA part especially, so I really want to have done my groundwork and find the company for me, working with what I'm both good at and find fun. I don't even know where to start right now as I don't even know what part of programming I will be good at, or even what kinds of fields there are, but I'm working on it.

If it's something I've learned during my life, it's this.

So in the mean time, feel free to connect with me on LinkedIn and give me tips on what fields there are to program within Java so I can broaden my research.

Now, back to my project~

This week, just wow..!

This week, no day turned out as I had planned. Monday took a very nice turn of events; after mentioned shower I was invited last minute to go watch a seminar on Java 8 in Jönköping. Best. Decision. Ever. I already love it! It was incredibly interesting and despite that I've only been programming Java for 3 weeks I could follow along with everything he said. The second part of the lecture was a little bit more advanced, but still 100% understandable. And I had 4 wonderful classmates with me to hang out and discuss it as well. Best Monday indeed!

Though all my plans for Monday - including the program I was intending to make and the trip to the store. I couldn't have made it even if I wanted to as we came back at midnight.

Tuesday, fun fun fun! But boy was I too tired to even think about shopping, and I did program in school so I fulfilled that part of my challenge. I also initiated a new project that's due on Tuesday. Fun!

Wednesday, I don't know what happened there. I got up and suddenly it was afternoon (coding does that to you) and time to go shop. While in the shop, I meet up with the only person more talk-active than my little sister, whom monologued with me for 2h. My less than one hour shopping trip took near 3. All I had time to do was cook dinner and go to bed.

This morning, I did wake up early, prepared my lunch box and had breakfast, only to still leave late for the train... And at the platform, as the train arrives I see before myself the commuting pass still laying right next to the computer station on my desk, right next to my lunch box and breakfast-break sandwich. Fudge-cakes with extra cream.

Good thing I have school today. Any other activity and my day would have been ruined. At least I have school now ♥

Monday, September 15, 2014

Good Monday

The milk and yoghurt both expired two days ago, all I have to eat is a bar of chocolate. I fell asleep last night with a great idea to implement in my program, but now I don't know where to start. I need to go shop, but no breakfast, no energy to go do that either.

Life is a little meh at the moment. I think I'll wake myself up with a shower.

Sunday, September 14, 2014

Keeping up the good work

I didn't make an all new program today, instead I spent 3 hours (thus far today) working on an existing project, and I can't help but to wonder if I'm making the program unnecessarily complex. Looking at the interface intro class' code it looks like that method is way simpler. But I need to read up more on it to be able to construct something like that atm.

So, I haven't posted any memes in a few days now so I thought I'd treat you to my thoughts on this meme:
School only gives us the tools and tell us how they work, we're the one's who are supposed to figure out what to build. How else are we gonna manage working?

It probably sounds harsh for the ones struggling, especially from a n00b like me, but that's how it works. It's hard. I will probably also think it's hard, but that's how we excel and teach ourselves what to do in the future.

Saturday, September 13, 2014

Write a program a day challenge!

So I did a tiny update on the looks of the blog today, just to get rid of all the standard blog stuff. Some day I might get the thumb out of my arse and make my own layout... But for now; meh.

The background picture is indeed a functional java program. Just a little something I whipped together as a part of a challenge I was thinking of doing:

the "Write a program a day!"-challenge!

I find that just reading about programming every day isn't enough, so I'm gonna challenge myself to write a small program every day. I was thinking of something that takes about an hour to put together, but there's no time limit on it; if I feel like doing something that takes all day, I'm free to.

Would anyone care to join me?

There's no requirement to show what you make, it's more of a personal challenge where you just code to get the code through your fingers into the spine. It can be anything, however simple or complex you feel like; no-one's gonna judge you.

Comparable

So my teacher told me to look up comparable, which I've done and I've gotten this amazing "aha" moment where the more I read about comparable, the more I think it's exactly what I want for the assignment I'm working on.

I'm still on the theory stage, but it looks like it will work.

I will get back to you about it later. But that's pretty much what I'm up to atm. That, and laundry.

Thursday, September 11, 2014

Smiling

To me, programming is like a puzzle. A lego puzzle where you decide the motif. It's logical, it makes sense and there's so much to do with it. It tickles my mind that wants to absorb information, it tickles my logical thinking, and it tickles my imagination. I love it. It can eat me whole, consume all my time and I'll be happy.

I love falling asleep letting possible code structures running through my head. I love finding the next tool that'll let me do what I want. I love that "aha" moment when things just click. It's fun to read other people's code and figure out what it means. It's getting easier and easier, even with methods and tools I have yet to learn about.

When my teacher says that FX is more advanced than swing, a sparkle is born in my eyes and I instantly get consumed with curiosity of what it means, in what way is it more advanced? What can it do? I can't wait know!

The decision to start learning Java feels more and more like "fate". This is what I'm supposed to do, what have I been doing before this? Stupid me!

I hope this feeling will last.

Last night I fell asleep after the words "I wonder who'll hire me" and for the first time in my 5 year long unemployment life, it was a positive question full of future and expectation, not the old usual "will any one ever want me?".

I fell asleep smiling.

Tuesday, September 9, 2014

Free loot!

Today, not only did we dig deeper into arrays, we got a free computer bag from the school!


Which actually turned out to be of pretty high quality and stylish (I love the colours of my school).


Needless to say I was actually pretty happy! It's just what I need! And it's padded for safe laptop storage.

Since I've been digging down into arrays this passed week I had a lot of spare time during class and recess, which I spent helping out some classmates. It's nice to be of help and explaining things to people help in my learning too, so it's a win-win.

And who knows, next time it might be me who's in need of the help..? The feel in the class is really nice. It's full of kind, social, and helpful people.  It feels like we can be a good team in helping each other excel. I feel pumped for the following 2 years.



Sunday, September 7, 2014

Mini laptop

Right now I'm dreaming about one of those really tiny laptops. Just something to type code on, run netbeans and sourcetree while I'm lazying in the sofa. Not that I own a sofa atm... but a tiny little portable thing. In comparison, my normal laptop feels a bit big.

Now, I don't have the funds for it and I don't need it, it's probably the same kinda thing as I imagine normal girls feel when they wanna shop online for shoes.

Apart from that, I've been watching Sword Art Online while I've been reading up on that program I've been fibbling with since Thursday. I'm almost considering doing another program in the meantime. Something small and quick.

Oh well.

Saturday, September 6, 2014

Good morning saturday!


I have some prior coding experience with HTML, CSS and C++, the last one being kinda very minor and I haven't used it since I took the course. So when you face the code for the first time, not even knowing what IDE to download or even that you need a JVM, you really feel like a monkey behind the screen.

However, time to start the monkey-coding! (or spaghetti code, for his noodly appendage's sake)

I'm still trying to just read through the books and some tutorials and oracle... I can't say I've gotten very far, but my ideas are flowing out of me at the moment.


Right now I'm trying to work on a program using the arrays created upon start-up. I'm toying with what I can do with that information. What I want to do, what woke me up this morning, I don't even know if it's possible, but it's gonna be fun to find out.

And for those of you who lack self-discipline in studying and working outside of the classroom:






With programming, the self-study never ends! You need to think this is fun enough to more or less do 24/7. You do? Great! Let's get down to business!

Hello world!

Last week I began my new education, which is - of course - programming in the Java. I am still but a n00b and I know near nothing, but I'm having fun and my mission for the coming 2 years is to live and breathe programming.

So far I love my schedule, I love my classmates and I love my choice. I dream of coding and I wake up early because "time to try that!".

I am not a native English speaker so some jokes in this blog will be in Swedish with English translations, like so:
*pulla is swinglish for pull, but it also mean to finger someone*
Pulla in the tree? How else could I pull a commit from source tree?
Which also illustrates my bad and naughty humour. I apologize in advance.

This blog is not PG13,
(but it's not adults only either)