Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Code errors

 
Rancher
Posts: 4277
47
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:Did someone say my new 4K resolution monitor is not good enough and shows incredibly pixelated pictures



Yep.
Sounds rubbish.
I'll take it off your hands for you...no, no problem, no need to thank me!
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems many of us here are equally curious about this video discrepancy.

I went back and watched the seconds leading up to my screenshot.
Specifically at 5:15 and noticed something very interesting.

The video resolution theory can be shot right out of the water now.

The instructor types 'num1 =' and then immediately after that backspaces to delete the
equals sign.

That has nothing whatsoever to do with video resolution.
That sequence of events and the equals sign is clear as day.

Immediately after that backspace, she hits the spacebar twice before entering
Float.parseFloat()...

Can anyone else verify this?
 
Sheriff
Posts: 6269
167
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I see is the instructor typing num1 -, realizing her mistake, backspacing, and typing num1 =.
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None of this conversation is improving my opinion of video tutorials in the programming world.
 
author
Posts: 23840
141
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:What I see is the instructor typing num1 -, realizing her mistake, backspacing, and typing num1 =.



Same here.
 
Ranch Hand
Posts: 97
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to agree with that, I watched a couple of video tutorials, seemed a total waste of time.

Ben
 
David Henstridge
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I would agree, it makes the most sense that she backspaced to delete the - sign and replaced it with the = sign since they sit right next to each other on the keyboard, and one could easily type the - instead of the =.

The poor Youtube resolution would explain why I thought it was an = sign rather than a - sign that she deleted.

But what I still don't understand is why I can't see anything she types immediately after deleting the - sign, but some of you folks here do?

A little more detective work might help us.

On the (source) page Netbeans Introduction to GUI Building page that she refers to throughout the video Netbeans
when you scroll down you see :

num1 = Float.parseFloat(jTextField1.getText());
num2 = Float.parseFloat(jTextField2.getText());
// Now we can perform the addition.
result = num1+num2;

however in the video I can only see the first = sign.
The other two are missing on my screen.

Do you see all three in the video?


 
Knute Snortum
Sheriff
Posts: 6269
167
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Do you see all three in the video?


Yes.
 
Marshal
Posts: 7187
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said earlier, I think it is down to the region which resolution is being distributed to youtube channel. I'm getting also only poor quality, while it is clearly seen that Knute's provided screenshot is sharp.
On the other youtube video's I have no issues of seeing "=" and getting high resolution video's.
 
Henry Wong
author
Posts: 23840
141
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David Henstridge wrote:
Do you see all three in the video?



She isn't exactly following the Netbeans example .... but ... yes, her Java code is valid.

Henry
Coderanch_Equals2.jpg
[Thumbnail for Coderanch_Equals2.jpg]
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!