Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Baz Edwards

Greenhorn
+ Follow
since Jan 14, 2018
Baz likes ...
IntelliJ IDE Chrome Java
Manchester, UK
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Baz Edwards

I've recently done some research on the best books in Artificial Intelligence, in particular Deep Learning, which is booming at the minute, so I thought I'd share it with you.

Here it is, hope it helps:

https://www.bonkersabouttech.com/ai/best-deep-learning-books/494
Hi all,

I'm a Java developer myself and when I was first learning the Java language, I often found books to be more beneficial than a lot of the stuff you can get for free online.

So in a bid to help others find some great Java books, I decided to put a list together - books that are especially helpful for beginners.

Here are 15 books that I recommend. Most are beginner books, the others are awesome reference books and of course I've included Effective Java by Joshua Bloch, which every Java developer should own IMO.

Hope you like it!

https://www.bonkersabouttech.com/programming/best-java-books-for-beginners/487";" target="_new" rel="nofollow">Best Java Books For Beginners
2 years ago
Thank you very much, that's a perfect explanation and simple to understand.  Makes sense.

Is it a Google product?

Also is it designed to work specifically with Docker?
2 years ago
Hi all,

I'm a Java developer but don't really get involved much with infrastructure/devops, but was wondering if someone could give me a brief explanation as to what Kubernetes is and what it's used for in plain English?  

Nothing too in depth, would just appreciate an overview or if there's anything you recommend reading to get a basic gist of what it actually is and what it's for.

Cheers!
2 years ago
Personally I would consider Struts to be legacy and I would migrate to using Spring as soon as you can.

If you use the latest Spring boot for example, you can do away with all those nasty XML files which are cumbersome at best.  Then you can start to use annotations for all you configuration, dependency injection etc.

Just my oppinion though
2 years ago
If you want to start learning AI, then I'd start by looking at some of the deep learning stuff that's going on at the minute.

I like this guy on YouTube, as I think he explains the concepts really well: https://www.youtube.com/channel/UCWN3xxRkmTPmbKwht9FuE5A/videos

This is a pretty good video too: https://www.youtube.com/watch?v=ILsA4nyG7I0

If you really want to get into the nitty gritty (maths heavy) then I recommend this: https://www.youtube.com/watch?v=PlhFWT7vAEw&t=1559s

In terms of practicalities, start looking a https://www.tensorflow.org/get_started/get_started";" target="_new" rel="nofollow">Tensorflow and learn some Python, which is often used to build machine learning models.

Hope that helps.

Campbell Ritchie wrote:Thank you. I seem to have got my previous post wring; I meant to say they say ++i is faster. Sorry.


I knew what you meant mate, no worries
2 years ago

Campbell Ritchie wrote:Some people say there is a performance enhancement in Java® too if you use i++, but what is one clock cycle between friends?



Well it doesn't matter so much in Java, but at the time when I was writing C++, it did matter, a lot of my applications were performance critical.
2 years ago
When I was a C++ programmer, you could get a little performance increase by using ++i rather than i++.

These days though, I'm not sure it makes any difference and the convention in Java is to use i++.

Personally I don't use for loops much these days as I tend to use the Java 8 Stream API which is more concise and reads a bit better.
2 years ago
Hey,

I'm not completely sure what level you guys are at in terms of Android dev, but I'd like to share a post which I hope will help some people get started developing Android apps.  It's aimed at people who have never done any programming before, let alone Android development, so I apologize if it's too basic.

That said, it is full of resources, videos, hint and tips to progress further:

How To Build An Android App From Scratch

Cheers,

Baz
2 years ago

Junilu Lacar wrote:

Baz Edwards wrote:
It's very annoying and probably one of the main downfalls of Java as a language because it means you have to check variables for null everywhere, otherwise you'll get NullPointerExceptions being thrown, which is never a good thing.

In Java 8 there has been some attempt to alleviate the pain ... but it's still a bit of a pain, but one you learn to live with ;)


Well, ...

When you find yourself dealing with that problem too much, then you have to look at the design. For example, if a method that declares an object reference return type like List is returning null, then you have to ask why it does that instead of returning an empty List. If it returns an Object and is returning null, you should ask if it's better to return a Null Object instead. These are just two ways you can create a better API and relieve the client code from having to check for null all the time.



Yeah I totally agree you should design your API's correctly so that the client doesn't have to check for null all the time, like you say, it's a good idea to return empty lists and things like that.  I'm just making the point that Java should never have been designed with the concept of null in the first place, but that's just my opinion.
2 years ago
Yep, null means it does not have any value whatsoever - not even zero or an empty String.

It's very annoying and probably one of the main downfalls of Java as a language because it means you have to check variables for null everywhere, otherwise you'll get NullPointerExceptions being thrown, which is never a good thing.

In Java 8 there has been some attempt to alleviate the pain of checking for null all the time with the "Optional" class, so for example Optional.ofNullable(myNullStringObject).orElse(""), but it's still a bit of a pain, but one you learn to live with ;)
2 years ago
Not sure if this would be useful to anyone, but here's a collection of the best hacking books you can buy at the moment if you want to get into ethical hacking.

20 Best Hacking Books You Need To Read If You Want To Become An Ethical Hacker

Enjoy!
2 years ago
I have used them and they're ok, but I've found that most of the information I need, I can get online
2 years ago