• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code errors

 
Rancher
Posts: 4801
50
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I see is the instructor typing num1 -, realizing her mistake, backspacing, and typing num1 =.
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
None of this conversation is improving my opinion of video tutorials in the programming world.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Do you see all three in the video?


Yes.
 
Marshal
Posts: 8863
637
Mac OS X VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
You got style baby! More than this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic