This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!

dario sanchez

Greenhorn
+ Follow
since Oct 24, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dario sanchez

In so far as "web developer" means a person who creates the web frontend for some application, that would be correct. But the web site may be -at least partially- driven by data, and big data methods. The person in charge of that need not be a web developer (and in most organizations probably isn't).



Who would be though? I doubt a lot of companies regular companies will actually hire someone especially for that job.

I don't know where to begin with this statement. Much of the data we're talking about when talking about "big data" is not, in fact, open source, because it's generated inside companies. There are certainly freely available data set that could be characterized as big data, often from government sources.



But isn't the problem about big data it's way to massive to be stored in a regular database? Thus therefore, anyone who has the ability to know how to access that raw data can. (Though, turning that data into information might be the problem).  2.5 quintillion bytes of data is created daily, isn't that wat too much to just store somewhere?
Heya.

Not sure if this is the correct thread. Could also have placed it in data thread. But since the webappications are run by html, CSS, javascript, I though it would be fitting here too.

I study interaction design. But I've been practicing a lot web development (front-end).

So, I want to know more about data science, how I can use it for my own web applications.

So far I've googled a lot of stuff and asked around, but answers seem to be hard to get on this topic. I've asked around for data science on my study, but I was told to first get good at either R or Python before attending. I've asked on Reddit, but there they're of opinion that data science isn't valuable as a webdeveloper. Which I find very weird, because other sources showed big data can have over 300% conversion rate (marketing term). There's also a lot of companies already collecting data for you! You just gotta pay them 1000$ a year for it. Even though big data is open source. Someone else told me big data is a like a big icecream machine, where you can mix different flavors. You either come with a great new flavor, or a nasty one.

So yes. Is there anyone here who knows more about this topic? Because so far I'm quite in the dark. I don't even know what to google for. I've seen stuff like hadoop, but not its use in context of a website.
And yes === exists in JavaScript I suppose. "1" == 1 (true) 1 === "1" false.
Rewrote it again! The if/else part.

And yeah, I'm going to take some time to see if I can find an alternative to the magic numbers.

Well, rewrote it based on your feedback. Still, i have some magic numbers. How else would I call an element based on its index position though?

Sorry for the formatting, I don't know how to edit my reply.

Bear Bibeault wrote:Three things I see:

  • You are gathering and relying on a global variable with all the inputs gathered. That's fragile and not a good idea. Obtain a reference to each individual element as needed. And use good reference canes for the variables.

  • What do you mean by this, not using querySelectorAll to gather all inputs? Should I then gather the inputs individually, or use a loop?

  • You are using magic numbers. Using indexes into the global array is a really really bad idea. Not only is it unreadable (what does "3" mean?), it's fragile and will break as soon as any order within the form changes.

  • I understand indeed. I thought it was a good idea, since the index of the animations & inputs would be the same. So that's one number for three different uses. But yes, it's not thoughtful for others who will have to work with the code. I couldn't think if a better way to spread the correct node to the correct function. I did try using a for loop, but its downside was that I'd then still have to create something that divides them.


  • All of your functions do the same thing. Create one function that does what you need to do. Any differences are passed as parameters.

  • That's one thing I considered. But those functions have different rules right? While one form is only correct when it's not empty, the other will be correct if it's not an email.

    SWIM sent me this snippet https://jsfiddle.net/Slackwise/2chp34dL/ though I barely have an idea what's going on there.
    Hello!

    I'm doing JavaScript for about 1.5 month now. I'm trying to get better!

    I wrote this code as a validator for inputs. I've found many existing code, though I didn't really understand what was going on, so did not use it (Expect for the mail validator var).

    I read you shouldn't repeat yourself, so I'm trying to get better at this. My main question about this code is: What are some basic ways to make this code shorter?