Giovanni Montano

Ranch Hand
+ Follow
since Apr 29, 2014
Giovanni likes ...
Android Open BSD Slackware
Based in the Netherlands, I am Italian, this is not my real name, but similar.
Like Running, Bach, Plato, History, Football, Green tea, Statistics.

Android/Java/Python/Machine Learning
at the moment as an hobby
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Giovanni Montano

Claude Moore wrote:

Giovanni Montano wrote:

When you say that Ktor is really fast (and I presume you mean is really faster than Spring / Java), do you mean to say that Kotlin generates a more efficient bytecode with respect to classic Java , or that it requires much less code to do the same thing ?
I'm asking that for this simple reason. Kotlin attracted me from day zero, mainly for the claim that it could be compiled to work in a JVM, as a native executable, or to target browser.  And personally, I think that being able to create a multitarget compiled code is a great feature for a programming language.
By the way, there's nothing wrong being a fan of this or that platform / language, so any enthusiasm is really welcome !!

yeah faster to write, deploy.

4 days ago

Claude Moore wrote:Ciao Giovanni,

I'm not a Ktor user but I think that Spring will rule the Java world for a long time to come. Mainly for its completeness and because, differently from old fashioned Java EE,  Spring is very quick in embracing new technologies and frameworks. Moreover, you can use Spring and Kotlin together, so I would guess that Ktor could be offered as an option for Spring developers, instead of replacing Spring.

Well good point Clotlin is Claude.  Ktor is really fast to deploy, Java is in relation to Kotlin as Spring to Ktor.  This means that once you get used to Kotlin, you do not want to go back to Java. In my experience as Android dev that uses now Kotlin as standard language, I have never heard a dev saying he/she regrets java. At the beginning I did not want to learn the language, because was to esoteric to me, but once I got used to the more concise syntax, java is becoming just overwhelming, especially with intelliJ ide. Everybody told me the same, once the learning curve is complete nobody want to spend extra 30 per cent reading more code, writing much more lines, typing the keyboard much more. Never heard somebody telling me that  a data class is less efficient than  a Pojo. Then using RXKotlin, the java stream concept remains so limited(but this happens also with Java and RXJava have to admit).

I am saying you this, not because I want to advocate Kotlin, but because Spring and Ktor have been built in my opnion, to maintain the same efficiency that Kotlin has over Java. Ktor is so fast, that I do not see the need to use Spring Boot, although I have to admit that the knowledge (limited) I had in Spring, was on Spring MVC not Boot.

Of course I am speaking as Kotlin, ex-Java enthusiast. And is clear that Spring has his share and Kotlin/Ktor should be more a future tool of today Java Spring developers:)
2 weeks ago
I am into Kotlin, after three years I am using it, I would not go anymore back to Java, although is 100% compatible, aka is possible to write some class in java other in kotlin into the same project.
It offers a lot of features, most of them offer kind of functional paradigms. I use it with RXJava and RXKotlin a powerful library that is a kind of Observer pattern with muscles. What muscles. Basically there are something as 200 operators that allow to filter, switch, zip, merge, combine an Observable, a stream in the last Java, with an observer that subscribe on a certain time. All of this making use of concurrency just "declaring" upstream to start an operation in a thread, and downstream to observe the final stream event on the User Interface.  This changed completely my idea of Object Oriented programming, of using statements to change states as in the imperative programming one is supposed to do.
From one side I find it really exciting, from another one when one examine some code, there is a lot of magic involved, and I realize to stay miles from low level code.  Is a strange situation but I guess is where coding is going in the future, an universal paradigm, always more functional oriented. But then I think over at all the great dev people that love Lisp and Clojure, and realize that I am losing the dream to have a full knowledge of coding, because is averting completely from :
structured programming paradigms.

Functional or Imperative, why is happening that. We need seriously in my opinion a philosophy of coding, as extension of the
philosophy of the language

to understand
1) where we are going
2) why we are going

Otherwise will be the chaos of the forks of new languages, and chaos is not good because coding in my opinion is firs of all structure
I was surprised in my company I am the only dev that is completely crazy for mechanical watches. What is your model. Photo are welcome I guess
2 weeks ago
Do you have opinions? I guess could become the next Spring
2 weeks ago

Fred Victa wrote:I have been a Java developer for over eleven years and I work for a consulting firm that sends its employees to work for different clients. The length of time that an employee is contracted with a client varies considerably. My contract with one client ended and I'm looking for a new client. If I cannot find work as a developer, what do you think about getting a business analyst role or a position in QA? I wouldn't mind working in those roles if I could not find a developer position. What would clients think of those who switch to a business analyst or QA role from a development role and then back again to a development role?

I would like to ask three questions
1) Do you know scala and kotlin? Do you work always with the same frameworks? Do you like coding or you are bored because you do not learn new things?
2) A java developer with 11 years of experience can find a job, expecially with your CV, can I ask you where do you live and what is the reason you are afraid to not find another job?
3)If you like analysis become a Machine Learning Engineer, you can cover a lot of new topics, did you think about, or do you want something different than coding?
3 months ago
gomorra, i try always to alternate netflix with a movie, and a documentary
3 months ago

Randy Tong wrote:In order to replace it, I write something like activity.invalidateOptionsMenu()

deprecate is not always bad
3 months ago

Giovanni Montano wrote:Thank you Tim, but I have messed really things up, I guess I mixed EFI with the old MBR system. I did not use Linux for ages, I am trying to sort this out via lthe site inuxquestions in the newbe corner.  You are right grub cannot find I am  learning a lot from this experience, finally at the end should be able to install multiple distro and DE without too much hassle

was difficult had to work around a lot of limitations made from another operation system, but in the end worked out
3 months ago
Thank you Tim, but I have messed really things up, I guess I mixed EFI with the old MBR system. I did not use Linux for ages, I am trying to sort this out via lthe site inuxquestions in the newbe corner.  You are right grub cannot find I am  learning a lot from this experience, finally at the end should be able to install multiple distro and DE without too much hassle
3 months ago
I used GParted  to gave more space to my linux partition but now system did not boot anymore, I use  linux manjaro, and can access the "old" system with the live usb giving

grub> search.file /etc/manjaro-release root
grub> configfile /boot/grub/grub.cfg

I followed a number of steps
there is something wrong with my fdisk -l ?


and i get this error


billy-pc% sudo grub-install /dev/nvme0n1p1
Installing for i386-pc platform.
grub-install: warning: File system `fat' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

I added in /etc/fstab this third line:


# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=bb57f30f-5414-42a4-a8ac-a18aad047d55 swap           swap    defaults,noatime 0 2
UUID=cc71e759-e197-45d1-aa7c-65db99f02915 /              ext4    defaults,noatime 0 1
UUID=BC76-3943                            /boot/efi      vfat    defaults,noatime 0 2

3 months ago

Winston Gutkowski wrote:

Giovanni Montano wrote:...a good way to understand this kind of things is a Digi Comp I made in 1963

Blimey. Someone who's been around longer than me. Kudos.

Like your quote, BTW. Very Zen. :-)


just read, I am quite junior instead, but love retrocomputing
7 months ago
yesterday I could hear without attending the second part of the conference, and he mentioned a good way to understand this kind of things is a Digi Comp I made in 1963
9 months ago
As suggested by Campbell Richie I am going to play with javap, or better as I use Kotlin, I use the intelliJ function that shows bytecode directy, this opened me a word
I am going to study this. We live in an era of frameworks that do a lot of magic, I really want to know  this kind of  assembly(?) thing

So far so good, I need to study it a bit before to express any opinion, thank you very much, hopefully will come back in this thread, nice to see all your reactions. Even if Campbell Richie noticed that I am doing an high level language, is beautiful because
1) is kinda of sexy, fascinating experience, feel a kind of god
2) Who was a child that was breaking the toys to see what was inside, want to do it for curiosity
3) You become a better programmer. Do not agree? As never ending junior, I spent a lot of time to try to understand frameworks that were doing a lot of magic, making really difficult to debug third party libraries, to understand why something is happening, once one understand how the machine process things, it looks much easier doing some coding

9 months ago

Winston Gutkowski wrote:Simple answer: No.

An "if" statement in Java is equivalent to a 'if' or 'branch' statement in the lower-level language that Java has been compiled into. If you're really interested, there are probably specifications for how the JVM expects it to behave, but basically an "IF" is an"IF".
It's about the simplest computer instruction there is.



Will come back after 20ish hours from now, so that can manage to do my javap thing. . Is a magic thing that gives me anguish  to execute commands without even know what the machine is really doing, I want to go in an homeopathic way, with really small steps at the root of how all this happens

you say is the simplest instruction an if, but I guess is the one that is behind everything. I guess also in a sequence you need an "if" to execute a sequence so that machine says something :if instruction is finished, execute next line.
And also how can I do a "for"or "while" iteration if not using : do iteration x, if iteration ends, execute iteration y
9 months ago