Comments in SWIFT and markups

When you start programing in a new language then writing a comment into code is probably not what you want to learn in the fist few hours. Booooring one could say. Yes comments are not sexy when you have to write them but it is extremely NICE if you have them once the program is some months old and you want to modify something. I tell you… I programmed without comments in my first few Visual Basic programs and it took me longer to understand what I did then, than to probably code it in the first place.

So comments not sexy but extremely useful later on.

We learned how nice comments are, or maybe you have to learn it the hard way like I did, and now I quickly tell you the way to write them in SWIFT

With “//” you start a single line comment.

Example:
————————————–
/ This is a single line comment in SWIFT
—————————————
With “/*” you start a multi line comment and you end it with “*/”
Example:
—————————————-
/* This is a comment that you write over
more than one line */
—————————————-
If you really love comments and you want to document your code properly, then you should use the markup language that is provided to show well structured comments in the quick help section. It also shows comments when you ⌥ + “click” on a function.

It would take far too long to repeat everything that can be written about the mark up language so I enter the link here to apples reference document for markups.

link to the Apple markup reference

Programing in SWIFT

When I got my first PC I taught myself to code a bit in Basic. I only played with some small programs and ended in programming a poor adventure game (one like in the early times where you had to type what the character was supposed to do).
Then ages ago in 1996 I had to code in “Turbo Pascal” at school. It was a engineering focussed school, so it was all about sorting algorithms and in the end also a small control program to adjust a satellite dish to the angle and direction in a test. Somehow I lost interest in coding then.

I did not code anymore and only two years ago I started to code in “Visual Basic for Excel” as it helps me a lot in my tasks at work.

Coding now came back to my attention and I thought to myself whether I should learn to code again. Not Visual Basic, but a real programming language.

It was the time of Apple announcing SWIFT in 2014 and I was struggling to decide to learn C++ or SWIFT.

After a lot of pro and con arguments for each programing language I decided to go for SWIFT. I simply feel as if it is the language to learn at the moment. It will get very popular for all mobile platforms and maybe even one day relevant for the gaming or business software industry.
I have not ambition to get a professional coder or software engineer, but I love to be able to code and understand the concepts and what happens in all these small programs that you can by in app stores and maybe even one day program one by myself.
I’ll be posting my progress and some articles about the language…

My intention for me is also to have my own coding reference where I can look up things that I already did once before, but maybe forgot about.

Small update on the house

We finally moved into our new house at the end of July 2017. It took us roughly four months to do the interior of the house. We did some fundamental changes to the house. Removed walls, replaced all the windows, did new floors and painted all walls.

We also got ourselves a nice new kitchen and a new bathroom.
Now I must say that we have a beautiful home with a lot of space. Space is something we have plenty of now both in and outside of the house. And that is why we now have a new hobby… Gardening.

The last steps for phase one of redoing the house is that now the house gets repainted and our house extension as well as the garage gets a new wooden surface.
Once the exterior is also finished I’ll post some images from inside and outside the house.

We bought a house!

Why buying a house?

We love Cologne! We live in a nice part of Cologne next to a park, close to the Zoo, not far to the city centre and to a public swimming pool. The Kindergarten is just opposite of our house and I can go to work by train as the main station is not too far away. It sounds like the perfect place to live, but the flat has not enough space for the four of us. It started when we had to give up the office room to turn it into a children’s room. We are happy to have two kids and we managed to integrate the office into the living room by using intelligently designed furniture. Now as both kids get older the want to have more space and maybe some garden arises. So we decided that we wanted to by a house.

Buying a house

Buying a house in Germany and especially in the greater areas of big cities is a rather tiresome task. We searched nearly 2 years until we found a house that was almost the one we wanted.

How to find a house in Germany?

Yes I said almost, because one of the first opinions that we had to through over board was the though of finding our dream house. My wife and I split the search area in two, as it was too hard to search both areas alone. Later I’ll explain why.

My wife was responsible to search in the area of Bad Honnef near Bonn and myself for the southern part of Cologne. At that time I was still convinced that I want to stay in Cologne with our family so I took that part of the searching Job.

So what we did and that worked really well for us was, that we searched in the German web-based housing platforms like www.immobilienscout24.de or www.immowelt.de.

Most of the houses that are for sale have several ways of contacting the agent or the seller. You can use all of them, but what I recommend is to call. Email and web-based contacts are simply to slow. If you found a really nice house, then you are probably not the only one interested. So to be fast, look into the platform once a day and contact then agent by phone. Be ready to directly make an appointment to look at the house. Sometimes there is only one date where all interested people can visit and you will have to make time to use that spot. At the moment (2016) it is a seller market. Take it or leave it. Even bad houses somehow find a person who will buy it.
In the end we found a house in Bad Honnef that was most convenient for us as the prices for the house size that we wanted was simply too expensive for us in Cologne or that houses were in such bad shape or the place was not convenient enough.

How to buy a house in Germany?

After finding the house we wanted to buy we had some small negotiations with the seller and he fortunately agreed to give us the house a bit cheaper than he originally asked for. Before that we also went though the house with an expert to see whether there was anything wrong with the construction of the house.
The house was marketed by an agent and so we had to pay around 3.5 % of the house price as a fee for the agent. What we also had to pay were the taxes for buying a house, which are 6.5 % in this part of the country.
In Germany the buyer decides the solicitor who does the contract and so we chose one in Bad Honnef. After reviewing the contract from both parties we met with the sellers at the solicitors place and signed the contract.
There are some formalities like some background checks on the house that we had to pay for. Finally also the solicitor wanted 1.5% of the selling price. Basically we had to calculate 13% on top of the buying price to cover all the costs.

Even though it was a very exiting and stressful time we are now happy to have signed the contract.

Now we will start renovating the house the way we like it starting April 2017. I’ll keep you posted 🙂

Monte Baldo

monte_baldo1We felt like going into the mountains a bit. As we thought it was too much for the kids and we were not well equipped enough we decided to go for a cable car ride to the top of Monte Baldo. With only 40 minute car ride it was not too far away from Costermano and we were early enough to get into the first car park.

The prices were rather expensive. The tickets are 20 € for adults and 8 € monte_baldo2for our older daughter (5 years). So all in all not a cheap trip, but…well we’re on holidays… We got the tickets quite fast, but then the rather small queue to the cable car turned out to be a slow one. After several turns of “I spy with my little eye” and already annoyed kids we finally got onto the cable car. Even though I do not know why there needs to be middle station, there is one. There are some houses but no one really leaves the way uphill. The second part of the cable car ride was really nice as we could look over a huge part of the Lago di Garda. The small one of our two girls did not like it as she thought it was much too high. The car turns 360 degrees on it’s way up the hill, so even she did not have to bear the deep view all the way of the ride.

monte_baldo3On the mountaintop you have nice view into the Dolomite Alps and over the Lake. We only walked a short round to the chairlift, which comes up from the other side of the mountain.

If you like mountain biking or love to hike, than this a trip worth taking. After the mandatory ice cream for the older daughter, the younger daughter was sleeping in the monte_baldo4backpack for carrying children, we headed back down the mountain with the cable car.
Reaching the bottom we saw that the queue was really long by now and I really petty the ones who were still standing in line. It must have taken then hours to get up the mountain.

Mental note…”it is not so bad that your kids are early birds”.

Venice

Venice1Venice is about two hours away from Costermano, so it is a nice opportunity to go there at least for a day. Obviously it can be just a first impression, but never the less we tried a trip with the kids. It is a dream for a lot of people to once have visited Venice in their lifetime. A dream city it is, if you can block out the tourists who are everywhere. If you want to save some money you should park your car in the Via dei petroli. The parking costs 4.50 € per day which is a good price. You pay 26 € for a day at the Piazza le roma. Form the main road you take a bus for 1.50 € the bus to the piazza le roma. From there you can start exploring Venice.

We decided to walk via the Mercarto di Rialto, the Ponte di Rialto to the Piazza di San Marco.Venice3

If you need to refill your water supplies there is a good COOP Supermarket on the square around the Church San Giacomo dell’ Orio. Supermarkets are hard to find in the town which consists only of tourists or tourist related businesses. It must be hard for the real Venetians. If you like fruits or sea food, the Mercato di Rialto is your place to go. Our kids loved to see some of the Sea food as originals (without being cooked). On the market the dustmen and the respective ship were an interesting thing, too. In the end our kids called Venice “the wrong way round city” as everything is different here. An other highlight was an ambulance that speeded though the Canale Grande.
Venice2The Rialto Bridge is a bottleneck in the tourist flow through the city. It was so crouded that nearly nothing was moving anymore. An annoyed Venitian shouted “keep walking, keep walking” and the sluggish mass of tourists started to move and nagged about being advised to move.

The place in front of the Basilica of San Marco is incredible. One can really imagine how rich and powerful the city must have been. If you have the time spend a week there. It is worth it.

On our way back we used the water bus. We took the rout number one as it took us all the way along the Canale Grande and we got to see the city another time from the waterside. If you are in a hurry, then take number two, which is faster as it has fewer stops. The trip with route number one took us at least half an hour.

Venice is truly magical and we will come again when the kids are bigger and appreciate the cultural facets of Venice.

