Hacker Newsnew | past | comments | ask | show | jobs | submit | barbwire's commentslogin

Is it really true that "... over 70% of people who are trying to learn to code today use videos."?

Is this as the primary method of learning, or are videos just a component of the modern-day learning experience?


freeCodeCamp did a survey amongst people learning to code, and 3 out of 4 used YouTube to learn. And that didn't even include other video sources.

In Stack Overflow's 2020 survey, over 50% of respondents said they use video tutorials when they are stuck.

It's probably only one component of the learning process, though, as I assume that most code beginners read articles/docs as well. But an important one.


Is this what is considered a product page these days? One vaguely non-specific sentence and 2 embedded videos.

They have all the information and images they need available on the play store, so why are they not presenting it on their own site?

(grumble, grumble)


I wanted a minimal aesthetic since it would match the minimal style of the launcher. Also I thought the videos gave sufficient explanation, will be improving the page in the meantime :D


> I wanted a minimal aesthetic since it would match the minimal style of the launcher.

Words are more minimal and efficient than voice (think of the passage from oral civilization to writing civilization).

After the introduction "So the thing I have been thinking about a bit recently" with the classical youtuber voice tone I just stopped the video (didn't want to check out if you - or the other guy, I don't know, don't care - were going to show me the product or spend 7 minutes on storytelling) and went to the play store to see what it actually does (since a quick glance to the page didn't show any screenshots or explanation).

Now I am installing the thing :).


> Words are more minimal and efficient than voice (think of the passage from oral civilization to writing civilization).

While text is certainly more efficient than voice, I think the (very large!) differences between oral civilization and writing civilization are more down to the fact that text is more permanent than voice.


It's kind of ironic that it forces you to use a distracting feature of your phone: speakers. Text describing the product would be more minimal and informative.


Based on the profile, it was done by a new college grad. I think we should appreciate him.


Thanks for the support and I still got one more year to become a grad :)


Indeed. I don't click videos in public when browsing on my phone because I hate hearing random videos from others. Text should always accompany videos.


Am I just out of touch with what the kids today are doing, or is this formatting really as bonkers as it seems?

  int main
    ( int argc
    , char *argv[]
    ) {
  
    // ...
  
    LColor backgroundColor =
      LColor
        ( generateLightColorPart(207, 1)
        , generateLightColorPart(154, 1)
        , generateLightColorPart(108, 1)
        , 1
        );
  
    // ...
  
  }
I can (sort of) see that this makes it easy to comment out parameters - except for the first one...


In languages that don't allow trailing commas, I prefer this comma-first style. It makes it easy to avoid missing or extra commas, which shortens my feedback loop a bit. But I usually don't use it, because a lot of people react the way you do, and I want you to be able to read and enjoy my code despite your irrational and bizarrely extreme prejudice.


I had never really thought about commas that way, but I can totally get why someone would want to use this style now. Thank you for taking the time to explain it!


I've noticed this formatting in sql scripts before too - the biggest benefit I see is making source control diffs only show one line changed rather than two when adding/removing lines.


Unless you're inserting as the first line ...


The benefit (compared to more classic formatting) only occurs if you're inserting at the end of the argument list.

If adding stuff to the end of a class or of an argument list is your most frequent case, you might have a software design problem.


Is that a benefit?


Yes. When you git blame a line you won't get a commit just adding/removing a comma changing on that line.


Some languages/DSL's allow for a comma at the end of the list too, thereby getting the same result but without the slightly strange comma at the start of the line. Adding additional lines is simple then and doesn't cause the line above to be pulled in to any git action


Maybe git blame should get better.


What’s bonkers specifically? Is the the leading commas, alignment, one identifier per line, capitalization, long names, same line braces, something else?

FWIW, everything seen here has options in Clang Format: https://clang.llvm.org/docs/ClangFormatStyleOptions.html

Personally, I like what this looks like. Leading commas are nice in situations where the first argument is fixed, but the remaining arguments move a lot while I’m tweaking & refactoring. I also like leading operators in long multi line math expressions, it’s easier to see at a glance how everything is combined when the operators are in front. I also like seeing arguments aligned, it’s easier to spot mistakes, easier to move things around, easier to use column selection, etc.

I rarely actually use the formatting I like because at work my team uses clang format so we’re standardized. Despite whatever formatting opinions I like, I love not arguing about formatting and having the formatter dictate and handle it for everyone.


I write this way to make it easier to see when I’ve missed a comma, and also for editor macros.

I’ll often reformat when I’m done so it fits our code review style.

Also I’m usually working systemverilog so 5-10 parameters are common and 50 or more isn’t rare.


If you do a lot of adhoc sql with an editer that supports multiline editing, it allows for pasting in big lists of text and quickly formatting it, trailing commas and ragged edge right data suck to edit in bulk.


I see that occasionally in my works codebase. I don't mind it so much. Sometimes I'll see

    If(predicate
       && nextPredicate
       && lastPredicate)
    {
        DoStuff();
    }
Which I don't mind but also don't write. However, I do prefer ternary expressions like

    int someNum = somePred
        ? firstVal + 42
        : 1000;


It's a hacky workaround for languages that don't support trailing commas


And more widely; languages that burden the programmer with such extraneous grammar in the first place.


Reminds me of how Elm lists are formatted; I have a hunch it may be something more common in Haskell, but that's pretty much a shot in the dark.


Yeah this is Haskell formatting


The part that has me twitching are the magic numbers in the calls to generateLightColorPart :P


Anyone who can understand what OpenCV actually is from their front page is doing better than me.


OpenCV is ubiquitous in some domains. It's like asking; "What's numpy?"


What's numpy?


Portmanteau of Numeric and Python. It's widely used Python library for matrix math and functions for operating on large arrays and matrices.


Gotta click to the about page.

> OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products.


It sort of does in the first sentence "OpenCV (Open Source Computer Vision Library)", but they could really be a lot clearer about that. I really wouldn't give a crap about the license and implementation details until I had a fair idea of what the project could do for me.


Ever see a video of a computer tracking faces in a lobby or license plates on moving vehicles? That's what OpenCV is used for; making computers "see."


If for some reason you are unaware of the existence of OpenCV, just click "About" to get to a nice summary of what it's all about.


"KiTTY is a fork from version 0.67 of PuTTY, the best telnet / SSH client in the world."

Wow - if PuTTY is "the best client in the world" then this must be, by definition, an inferior product.


I gave up after the 2nd paragraph:

Clearly I have learned everything there is to know about how humans perceive data graphics in preparation for this talk. Literally everything. But I couldn’t possibly fit it all into 30 minutes. So for your sake, let’s just refer to this talk as “39 studies on human perception in 30 minutes.”


why? i thought it was a joke.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: