I'm working on a "may eventually make me money" thing and I do pretty much 100% of the work as far as technical aspect goes (coding) and I'm set to have 30% of this "thing"... 13 hours of coding today, I feel like I achieved nothing. And it's like there is no return, I didn't get paid "someday you'll make money maybe" and I'm not sure I like the idea itself. I don't know I keep asking myself why am I doing this. It may happen.
edit: the thing I did today was un-jQuery the entire "codebase", oh my god so much broke. Also to make the scripts load async, bumped the dom loading from 6 sec to 1.5-2. Developing a site to deploy in a place where network speed on average is around 500Kbps
Also it's funny when people don't know coding, I'm not an expert, I'm pretty sub-par but people are like "Why don't you just do this..." "Do that..." if Facebook can do it why can't you? hahaha, I don't know, pathetic
edit: nothing really against jQuery just that a 1KB file takes almost 1 second to download, requiring jQuery (even min) big file. It's so easy to work with though especially multiple-selectors like selecting by class. the cross browser support... man. something I depended on and take for granted... sorry rambling pointless comment on my part.
I have found it extremely important to stop working at the end of a big accomplishment. Doesn't matter if you still have 5 hours of time left in the day and tons of energy to keep working -- when you stop and watch tv for a bit, that nagging feeling "I should be doing work" will be met and sated with the new feeling, "hey, actually I did something pretty great today." If you just keep working it feels like nothing has changed.
Yes when you stop to look back, you do realize how far you've come. It's like when you try to learn a new language and you're just blocked... you know can't just turn an idea into a working reality that others can use.
Somedays though the mind refuses to work haha, then you binge on tv and lay around like a beached whale.
I don't know the site doesn't reward me with money right now. Money is "highly desirable" just because I'm financially destroyed but when passion is in the equation it's nice. I don't expect praise either as it's kind of worthless unless people actually comprehend like what you did. "Good job" haha. I don't know... gotta avoid these essay responses.
It does feel good to get into the groove, get some coffee, music... boom! Entire day gone. Spine and eyes damaged, electrons moved on hard drives.
You achieved that jquery is not there anymore and that is us faster. That is quite a lot, objectively. It is gonna look that way after you get rest too.
And yes, people tend to have naive ideas about what is possible and people like to give brag suggestions.
yeah I was amazed that async loading of scripts, how much of a difference that makes.
I'll just remember that for future projects and code structuring making things independent or defer/wait for parts to be present due to async loading.
the console internet throttling is a cool tool too with Google Chrome. To simulate poor network speed I have it set to 500Kbps with 300ms delay. That was the latency with our closest "data center" single-core vps hahaha. What a man can do with $4.00 and brute-force-idiocy to get things done.
Yeah it's somewhat of an exaggeration, but the concept is the same some viral site with garbage-clickbait-content and this guy's like 'Why don't our photos/site load as fast this site' and I'm like... well We don't have expensive technology, we don't have teams of engineers... I'm a guy with two hands and Google... pounding away at the keys like an Ape looking for ants.
I briefly worked for a company and it took 7 hours or so to configure a working local copy of their site pulled from GitHub. Ran into problems with PHP versions, MySQL datetime stuff... that was nuts though they used bower, npm, twig, composer (all related) but yeah.
It's a complicated code/company creating charts/maps from data so it's not "just a website".
crazy too how many years things take to develop. You hear some "popular thing" or something advertised even like "Zip Recruiter" for example, started in 2010.
Oh well the little dopamine hit from making something work is a good feeling.
An aside here, just in case you ever find that you miss using jQuery for something: There are several jQuery-mostly-compatible replacements that are much smaller.
I've heard of lighter versions of jQuery and it's not really like I'm against jQuery in this particular case internet speed is really bad... and I did not know of a way to async load scripts and not have the $.is not defined problem. Mainly though the jQuery library itself is 80KB (jquery-min)... the downloading speed thing (watching network) it's hit and miss, I mean I see a 1KB file take nearly 1 second to download so why wouldn't an 80KB file take 80 seconds to download.
It's good though to learn pure JavaScript I think. But yeah I got so used to the calls that deal with cross-browser problems.
> I mean I see a 1KB file take nearly 1 second to download so why wouldn't an 80KB file take 80 seconds to download.
This does not follows though, TCP doesn't works like that, the initial congestion window is usually small and grows as more packets are received, that's why using Keep-Alive is so important, so you don't have to rebuild the socket and TLS connection before every request. Add some ping into the equation and getting the socket up to speed can take several seconds (even minutes) depending on the bandwidth, and the connection's packet loss.
Yeah I'm not 100% clear on the console waterfall thing, it shows stuff like 'this file was waiting to start downloading for some milliseconds..." then the time to download.
I use Apache, I haven't touched the KeepAlive I guess that is something to look into, a direct ping has a latency of around 300-400ms pretty high I realize... I rent through OVH and their closest data center relative to the Philippines is France... supposedly they have one coming somewhere in Asia like Singapore or something...
We do use Cloudflare but we currently use a free Cloudinary account to host our images and I cached them locally to get around that API/hr request limit. So while Clouflare helps with minizing possibly closer... the "processing" of stuff like querying with PHP/MySQL takes place on the server... I used this awful JOIN or COUNT statement that took like 300ms to execute it was bad... haha. Minor fixes.
I'm working on a "may eventually make me money" thing and I do pretty much 100% of the work as far as technical aspect goes (coding) and I'm set to have 30% of this "thing"... 13 hours of coding today, I feel like I achieved nothing. And it's like there is no return, I didn't get paid "someday you'll make money maybe" and I'm not sure I like the idea itself. I don't know I keep asking myself why am I doing this. It may happen.
edit: the thing I did today was un-jQuery the entire "codebase", oh my god so much broke. Also to make the scripts load async, bumped the dom loading from 6 sec to 1.5-2. Developing a site to deploy in a place where network speed on average is around 500Kbps
Also it's funny when people don't know coding, I'm not an expert, I'm pretty sub-par but people are like "Why don't you just do this..." "Do that..." if Facebook can do it why can't you? hahaha, I don't know, pathetic
edit: nothing really against jQuery just that a 1KB file takes almost 1 second to download, requiring jQuery (even min) big file. It's so easy to work with though especially multiple-selectors like selecting by class. the cross browser support... man. something I depended on and take for granted... sorry rambling pointless comment on my part.