Sirmione

Sirmione_castle
Castle of Sirmione

An other “not at the pool day” for us and we decided to only have a short trip… so we went to Sirmione the tourist magnet on the southern side of the “Lago die Garda”.
In the part of Sirmione, which dates back to the middle ages, is located to the south of the island. We entered just like everyone over the drawbridge. Directly to the right there is the castle, which can be visited but is probably boring for children. We went through the narrow alleys and looked at the village. Unfortunately not only the visitors but also the cars need to go through these alleys which makes it stressful sometimes to walk with kids.

Sirmione_wineWe had a very good ice cream and you have at least tree ice cream spots around you when you walk the first few hundred meters. A lot of tourists try to make a challenge out of getting the biggest ice cream. Two guys we saw had ice cream cones that were over 30 cm high. I’d think that was more than half a litre ice cream. One of the two was at least seventy and I had the strong feeling that he just fulfilled his childhood dream of the biggest ice cream ever.

Also this time being early was a good decision. The small village was flooded with tourists and at the entrance to the town a traffic chaos started as there were not enough parking spaces close to the town.

SirmioneTake my advice and try to be there until ten o’clock. Then you should be save in getting a reasonable parking spot and also the temperatures are still o.k.! Then use the afternoon for swimming.

 

Verona

Verona_uhr2
Piazza de Bra

If you have children who love to get up at half past fife in the morning, then you will probably also reach Verona at nine o’clock in the morning. The disadvantage is that you have to get up early, but the advantage is that you reach the town before all the tourist masses reach it. Another advantage is that the heat is not so strong then if you go in summer.

Verona Arena
Verona Arena

Verona is a really nice place in the west of the “Lago die Garda” and it is home to Romeo and Julia. Besides being the scene for Shakespeare’s play it has a huge roman Arena that is the home of fabulous opera stagings. If you have the time and money then you should see one.

We managed to get one or two selfies with Julia and did not have too many other visitors around.

Visiting the Castelveccio is a good thing if you do not have small kids with you like ourselves. The famous renaissance writer “Dante” lived here and on the “Piazza de Erbe“ you get the feeling on how it must have been in those times.
On our small trip there we also found a small group on the “Piazza Imperio” that tried to go on strike or demonstrate. The group was either too small or they went on strike for so long that most of the supporters lost interest. Our kids liked their flags though.
Leaving at two in the afternoon was the best thing to do as all tourists seamed to reach Verona at this time. The kids were tired and we were glad to leave the masses of people behind. By then the temperatures were at 35 Celsius.

Southbound

Starting a blog during holidays is probably a common thing and that is what I do.
Our family holidays have started and we decided to go to the “Lago die Garda”. With the hope for hot weather we got into the car and headed out for the south. Coming from Cologne we thought we’d reach the destination “Costermano” in roughly nine hours. Well… do not head out on Saturdays, as we needed fourteen hours in total. A nightmare with kids, but we made it. A big thank you to our kids who really pulled themselves together. They were real darlings and made the tour bearable. Over the “Brenner” and through the Alps we finally reached “Costermano”. The village has not too much to offer, but our small flat, we rented for the two weeks is located there. “La Filanda” is the place we chose as it sounded very nice in the ad form the travel agent.

We encountered a nice place with a historic atmosphere. It once was a textile company and it was redesigned to a holiday home place with restaurant and pool. They really did a nice job on the exterior and our kids love the pool. The interior is very simple and the beds should be better.

The place is definitively a good base to explore the region.

http://www.lafilandacostermano.com

Gymnicher Mühle

Die Gymnicher Mühle ist an warmen und heißen Tagen ein Paradies für Kinder die gerne mit Wasser spielen. Im Wassererlebnispark können Kinder aller Altersstufen das Passende für sich finden. Von Wasserläufen mit Staumöglichkeiten über das Matschen im Sand bis zu einer Wasserburg mit Wasserspritzen für Wasserschlachten ist alles vorhanden .

Eingebunden in ein interessantes Konzept eines „Lehrpfads“ zur Region rund um Gymnich ist es auch für Erwachsene interessant wenn man nicht wie ich wieder das Kind in Sich entdeckt und mitspielt.

Unser Besuch war am 10.07.2016 und hat unseren Töchtern mit 5  1/2 und 2 1/2 Jahren sehr viel Spaß gemacht.

Es gibt eine Gastronomie vor Ort, jedoch kann man hier seine eigene Verpflegung mitbringen und sie dort verzehren.

Dieses Mal war auch viel geboten. Vorführungen für Kinder und mehrere kleine Bands haben gespielt.

http://www.naturparkzentrum-gymnichermuehle.de/

Anderlitschka blog