[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 313
Thread images: 20

File: 3.png (868KB, 822x552px) Image search: [Google]
3.png
868KB, 822x552px
Previous thread
>>59413636

>Discord
https://discord.gg/wdg

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
http://pastebin.com/pDT82mQS
http://pastebin.com/AL6j7GEE

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
Anyone know what the performance impact of passing a callback function prop vs emitting an event in Vue? Is it about the same?
>>
What the fuck. Why can't I get a json from a different website.

It's for a static website so i can't really do it through my server
>>
>>59462475
CORS
>>
I'm looking for a cheap hosting site, what do you guys use/recommend?
>>
>>59462531
Scaleway
>>
I have some json data returned to me with jsonp, but I can't get it in the callback function. I am using lastfm api. I can see the data in response. json parse doesn't help.
>>
is bento.io any good? i fucking hate sites that try to make you link facebook/g+

>>59462531
nearlyfreespeech.net - ~$1.20 / month
>>
>>59461667
Playing around with vs2017 and dotnet core mvc. I'm going to use it to make an app to automate the tasks I have to do as a treasurer for a sports club so it'll be mostly reading a json file from the bank.
Before you say it's overkill I want to be able to give it to my successor who can barely use spreadsheets, and they may also have a faggot box so I need it to be cross platform
>>
>>59462645
what are you using for the frontend?
>>
>>59462497
If my understanding is correct, that only works if the site I want to access has it enabled?
>>
>>59462685
Yupp
>>
>>59462668
vanilla bootstrap and razor, standard out of the box dotnet core mvc stuff
>>
>>59462689
well thats gay. Is the really no other fucking option? All I want is get some fucking text from a fucking site.
>>
>>59462704
why not use a meme framework?
>>
>>59462626

Their curriculum looks all over the place, i prefer FCC
>>
>>59462706
use a cors proxy

https://crossorigin.me/
>>
Been out of the webdev game since 2013, redpill me on the best javascript and PHP frameworks /g/, I am liking laravel besides the service container / component cancer and vue.js, what else should I learn?
>>
>>59462738
Thanks. Looks like I didn't waste hours of my life after all.
>>
>>59462809
Laravel still good. Angular good for js.

Read up on ES6.

Also check differences between php 5x and 7. Use PHP 7.
>>
So I want to learn C#.net, where the fuck do I start? I'm already stuck on the first learning page, do I choose asp.net or .net core? I just want to learn enough to get a junior position.
>>
>>59463372
It always bothered me that the php dev team sucks so much and fucked up php 6 so hard that they decided to scrap it and just start dev on 7.
>>
>>59463514
.net core is a runtime, asp.net is a web framework
asp.net exists for the .net framework and .net core.

if you need the full .net framework then use that, if you don't then use .net core.
>>
>>59462809
I only know JS.. Angular 1.X is well established and still has all the bells and whistles. ReactJS is its newer competitor that people seem to prefer, but it's not where Angular is yet and no one knows if it will be. Typescript is an option if you like types. Use jQuery sparingly and only as a last resort. Also remember to Bootstrap your CSS and use LESS or SASS

framework comparison:
https://www.indeed.com/jobtrends/q-AngularJS-q-ReactJS-q-VueJS.html
>>
Is there some boilerplate project for a react redux app with node api I can use instead of spending hours setting up webpack myself
>>
>>59463622
>ReactJS is its newer competitor that people seem to prefer
Not him but people say that Angular isn't comparable to ReactJS and the closest thing to Angular would be React in combination with Redux.

Why is JavaScript such a fucking mess?
>>
>>59463691
You're right. React isn't a replacement for angular without some help
>>
>>59463562
ok so I guess asp.net if I want to get a fucking job. Now what, Web Pages, MVC or Web Forms? This microsoft site says Web pages so I guess I start there?

All these fucking acronyms and technologies in web dev makes me want to shoot myself.
>>
>>59463799
web forms is dead, it's like windows forms for internet explorer, avoid it.
MVC is just that, a MVC framework like it exists in hundreds of other languages.

No idea what they mean with web pages, I don't see that option, can you provide a link?
Might be a JS driven page with an API.
>>
most modern sites use asp .net web api with mvc-like structure to build rest apis which u consume with a spa framework such as Angular or React/Redux
>>
>>59463853
>most modern sites use asp .net
lolno
>>
>>59463847
https://docs.microsoft.com/sv-se/aspnet/overview

>ASP.NET Web Pages and the Razor syntax provide a fast, approachable, and lightweight way to combine server code with HTML to create dynamic web content. Connect to databases, add video, link to social networking sites, and include many more features that help you create beautiful sites that conform to the latest web standards.
>>
>>59463853
is that what they teach at Ransheesh Codecamp (TM) Microsoft (R) Partner?
>>
>>59463910
What are the current top technologies then?
>>
>>59464042
spring
>>
>>59464009
oh shit, don't do this.
it's the View part of their MVC framework and without models and controllers, just inline code, like classic asp is.
Stick to the MVC framework if you want server side rendered html pages using their Razor view engine or WebAPI if you want to use a client side framework (react, angular, etc) and just talk to your server using json.
>>
File: 218201711287.jpg (65KB, 677x402px) Image search: [Google]
218201711287.jpg
65KB, 677x402px
How I identify myself as a competent PHP developer.
>>
>>59464192
Don't be indian
>>
>>59464192

kek

Question: What's the difference between laravel and symphony?
>>
>>59464211
Laravel is built on symfony.
>>
>>59462809
Why don't you like vue.js?
>>
>>59464222
I could use symphony on its own then?

I remember reading that they both were BE frameworks. What Symphony actually is?
>>
>>59464111
thank you I love you. I'll start with the MVC framework.
>>
How does ASP.NET MVC compare to Rails in terms of productivity?
>>
>>59464356
1.23-1.25
>>
>>59464249
Symphony is both a framework and a collection of libraries. Laravel is built on top of some of these libraries, not the Symfony framework itself.
>>
File: fragezeichenmädchen_reclam.jpg (59KB, 377x561px) Image search: [Google]
fragezeichenmädchen_reclam.jpg
59KB, 377x561px
Let's stop arguing about tools and start talking projects for a change. What are you working on ?
I'll start, I'm tired of having to redo the same crap every time I start a project so I'm making an authentication server to handle user login and registration. I'll make it into a template once it's done so i can either build new projects on top of it or use it as oauth auth server.
>>
File: cover.png (159KB, 426x552px) Image search: [Google]
cover.png
159KB, 426x552px
>>59464573

Currently reading this. It deserves its praise.
>>
>>59464491

Thanks
>>
>>59464587
Is it aimed at new devs learning to code with javascript or devs learning to make good javascript ?
>>
>>59464573
Pornsite
>>
>>59464573
I'm currently balls-deep in a vue.js course on udemy. It's pretty neat.
>>
>>59464615

Both. For my taste, it has a great pacing, but maybe it delves to quickly into higher concepts.
>>
>>59464636
I have honestly thought about making some kind of scraper for porn sites so I don't have to waste my time looking if there are any new videos for my fav porn star. Is there something like this available already? Because I haven't been able to find it.

Not sure yet how I'll explain a project like that in an interview.
>>
>>59464684
>Not sure yet how I'll explain a project like that in an interview.
Make a version to scrap cat vids from regular video platforms
>>
>>59464684
Don't think there's a general solution, but writing a scraper for a specific search result shouldn't take long.

Also this >>59464711. An exercise in modularization.
>>
>>59464684

Your assorted portfolio has to match your job-searching profile. Hide that stuff, or make the core work in an abstract way, then using the project interface add the porn module.
>>
>>59464725
>Don't think there's a general solution,
He could go hardcore and use neural network models to recognize a pornstar from screenshots of the videos, either training his own model from existing ones or using the one used by some anon for this exact purpose in his pornstar recognizer website that got posted a while ago
>>
>>59464788

sauce?
>>
>>59464800
https://archive.rebeccablacktech.com/g/thread/58662278
Looks like he didn't train the model himself as i thought, there are plenty of search results for this kind of stuff
https://github.com/ryanjay0/miles-deep
>>
>>59463622
>use jquery sparingly and only as a last resort
why?
>>
>>59465038
it's a huge and slow external dependency, also vanilla js improved and supports more and more crap like query selectors as time goes by
>>
>>59465093
if i just design websites and no app-shit what do you suggest then?

i always thought frameworks are overkill for designing websites.

all i've needed so far is html, css, js jquery and a backend, but ill hear you out
>>
>>59465167
The point is that you can now easily replace most of the functionality jquery provides with vanilla js so you don't need anything else most of the time.

For jquery's selectors, just use vanilla js's selectors instead. The syntax is pretty much the same.
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector

For ajax stuff, use the Fetch API (supported in modern browsers for the most part, might want to include a polyfill for it just to be safe)
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

That's like 90% of what anyone uses jquery for.
>>
>>59465167
whatever you're comfy with really
I try to use as few front end libs as possible and only use a css grid framework, sass, regular javascript with the occasional library like if i need to make graphs or something. I'd rather add complexity in the form of my code being a 100s loc mess than by introducing too many dependencies.

All >>59463622 and i are saying is you don't need to use jquery if you're only doing basic shit, it's bloat.
But at the end of the day what matters is that you use tools you're proficient with so you can actually do stuff, so whatever realy
>>
> Get API key for REST API
> Documentation says 'just use the api key with every request'
> Set authentication header to "Bearer $apikey" as in OAuth
Nope
> Use the 'Authorization' header as in basic Auth
Nope
> Analyse API playground request in FF devtools
> It uses 'Authentication: Basic' plus the base64 of the api key with ':' appended
> This is documented literally nowhere

Why do companies do this? Does this follow any kind of standard? I barely got away with it by recognizing the '==' that indicate base64 padding
>>
>>59465381
why would i use the fetch api for
>supported in modern browsers for the most part
when i could use jquery for reliable browser support in every current browser and every browser all the way back to ie9
>>
Thanks to the anon who mentioned redbeanphp. It's pretty nice.
>>
So with a cloud server is screen the best way to go for running multiple programs at once? Do you simply use
& disown && exit
to leave the program(s) running on the server or do you need to set them up as a service/something else. I assume you also want to ensure they run on startup in case the server restarts for whatever reason?
>>
>>59465573
i usually make them run as services
>>
File: 2265307204.jpg (156KB, 645x641px) Image search: [Google]
2265307204.jpg
156KB, 645x641px
>>59465426
>Documentation says 'just use the api key with every request'
>tell boss the documentation is ambiguous, so i'll have to test it a lot
>do half assed post request
>do half assed get request
>do half assed headers request
>at this point, at least 2 or 3 days went by because i'm obviously busy with some other work
>tell boss ambiguous api doesnt work, will have to contact their support
>their support guy knows whats up
>he takes 2 or 3 days to reply
>so do i
>i can feel him smiling
>he can probably feel me too
>everything is beautifully in sync
>i spent 2 weeks doing nothing even though i got it to work with the first post request
>get paid

god bless
>>
>>59465457
Because it's "supported in modern browsers for the most part" as in supported natively without any dependencies.

And as I said, if you want to support old browsers, you can include a polyfill that falls back to XMLHTTPRequest. And to be honest, you could still just use XMLHTTPRequest if you want.
>>
>>59464573
Right now some tools for twitch streamers.

I want to work with or compete with streamlabs eventually.
>>
>>59464573
>What are you working on ?
Nothing because I can't find the motivation. ;_;
>>
>>59465634
on this occassion i will stick with jquery
>>
>>59465426
This. API documentation is almost always garbage.

Not including a sample request for as many languages as possible with what headers too attach is awful.
>>
>>59465664

I like your attitude
>>
>>59465664
Are you the dude who wanted to make a platform for indie game devs to get streamers to play their shit ?
>>
>>59465603
Seems the easiest way thanks
>>
>>59465381
Every fucking slider requires jQuery.
>>
>>59465888
<input type="range">
>>
>>59465746
Yes. That's me. The current services are terrible for both indie devs and smaller streamers.
>>
>>59465919
I mean multiple item slider like http://kenwheeler.github.io/slick/
>>
>>59465935
So how is your project coming along ?
>>
>>59465953
>http://kenwheeler.github.io/slick/

goat slider
>>
http://campustips.net/

working on a website for students to put local tips on a map of their college campus. Tips are moderated so they need to be approved before being added in.

I may add in a requirement later on that you have a [university].edu email address to access the map to avoid vandalism. Also I can recruit people from different schools to act as moderators of their school
>>
File: repliee-q2.jpg (68KB, 800x562px) Image search: [Google]
repliee-q2.jpg
68KB, 800x562px
>>59466099
>Also I can recruit people from different schools to act as moderators of their school
>>
File: duud.png (129KB, 813x398px) Image search: [Google]
duud.png
129KB, 813x398px
>>59466099
>http://campustips.net/
come on ..

nide idea tho
>>
>>59466164
Interesting. What browser are you using? hyphens don't line-break for you?
>>
Little project I'm working on to get myself comfortable with databases. Is it browsable or are the loading times too much? Having 7 million entries slows shit down. The thing is basically to browse /pol/ on election night.

http://45.55.254.243
>>
>>59466218
firefox 52
>>
>>59466342
I replaced the hypen with a space so it should be fixed. Interesting that firefox doesn't line break hyphens
>>
>>59463622
What's it like living in 2013?
>>
>>59466379
Not him but I've never been presented with a good reason to use one of these frameworks. I don't even use jQuery outside of work. I know jQuery well but I don't see any good reason to use it. Vanilla JS is perfectly good for everything I do.
>>
>>59466341
load time is about 1s for me so it's usable
seems like the page is trying to load deleted imges tho, it makes the catalog flicker, especially at the 23pm timestamp
>>
>>59465975
That was kind of low on my list.

I have a project to launch after getting the design perfect, another launched project to integrate with Stripe, 2 twitch tools to finish and launch, a homepage to design for my twitch tools, then I'm working on it.

I might bring in help for that one.

>>59466099
Interesting concept.

Here's how I would swing it.

I would take this tip idea to a mobile app, called LocalTip or Tipster probably, where you record the coordinates of wherever a tip is entered. Then if anyone else goes within a certain distance of those cords it would send the tip as a notification with a thumb up, thumb down. This way you aren't limited to schools. Figuring out incentive for people to leave tips would be a little more difficult. Maybe a leaderboard or ranking system. Then you could use power users for community moderation or if a tip has more thumbs down than thumbs up for a day it gets deleted automatically. Then you have issues with tip heavy areas. In these areas display the highest rated tip in a 10m radius as the notification. Clicking 'see more' lists the other tips ordered by rating.

You're walking a hiking route. All of a sudden your phone goes "BA-ding", that sound you recognize as a Hipster Brand Name tipping app notification. You check the notification and see "Look off path towards river for abandoned cave!". Without Hipster Brand Name tipping app to see your local tips you would have never known this great cave existed and would have missed the opportunity to take such awesome pictures for INSTAGRAM TM, FACEBOOK TM, TWITTER PICTURES AND LOST YOUR E-FAME CHANCES. Download today!

I'm getting back to work.
>>
>>59462475
Here's what you need to do, if you want to get around CORS and all of that.

So, let's say you're trying to access http://theirWebsite.com/api/getData?for=clients

You can't, because the browser is blocking the js because cross-site bullshit.

So you create a php page on your own website: (http://myWebsite.com/api/getData.php)
<?php
$for = (isset($_GET['for']) ? $_GET['for'] : die("need param: for"));
$url = "http://theirWebsite.com/api/getData?for=".urlencode($for);
$ch = curl_init($url);
$headers = [
"Host" => "theirWebsite.com",
"Origin" => "http://theirWebsite.com",
"Referer" => "http://theirWebsite.com/coolPage",
"User-Agent" => "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36",
"X-Requested-With" => "XMLHttpRequest"
];
$o = [
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_HTTPHEADER => $headers
];
curl_setopt_array($ch, $o);
$res = curl_exec($ch);
header('Content-Type: application/json');
echo($res);
?>


Now hit that page up with your javascript and BAM, you did it. You just circumvented CORS.

Basically since your browser refuses to do cross-site scripting and all that, you just create a php page that mimics the activity that the user's browser would do if they were on coolPage at theirWebsite.com. Then when you hit that page up, since its on your own domain, the browser will actually load the response.

I recommend that you try to study EXACTLY how the requests for that JSON are being made on theirWebsite.com. If they are using any special headers, passing any special parameters, ANYTHING, you're going to need to mimic that EXACTLY.

Or they will realize that you're not actually a regular user, and will realize you're using a script to call their api.
>>
>>59466341
You could make it load more as you scroll to make it more responsive.
>>
>>59466432
Alright should be fixed shortly

>>59466465
The bulk of the loading is at catalog calculation, but that should ease it up more
>>
>>59466428
My point was that this guy honestly believes that Angular 1 is well-established and React is a new competitor. The majority of large tech companies use React as a frontend and are just now starting to adopt Angular 4 and Typescript.

Angular 1 might fly for tiny jobs, but industry leaders are way past that point when it comes to developing web applications and not just websites for your local restaurant.
>>
what if I will make my resume as an interactive webapp where I will stuff literally every hipster js memetool I can find

that'd be cool right? In addition to serious pdf one
>>
>>59462645
Try working with Asp.net first. Start with an empty web application and add a web form.
>>
>>59466780
Sure, go ahead, it's good practice. No employer will bother to actually look at it though.
>>
>>59466801
And move to .net core after?
>>
>>59466780
a resume needs to be something you can skim for all of a second and get the gist of it. Recruiters/employers don't give a fuck desu. I interviewed with Fannie Mae and the recruiter told me my resume was the coolest she'd ever seen. It was the default google docs resume template.
>>
>>59466882
but wait
don't they usually want to see your projects? like your cool github shit
>>
>>59466901
they dont give a fuck about your github, they only care about past job experience
>>
>>59466938
This is only true if you're talking to recruiters.

They only care about how you look on paper. You talk to a leader programmer that's hiring though? They want to see your shit.
>>
>>59466801
>>59466859
do NOT use web forms, it's counter productive. it's dead for years now and doesn't get used in new applications anymore.
avoid.
>>
>>59466901
They will look at the projects you put on your resume, but they won't actually go and look at them. Github projects are good if you're applying to internships or jr. dev positions. Once you're applying to a real job, past experience is all that counts.
>>
I'm sending a javascript array over ajax.

I'm storing this array in a db column.

It's storing literally as 'Array'

What do I do?
>>
>>59467545
insert each object of the array instead.
What language, DB, column type, what's your table layout look like?
Give more information.
>>
>>59467545
I used toString. That as way too easy.

>>59467612
It was just a regular array. Nothing special.
>>
>>59467545
>>59467663
public IActionResult Post(MyModel[] models) {
_context.MyModels.AddRange(models);
_context.SaveChanges();

return Ok();
}
>>
Is there good money to be made in web design?
>>
>>59467956
Not really. Development yeah, but any art major can web design and the world is intent on not allowing them to make any money so web design doesn't pay much.
>>
>>59468095
What about stuff like JavaScript or back end stuff?
>>
>>59468267
Yes. My first job in web development paid double what I was making at my previous job.
>>
>>59467545
Loop threw array n store its content into db?
>>
This might be an obvious question, but how do I specify a constant padding?

For example, I have a div within a body, this div takes up 100% of the space, the body has padding 10px, how do I force the padding to be 10px regardless of zoom?

So I want it to look like 10px at 100% zoom, and 10px at 500% zoom.

This is for a chat layout if it helps at all.
>>
>>59469158
you don't, your page isn't aware of browser zoom.
what happens is the browser pretends its window is smaller than it actually is and "zooms" in on it to fit your actual window size.

use media queries for different sizes.
>>
>>59469331
Thats what I was afraid of, thanks for the help ;^)
>>
This STOPS at 60 seconds

animation: 60s credits linear;

How do I make it go forever?
>>
>>59469561
Did you even try Google?
>>
File: pussy.jpg (13KB, 280x278px) Image search: [Google]
pussy.jpg
13KB, 280x278px
What can you guys tell me about Ruby/RoR?

Is it ded? Can I get a job with it? Are they all in San Francisco? What are some good books/resources to help me learn? Any of you guys use it?

How much of the old versions is applicable to the current version? I know railscast is a video resource but there hasn't been a new video in 4 years. Is any of that shit relevant?
>>
>>59469590
Doesn't scale.
>>
Can you make decent money with ads or should I look to make something subscription based?
>>
>>59469748
Depends on content and ad-provider.
>>
>>59469607
So does that mean it's shit for big sites? Is it just like a start up language?
>>
>>59469586
Yes. Fucking Google it and you tell me.

How to make css animation go forever

NOTHING
>>
>>59469847
First result turns up the answer, apply yourself.
>>
>>59469868
Iteration count? That makes no sense.

I want it to go one time. It goes one time but stops at 60 seconds.
>>
>>59469806
You couldn't run a real web app like github on it. It could probably manage gmail though, since it's conceptually pretty simple.
>>
I have a div scrolling from off screen to the top of the screen. I need it the scroll up there forever.

Can animation do that?

I have 200 spaced lines and it disappears after a minute.
>>
>>59469927
>I have 200 spaced lines and it disappears after a minute.
Are you recreating the marquee tag poorly?
>>
>>59469590
>Is it ded?
No. When it came out, it was popular because it let you shit out a basic backend for your internet startup thing with just a few commands and and .rb file edits. Since then, tons of competitors have cropped up while rails has stagnated a bit. It's still a solid option with lots of users though.

>Can I get a job with it?
Usually they care less about what specific tools you know and more about whether you can learn to use whatever they use. If you can build a crud app with rails, you can pretty easily learn how to build one with django or larevel or whatever.

>Are they all in San Francisco?
No, but there are tons of them there as you would expect.

>What are some good books/resources to help me learn?
I hear good things about the Odin Project. The official Rails tutorial is also a pretty good place to start. Of course before you do any of that, you should probably learn Ruby if you don't already know it.

>>59469806
IIRC twitter uses rails for large portions of its backend. It's pretty slow compared to other frameworks, but still fine for small/medium scale usage. And if it can't keep up, containerize your app and spawn more instances until it can.

>>59469909
kek
>>
>>59469955
No. A movie credits scroll.

It works when the div isn't so big that it takes longer than 60 seconds.

If I change it to anything huge like 400 seconds it scroll super slow.
http://jsfiddle.net/k0scqnwh/1/
>>
>>59469973
https://jsfiddle.net/2rhLz3sa/
>>
>>59469972
>twitter uses rails for large portions of its backend
Not true for a number of years, they couldn't scale it so they rewrote huge swaths in Scala. Doesn't speak much to the language or framework though, Twitter notoriously uses confusingly large numbers of servers (thousands, IIRC) and can't turn a profit.
>>
>>59469972
Thanks a bunch anon for taking the time to type that up, I appreciate it. So the language is more of a launching point for employers to know that I can learn a language and basic concepts of programming and i'll likely be using a different language?
>>
>>59470052
I don't want that. If you would read the JS then you'd know why.
>>
>>59470123
>and can't turn a profit
to be fair, that's mainly because they have no idea what they're doing as a company/product.

>>59470231
In the professional world, you'll use whatever the company that hires you uses. If that's rails, you'll use rails. You'll also probably use a lot of JS, CSS, HTML, SQL, and probably some bash/python/powershell scripts. Tons of old internal company software uses PHP and Java so it's not unlikely that you'll have to mess with that at some point. It's not about the language, it's about the underlying software design patterns and the ability to adapt and work as part of a team that companies care about (for the most part). The takeaway is that you don't need to learn rails, you need to learn how to make stuff. And to make stuff, you need the tools to do so, of which rails is one possible avenue.
>>
>>59470272
https://jsfiddle.net/2rhLz3sa/9/
>>
>>59470354
>they have no idea what they're doing as a company/product.
I am inclined to believe doing something abnormal on the tech-side is also a symptom of "they have no idea what they're doing"
>>
>>59470359
You think I don't know 90s HTML?

I need to know when it scrolls off the top which I can do with what I had. I just need it to keep scrolling as in moving the div up to the top of the screen.
>>
Figured it out.

it was the 100% keyframe. I set it to transform: translateY(-110%) and now it works right.
>>
>>59464587
Not a good intro book. Those that have a prior understanding of programming will benefit more.
>>
>>59464573
I have no ideas for money making sidea projects so I am not working on anything.
>>
>>59464573

I am building a torrent follow project using php web scraping.
>>
>>59464573
WebApps for Mobile.

Currently got a RouteMapping WebApp going on that does just what the name implies. It tracks a user's position over time, and stores the data on the server in the form of a public or private route. The saved routes contain position/time data, geocode data, some meta on the associated user and their browsing environment, and various other little things. (like custom route titles and such)

Recently got an OBD module for pulling diagnostic data from your car. (engine temperature, fuel consumption, engine RPMs & speed, etc) I'm thinking of trying to write a way to integrate this into the app.

Don't have much time to do this stuff outside of work, though. And unfortunately I don't get to write much code at work, because i'm "paying my dues" by working a non-IT position.
>>
>>59463691
Angular 1 isn't comparable to React. React is far more functional (especially with redux).

Angular 2 is more comparable to React except it does nothing better and has worse performance. I loved Angular 1, it's an amazing framework for getting things done quickly with little to no dependencies, but they sure fucked up Angular 2. Html strings & decorators instead of jsx? What a fail.
>>
>>59464587
>>59472503
Does this do ES6?

I just got a JavaScript job without actual experience in JavaScript, and while I can hack it I'm always second-guessing my code quality.

In most well-designed languages it's usually obvious how you're supposed to do stuff, not so much in JavaScript, it seems. I did read Crockford's The Good Parts back in the day, but it's pretty outdated now.
>>
>>59463799
MVC in dot net core will land you a job more than anything else. Understanding how tcp connections work, tls negotiations etc is more useful and will put you above any shitty rails dev. Learn how to automate nginx/iis/Apache configuration, how Kerberos works if you're keen for a winblows job, and you'll be an IT architect in < 3 years.
>>
>>59475669
If you need to study a book to learn how to write clean JavaScript, you should reconsider your career.
>>
>>59470123

Yeah the Twitter thing started a whole lot of shitty memes about how startups with 15 customers and no hope of growing shouldn't use Rails because it'll never handle their load.
>>
Anyone in Europe use OVH?
>>
>>59476137
OVH is a meme kek.
>>
>>59476208
Why? What's a good alternative?
>>
File: download.png (4KB, 275x183px) Image search: [Google]
download.png
4KB, 275x183px
When did you realize zurb's foundation is miles better than bootstrap?
>>
>>59476137
>>59476208
>>59476328
OVH is only a meme because of its incredibly shitty dl/ul speeds, but if you go to Kimsufi you can get
8c/16t CPU @ 2.4GHz
24GB RAM
2TB HDD
for $30/mo which is worth dealing with 100mbps speeds
>>
How can I improve the look of my site?

https://sites.google.com/site/staylikethisforeverandlisten/
>>
>>59476789
Kimsufi looks good. I only need a VPS rather than a dedicated server.
>>
>>59476928
Scaleway are really good and pretty cheap. Host1Plus is kinda okay but really fucking cheap. Both Scaleway and Host1Plus have very good dl/ul speeds but Host1Plus has bandwidth caps, whereas Scaleway doesn't.
>>
>>59461667
Assuming I run a local web server for a personal wiki on my computer.
It could be targeted by request forgery attacks, right?
How can I prevent that without using sessions?
>>
I am not fully understanding CORS.

What's the point of it, if you can just get around it via a proxy?
>>
>>59477092
to protect against CSRF
>>
>>59476987
Thanks. I think I'll go with Scaleway. Out of interest, how are distro upgrades handled on a VPS?
>>
>>59477151
With Scaleway you can't change distro without getting a new server, but the good thing is they charge only $0.03 each time you do. As for distro upgrades I'm not so sure.
>>
What is the best way to make a table in HTML without using a table element?
>>
>>59477207
Also you can keep the ipv4 address if you do wish to change distro/server.
>>
>>59477151
Just upgrade as normal, apt-get dist-upgrade etc
>>
>>59477223
By using a table, what are you trying to achieve?
>>
>>59477245
I wanted my table to stop being a faggot and auto-extend its width past the edge of the screen. I just found out I need to use "white-space: nowrap;" to get this behavior.
>>
Having being raised on dated ass Javascript books, I made the jump to jQuery without hesitation. However, I've now realised my knowledge of the DOM API is terrible.

What are the most useful element selectors in the native js library?

Stuff like:
document.getElementById(..)
document.getElementsByClassName(..)
document.querySelectorAll(..)

Am I missing any other handy ones?
>>
>>59477395
you should forget element selectors and let a meme framework handle that
>>
>>59477395
document.querySelector to get only one element instead of a nodelist
>>
>>59477395
http://youmightnotneedjquery.com/
>>
For anyone starting a new React project don't forget they updated to 4.0 two days ago and changed a lot of shit.

Don't spend 5 hours debugging like me wondering why your routes don't work
>>
>>59477879
*Updated React Router
>>
>>59477879
>>59477895
They always make breaking changes to that package.
>>
>>59477289
>white space
>no rap
das rayciss
>>
In Angular 2, if some data is coming from the back end and I want to transform it on the front end, such as time and date, do I add some additional fields in the object and fill them as I parse the data or do I pass the retrieved object to a pipe, get the data from it and transform it?
>>
Why the fuck can't web devs just sit down and make something stable instead of a dead on arrival meme.js that will be replaced in a few months?
>>
>>59478802
The consumer base keeps using cheaper and cheaper lower and lower powered devices with a greater emphasis on ghetto data plans and eeking out as much battery life as possible from their smartphone.
>>
File: standards.png (24KB, 500x283px) Image search: [Google]
standards.png
24KB, 500x283px
>>59478802
>>
>>59478802
We're using emberjs for a few years now at work.
Browsers/Javascript changes too fast to make one framework and not adapt it over coming years.
What was very hard to do back then could be easily done today because browsers now natively support more.
So it makes sense to start fresh every now and then and remove all the outdated stuff that accumulated.
>>
>>59479309

Java has had stability, consistency and extremely good backwards compatibility for over 20 years.

Why can't JS and all its meme frameworks?
>>
>>59479396
Because everyone wants to fix the """flaws""" in JavaScript and think they know the best way of doing that. Also because the devs behind these frameworks don't care about people's opinions and that forces people to splinter.
>>
>>59479396
java doesn't run in multiple closed off environments that don't support anything.
imagine it would have started but you wouldn't have access to graphics, file access, networking and only over multiple years all those features would have been added.

besides java having evolved as well. you don't filter a list the same in java 8 than you did on its first release anymore too.
>>
>>59477879
They're going to support 3.0 for a while, no reason to switch desu
>>
Which is the best platform to develop """native""" apps on?

React Native? Nativescript?
>>
>>59479505

JS has had the exact same amount of time as Java to evolve into something good, but instead it stayed an unstable piece of shit.
>>
>>59463519
Correction, they started working on PHP 5.3 instead
>>59465678
Excesive perfectionism kills creativity and spontaneity
>>59479535
You can learn Swift and Java too. Perhaps Flutter if payment is not important.
>>
>>59462475
if they offer jsonp, you can use that
>>
>>59462809
react, redux and typescript. don't use php
>>
>>59463688
https://github.com/facebookincubator/create-react-app
>>
>>59464573
a video counselling platform in node/react/redux
>>
>>59479667
is it webpack 1 or 2?
>>
Dude, bootstrap templates are the shit.

I don't even have to do anything but change images and text, cut out sections. This is nice.
>>
>>59465953
i might have a go at doing that kind of thing in vanilla js. these things have been around for years and still seem to be popular
>>
>>59467545
what's the type of the column? you need postgres to store arrays. if it's a string, you can just join it with commas or something
>>
>>59467545
Have you tried not being retarded?
>>
>>59465457
Because jquery is a giant bloated piece of shit. Why import a library with thousands of lines of code when you just need a couple?

Don't be a retard.
>>
>>59479813
>>59479880
I solved that like half a day ago..
>>
>>59479958
>jquery compressed 50kb
>bloated
NIGGER PLS
>>
>>59477395
addeventlisteners is good.
>>
Do you fully use native prototypal inheritance system in your js code or you force the class-like style faking the classes that some other languages have (java,...)?
>>
>>59481750
Or you could just use the built-in classes..?
>>
>>59481750
I just use prototyping but there's TypeScript if you want to do that "properly"

>>59481784
Isn't that only in ES6?
>>
>>59481901
Babel
>>
>>59476756
>foundation
It looks mostly the same.
>>
Can multiple devices connect to the same real-time database? Like, if I add a record on Aplication A (A web application) would it update in real time on Aplication B (A mobile app)?

Any guides on things like that?
>>
>>59482832
look up on websockets and how to use them with your favorite backend language
>>
>>59482873
Should I use WebSockets or Socket.IO?
>>
>>59482993
socket.io uses websockets.
if you are running a nodejs server, sure.
>>
>>59482832
Look up real patterns for this or you'll be in a mess.
>>
>>59483091
>>59483125
I think it would be easier to just describe my scenario. I want to show an image on one app and the people to see the image without manually refreshing the app/web page.
>>
>>59483218
Simple polling would probably suffice.
>>
File: CMAOk-AWwAEjxbH.jpg (33KB, 575x556px) Image search: [Google]
CMAOk-AWwAEjxbH.jpg
33KB, 575x556px
alright /g/ what are your thoughts on wordpress developers give it to me
>>
>>59484115
Good way to spin up bullshit and over charge people.
>>
>>59484167
True. Most of them prey on the fact that the majority of Wordpress' users don't know what the fuck they're doing.
>>
>>59484167
>>59484215
what would you advise someone about to into wordpress,if anything?
>>
>>59484258
Nothing. Use it to quickly throw up generic websites and charge people out the ass for them. Then learn some real skills so you can start plugin development and move into a real job.
>>
>>59484258
Depends on what you want to do. Theming? Plugins? Throw together a site and overcharge?
>>
I'm currently writing an image board in php. To not completely fuck the database connection I wrote myself some cache functions.

I'm mainly storing objects via serialize in different files. Is that considered a good method?

The cache only updates when some events trigger it like a new post or changes in the site wide settings, creation or modification of categories and boards.

I plan to build a html template with the objects and store that in plaintext so I just have to echo it with PHP. Am I wrong or is that a more efficient method than rebuilding the html with every page load via the same old cache?

I just recently started with PHP and its actually kinda okay.
>>
>>59484710
the databases cache is probably a LOT better than yours.
Don't overthink shit like that. Accessing a file and deserializing it is likely slower than what the database has in its memory.

If you actually want to roll your own caching, do it in memory.
>>
Anybody use vagrant for development ? Is it worth it to set up.
>>
>>59484791
I do want to roll my caching for testing purposes. I will go for the memory method as these files will likely never be bigger than a few MB.
>>
what are some solid examples to use NoSQL over regular relational database?
>>
Hey someone looking for a PHP job, I've learned Laravel decent but there are way more wordpress/drupal jobs near me.

What it acutally takes to work with that stuff is pretty vauge I'd like to focus on acutal php stuff so plugin development from what I can tell but there isn't much direction for it. If anyone can offer tips for skills/portfolio items to help with those sort of jobs I'd appreciate it! (Like for plugins is there something sort of generic I can make for my portfoilo to show i can make them?)
>>
any books, youtube tutorials or online guides about preventing malicious SQL injections and other security issues
>>
>>59486365
use a framework, let people with more experience worry about it.
>>
>>59486410
kekkkkkkkkkkkkkkkkkkkk
>>
>>59461667
https://programming-motherfucker.com/ is down. Please remove it from the OP.
>>
I would like to modify max_file_uploads that is set to 20 on the server, but I can't modify the php.ini

Can ini_set('max_file_uploads', 50); work ? Is there any way to modify the number of files I can upload at the same time when I don't have access to the php.ini ?
>>
Was taught about (and how to use) a LAMP stack as part of a CS for games course at uni. I have a bit of a feeling that that is a bit old now though - what do modern websites do now? Is there anything new that I should learn to use seeing as I'm new to everything?
>>
>>59488629
now you can use a vastly superior and more fun js based backend called node
>>
>>59488731
heard of it, is this a replacement of PHP? I'm sold.

Done a little bit of JS on this site ( http://thebestinslot.gg ), how in depth will node be to learn (for the basics you know?). Does this also mean that I won't need nginx? I fucking hate that
>>
File: 1481527825387.jpg (77KB, 384x384px) Image search: [Google]
1481527825387.jpg
77KB, 384x384px
I've got a question for you /g/entlemen. What's the deal with domain-name registration companies? Why do you need to register your domain name with a private company? How does that business model work? I mean what do these companies actually DO to give you a domain-name? Who do they register with and why can't we do it ourselves directly with whatever central web authority? How can a company sell you a domain name that they don't own in the first place?

Explanations greatly appreciated.

t. retarded semi-literate /pol/ack.
>>
http://fontawesome.io/icon/spinner/

Has font-awesome fucked up their spinner? Doesn't work anymore on my local project

It used to blur/shake the surrounding divs too.
>>
>>59488763
Learn about modern Javascript, Promises and observables, ES6 (and ES7) before working on a large project on node.js.
Every webdev meme stack has pros and cons.
>>
Hey guys, how can I enforce a constraint on a database value that forces the first three letters to be specific values?

For example, I want phone numbers that are added to start with +xx. Where x are two numbers? Like forcing a country area code to be input. Any tips in the right direction would be appreciated. Cheers
>>
Just registered my first domain name, who should I use as a host, AWS?
>>
>>59486292
When relational databases slow to a crawl. Different types of databases have widely different performance characteristics, the key here is to use the right tool for the job.

My rule of thumb is use a relational database, and only move to something else if absolutely necessary. Besides, PostgreSQL has tons of NoSQL features, you can use that as a key-value store or a document store if that's your thing.
>>
>>59488629
The trend now seems to be to let your application serve HTTP (most languages have web servers that you use as a library nowadays), and use nginx (or equivalent) as a reverse proxy against that.

>>59488763
>Does this also mean that I won't need nginx? I fucking hate that
It's not strictly necessary, Apache will do the job too, but nginx has been more convenient in my experience.

I'm curious, what problems have you been having with it?
>>
>>59490455
Most likely that's something you should be validating in your application before it inserts it into the db. Probably also want to validate it client-side if it's a web/mobile app.
>>
>>59490455
Like >>59492151 said, you might also be able to enforce db lvl constraints by using trigger scripts
>>
Is it possible to do everything on the backend and ditch js completely?
>>
>>59492362
Yes
>>
>>59492362
Yes, but there are performance drawbacks. Every page turn is going to be a full refresh
>>
How many people here use bootstrap?

What else do you use?

Do you roll your own?
>>
>>59464573
a new 4chan in C
>>
>>59494087
If you work in a group then a framework can be useful. But otherwise I prefer to roll my own.
>>
>>59467545
schema types in mongoose

http://mongoosejs.com/docs/schematypes.html
>>
>>59466099

Update on my website, http://campustips.net/

Users can now request that their campuses be added, and I also created curation tools for moderators to approve tips. A moderator can only approve tips for their own campus, not other campuses (unless they have admin privileges like me) so that tips are curated by people who can confirm their validity.

The logo probably looks like crap on other browsers (gonna edit it into an image once I'm on my main computer) and the splash page is a bit dull. Still working on the design aspect of it, but as far as I can tell the map and admintools are pretty solid. I also optimized it for mobile, but safari for ios is finnicky because safari for ios is a bitch of a browser.
>>
>>59495080
Also if you're a college student, go ahead and submit your university
>>
>>59461667
>Web Development General

Can you guys take a look at my website and rate it please?
>>
>>59495114
sure, post it, but be warned: I would make sure there aren't any security flaws in it first else you want to deal with asshole anons
>>
>>59495127
I did.
>>
>>59495168
Which website is it. Are you new to 4chan?
>>
>>59495245
Its on the internet.
>>
>>59495316
k
>>
>>59495349
What do you guys think?
>>
>>59495464
It's great
>>
>>59495464
I think you should fucking kill yourself.
>>
>>59495512
Thank you !!! <3 <3 <3

>>59495535
Wow some of you guys could try to be a little bit nicer. Fucking asshole.
>>
File: kill yourself.jpg (296KB, 1280x881px) Image search: [Google]
kill yourself.jpg
296KB, 1280x881px
>>59495597
>>
>>59494087
My team and I do
>>
>>59495625
How do you justify your attitude towards me?
>>
File: kill yourself.png (148KB, 611x400px) Image search: [Google]
kill yourself.png
148KB, 611x400px
>>59495664
>>
>>59479396

java is a lower language than JS....don't even compare the 2
>>
>>59479396
Because web developers don't learn CS or good software development techniques. Instead of learning to work with a language and its quirks, they bandaid everything until they're transpiling coffeescript into Z80 assembly into JS instead of learning how to fucking code
>>
>>59495817
>tfw you want to learn software development
>normies tell you to fall for the computer science meme
>people "in the know" say CS is worthless and to learn a meme like Lisp or Scheme because reasons
>everyone on /g/ is too much of an asshole to tell you how
>no straightforward roadmap online
I just don't want to go back to school.
>>
>>59495817
While this is largely true, your understanding of it is deficient. A massively larger portion of web developers are shit programmers, definitely. Just looking through the cancer in this thread is enough to make that clear. All that being said, the fact that web developers do things differently from traditional desktop software engineers is a Good Thing, first and foremost because the problem domain is significantly different in very important ways, but also because it drives technology in diverse directions. JS has seen cambrian explosion type growth in the last decade, which is obviously good and bad, but in the long run it forces innovation. Writing software the same way it's been written for the past thirty years and just polishing that technique doesn't push the technology forward significantly.
>>
>>59495920
School is a meme, and if you're too stupid to figure out how to teach yourself using online resources then you're too stupid to be a software developer.
>>
>>59495920
My boss said he didn't care whether I had a degree or not. Would have hired me anyways. This may not be the case for all managers hiring developers or even the norm, it's just my personal experience. No one I work with has a CS degree either. While we all do have degrees, maybe half are computer related. If I were hiring, I'd see benefit in the person having a degree only insofar as it directly taught them to program.
>>
>>59496097
It's not that I'm not teaching myself. I'm reading and have a bunch of books queued up that cover refactoring, algorithms, etc as well as recipe books for various things to get the concept behind them.

I've already basically settled on mimicking a computer science programme and cutting out the fluff. My only problem is finding materials that are language-agnostic/use a language I'm familiar with/use a language I want to bother learning right now as well as not being written a decade ago. I've accepted that I'll just need to eventually learn either Python or Java to continue grinding on my own.

>>59496102
It definitely isn't. Most employers where I live are backward old people so job requirements are a numbers game where traditional schooling takes priority.
>>
I suppose my problem is just that I have more confidence in a professional structuring a learning path for me more than I have in one I structure myself.
>>
>>59496312
SICP is software developer bible
>>
>>59496333
Try emulating one of the following curriculums:

https://www.cs.vt.edu/undergraduate/checksheets

http://www.cms.caltech.edu/academics/ugrad_cs

http://catalog.mit.edu/degree-charts/computer-science-engineering-course-6-3/

cut out all the pre-req and gen-ed bullshit though. That's just stuff they throw in to make you stay for 4 years
>>
is using your back end to append the current time on load at the end of your .js and .css files to prevent client side caching a legit method? super easy...i hope it is
>>
>>59496374
>>59496406
Thanks, anons. Looks like I was mostly going the right way outside of not accounting for databases and UI.

>Physical Education Requirement
>Swimming requirement, plus four physical education courses for eight points.
Is this supposed to be a joke?
>>
If a domain is reserved but still able to be purchased what does this mean?

I want a .uk tld so I assume the owner of the .co.uk tld of the same domain name has the right to buy the .uk tld.

So if I purchase the tld what happens?

Also name.co.uk offers whois privacy for a fee. Can I do this for free somehow?
>>
>>59492362
why not just compile it as an .exe
>>
>>59495080
>The logo probably looks like crap
It looks like an insurance company's logo
>>
>>59486292
When you're going to scale and you cant afford to re-engineer everything with multiple load balancers in front of multiple servers and any tiny implementation mistake on day one of development could cost tens of thousands of dollars in man hours.
>>
What does webpack do when you want to use CommonsChunkPlugin but different chunks need to put different thing inside of muh
$(document).ready(function(){


Can it deal with that?
>>
>try to reset file to branch and overwrite previous commit
>reset entire version to branch
>day of work gone
fml
>>
>>59479396
>Java has had stability, consistency and extremely good backwards compatibility for over 20 years.
>Why can't JS and all its meme frameworks?

Because one was carefully designed by a team over the course of several years to be a robust tool for developing complex enterprise applications with long lifespans, and the other was designed, implemented and released in a matter of weeks by one guy for home gamers to make marginally interactive Geocities pages that weren't likely to stick around for very long.

>>59495723
>java is a lower language than JS....don't even compare the 2
Don't tell me what to do.
>>
so when do i use
$something = new class();
$something->function();

and when
$something = class::function();

can someone give me short answer or link where i can read about this?
or that is not important at all
>>
>>59497542
btw, im talking about php
>>
>>59497527

youre comparing java and javascript bud, but ok. Be an arrogant newbie...see if i care
>>
>>59497652
>youre comparing java and javascript bud
Yes, obviously, that was the question.

Nothing wrong with comparing and contrasting any two given languages.
>>
>>59497542

$something = class::function();

is for a calling a parent class function.


http://php.net/manual/kr/keyword.parent.php
>>
>>59497652
Not him but JavaScript and Java are comparable in age. Its often called humble beginnings is no excuse.

Though ES6 fixes a lot of what bothered me about JS so I don't get the continuing hatewagon. Please educate me on what I'm missing if needed since IMO it's still better than PHP.
>>
>>59497823
ok, but would it be considered as wrong using
$something = new class();
$something->function();

for parent?
code will work but...
>there are no child classes
>>
>>59461667
You guys probably get questions like this in droves every so often asking how to get into webdev but I've been ignorant of webdev in general for a while, yet it seems that everyone wants "+ html/css/javascript" when I look for dev job postings because of how prolific it has become. I want to rectify that; I know the ins and outs of programming, but I don't know shit about webdev outside of the ingrained HTML and barebones CSS I scraped from building my own bootstrap HTML/CSS neocities page. It looks like ASS, but that's besides the point. Do you guys know any resources for people who don't need to go through the whole kit-kat-n-kaboodle of Intro to Programming? I've got C#, Python, and Java in my repertoire of languages currently.

I know for Python there's Flask and Bottle and Pyramid, C# has ASP.NET, but JS would probably be nice to be able to pick up.
>>
socket.js
'use strict'

var exports = module.exports = {};

exports.listen = function(server) {
let io = socketio.listen(server);

io.on('connection', (socket) => {
console.log('a user connected');
socket.on('disconnect', () => {
console.log('user disconnected');
});
});

}

exports.newComment = function(comment) {
io.sockets.emit('newComment', comment);
}

exports.editComment = function(comment) {
io.sockets.emit('editComment', comment);
}

exports.removeComment = function(id) {
io.sockets.emit('removeComment', req.params.comment_id);
}


this is my quickly arranged code. how should it actually be set up? It's the socket.io functions that will be imported into the main server.js for my node app. do I have to declare io outside of the export statement so the rest of the exports functions can use it?
>>
>>59497542
>>59497823
most likely you are referring to using :: outside a class which means invoking a static method

read: https://secure.php.net/manual/en/language.oop5.static.php

in short, static methods allow to be called without instantiating a class beforehand. there are special use cases for static methods, and if you're just learning OOP, stick to new and ->
>>
What are some good PHP CMSs? I want to bootstrap my business with some CMS sweatshop sites
>>
>>59498004
also
>https://secure.php.net/manual/en/language.oop5.static.php

$classname = 'Foo';
$classname::aStaticMethod();


sometimes PHP has terrible documentations. don't invoke methods like that, and do this
Foo::aStaticMethod();

instead
>>
File: Избор_099.png (52KB, 705x494px) Image search: [Google]
Избор_099.png
52KB, 705x494px
>>59498004
Would you say this is proper way?
>pic
this is how this class is used
        $InsertTokenIntoDatabase = InsertAge::Age();

>>
>>59497987
java is also gud for server side stuff
for js stuff either read some book or find a noob tutorial to get you started then try to get an actual project working and read the docs as you go on, the language itself is pretty easy it's basically a scripting language with apis to manipulate dom elements. you probably want to get into some front end framework at some point, either because employes will actually use said framework or just to demonstrate that you are able to learn whatever they would be using. There should be plenty of guides for these frameworks, main issue would be to avoid old resources as apis tend to change rapidly and are not always backwards compatible. Bonus points for learning javascript testing tools.
>>
>>59498172
No, but I don't want to explain such basic OOP functionality. Stick to using new and -> and leave static methods for later when you better grasp OOP. This is actually a good advice (TM), please follow it. The thing with OOP is that there's a million ways to do the same thing but you have to learn the reason behind each one in order to make an approtiate decision.
>>
>>59498260
Makes sense, I was honestly thinking about just reading the O'Reilly JS guide parts that were relevant to me, it didn't feel too difficult when I was fiddling around with some singular page to populate a table and change colors.
>get into some front end framework
I think JS has at least 50 of those at this point; last job fair I went to, people seemed to still be talking about Angular? Not sure if that one will run into the problem of having resources that are too old.

Thanks, though.
>>
>>59497911

for back end i still use php...i dont think JS for back end has the community, docs, or security as other languages....ajax is amazing, but thats not really back end....acts more like a middle man
>>
How long does linode ID verification take?
>>
Any opinions on CaftCMS?
>>
>>59497991
it was nesting. looks weird but this works

'use strict'

let socketio = require('socket.io');

var exports = module.exports = {};

exports.listen = function(server) {
let io = socketio.listen(server);

io.on('connection', (socket) => {
console.log('a user connected');
socket.on('disconnect', () => {
console.log('user disconnected');
});
});

exports.newComment = function(comment) {
io.sockets.emit('newComment', comment);
}

exports.editComment = function(comment) {
io.sockets.emit('editComment', comment);
}

exports.removeComment = function(id) {
io.sockets.emit('removeComment', id);
}

}
>>
>>59479535
>Which is the best platform to develop """native""" apps on?
The platform you want to run them on, then they will actually be native and not just """native""".

These cross-platform abstractions always miss the mark and are always a pain in the ass to work with.
>>
>>59498990

THIS

like Cordova or whatever the fuck its called....sucks balls. Go REAL native.
>>
what is your go to project for learning the new flavor of the month framework?
>>
File: 1458301125724.jpg (66KB, 497x750px) Image search: [Google]
1458301125724.jpg
66KB, 497x750px
>>59465678
want to work on something together?

What languages do you know?
Thread posts: 313
Thread images: 20


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.