Predicting genes in prokaryotes is relatively straightforward and is usually done with high accuracy. This is because prokaryotic genomes have something called high gene density (most of their DNA is coding for genes) and their genes are continuous (in one piece). I suggest you try prodigal for prokaryotice gene prediction.
Eukaryotic genes are more difficult to predict, and that first link is mostly about eukaryotic gene prediction. This is because they have lower coding density and genes are discontinuous (there are introns that have to be cut out and exons to be spliced together). There are many programs for this purpose, and they are in general less successful in accurately predicting gene locations and structure.