[ rss / options / help ]
post ]
[ b / iq / g / zoo ] [ e / news / lab ] [ v / nom / pol / eco / emo / 101 / shed ]
[ art / A / beat / boo / com / fat / job / lit / map / mph / poof / £$€¥ / spo / uhu / uni / x / y ] [ * | sfw | o ]
logo
technology

Return ]

Posting mode: Reply
Reply ]
Subject   (reply to 25628)
Message
File  []
close
yes_of_course_i_can_do_the_job.gif
256282562825628
>> No. 25628 Anonymous
11th November 2016
Friday 7:30 pm
25628 spacer
So I am now in charge of a website that runs on mongodb and angular.js. Guy who wrote it for the friends of mine is a no good cokehead who when he was getting low on prozzy and coke money would log in and break shit so they would have to ring him for "support". twat.

Thing is, I have no fucking clue what I'm doing. What I've managed so far is...resurrect the site, get the shopping cart working, change the search bar to be case insensitive (because no fucker capitalises the first word in a search bar), and a few other things I won't bore you with. To be honest, I'm amazed I'm winging it this far.

Googling is becoming tiresome though for mongodb. They all show examples of code snippets you have to run instead of mongo shell commands (well most of them).

The issue is half the reason the search is a massive pile of wank is all the products are labelled stupidly. This would be a simple fix if I knew how to edit the fuckers, but as I said I have no clue what the FUCK I am doing.

Anyone know any good resources for a mongodb crash course? Or just how the fuck you edit database entries? Yeah I know that last one is requesting spoonfeeding, just a decent crash course would be very very helpful.
Expand all images.
>> No. 25629 Anonymous
11th November 2016
Friday 9:01 pm
25629 spacer
>>25628
Spend 2/3 of your wages on coke and give the old guy a call.
>> No. 25630 Anonymous
11th November 2016
Friday 9:51 pm
25630 spacer
>>25629
Nah. I know the guy, and I've heard he's got miffed when he's discovered he's locked out of the server. He doesn't know it's me who's done it yet though. If I call him up it's a dead giveaway. He's quite a lot bigger than me. Also I won't be able to stop myself from railing at his retarded API choices. I mean come on, using regex for the search in a way that only one word works when there's a module specifically for multiple word text strings? Why would you ever do this?
>> No. 25631 Anonymous
11th November 2016
Friday 9:51 pm
25631 spacer
Suppose I'll just have to RTFM. All of it.
>> No. 25632 Anonymous
11th November 2016
Friday 10:57 pm
25632 spacer
>>25628
What does the site do?
>> No. 25633 Anonymous
11th November 2016
Friday 11:04 pm
25633 spacer
>>25632
Online shopping thingummy.
>> No. 25634 Anonymous
12th November 2016
Saturday 12:20 am
25634 spacer
>>25633
Who/how does it handle payments? Thats the first thing I would want to understand. What level of PCI is it. That dictates how/what you have to concentrate understanding first in the stack. People love MongoDB but it has a reputation for being careless, others compare it to snapchat for your data.
>> No. 25636 Anonymous
12th November 2016
Saturday 1:13 am
25636 spacer
Well the first thing to do is swap mongodb for MySQL.
>> No. 25637 Anonymous
12th November 2016
Saturday 2:04 am
25637 spacer
>>25634
>Who/how does it handle payments?
Paypal. That bit is sorted.
>What level of PCI is it.
*Insert joke about me not having access to the server motherboard as it's remote*. Sorry I don't understand what you mean by PCI here.
>People love MongoDB but it has a reputation for being careless, others compare it to snapchat for your data.
Oh wonderful.
>>25636
> Well the first thing to do is swap mongodb for MySQL.
I wouldn't know how to convert the database over. It would be a case of "now you have two problems".
I've never really done anything database related before. It's all been html/php, bash scripting or Spectrum BASIC.
>> No. 25638 Anonymous
12th November 2016
Saturday 3:47 am
25638 spacer
>>25636
That's like saying he should get a brain tumour instead of a stroke.
>> No. 25639 Anonymous
12th November 2016
Saturday 4:04 am
25639 spacer
>>25638
Maybe you should.
>> No. 25640 Anonymous
12th November 2016
Saturday 5:16 am
25640 spacer
>>25638

Mongo is absolutely the wrong tool for an e-commerce platform. It's a stupidly fast object store, but it barely counts as a database. Performing the most basic query is difficult and computationally expensive. Unless you're literally Amazon, Mongo is all downside and no benefit. OP appears to be hopelessly out of his depth, but his client really needs to transition to Postgres.

Angular is an equally poor choice. It's great for big, complicated single-page apps, but it's totally the wrong tool for an e-commerce platform. A traditional MVC framework like Rails would be a far better choice. It seems that the previous developer used whatever was getting hype on HN, not the best tools for the job.
>> No. 25642 Anonymous
12th November 2016
Saturday 8:11 pm
25642 spacer
>>25640
>but his client really needs to transition to Postgres.
This was kind of what I was getting at. It's all well and good suggesting that the OP needs to get that shit onto a relational system if the system being recommended is useless. Postgres has its quirks but is pretty solid. I really can't understand why anyone still uses MySQL for anything serious. Maybe things have moved on, but when I was looking at it support for full-text indexing was pants, transactions were broken, replication was a complete shitshow, and if you accepted the default configuration it was liable to just swallow your data when you weren't looking. Pretty much the only saving grace was how easy it was to dump the database and restore the dump into an empty one.
>> No. 25668 Anonymous
15th November 2016
Tuesday 2:21 am
25668 spacer
>>25640
>It seems that the previous developer used whatever was getting hype on HN, not the best tools for the job.
The further I get into this project, the more apparent this becomes.
I went to check on the site today and it was lagging like fuck. Restarted the node app and it was fine. Now, he had set it up with some weird module that mimics cron, so if it ever went down it's supposed to restart it. Thing is it gets laggy as fuck after a few days, unlike cron which has been around since the seventies, and is coded properly.
Ripped out that bit and replaced it with a bash script and now it works as it should.
Why the fuck would you use something to replace cron? Just why? Rage ticked.
>> No. 25669 Anonymous
15th November 2016
Tuesday 8:09 am
25669 spacer

https://www.youtube.com/watch?v=ffnXVrPuISo
>> No. 25670 Anonymous
15th November 2016
Tuesday 8:57 am
25670 spacer
This video was the crash course I was looking for.


https://www.youtube.com/watch?v=pWbMrx5rVBE
>> No. 25686 Anonymous
15th November 2016
Tuesday 11:31 pm
25686 spacer
>>25670
Crash most certainly being the operative word.
>> No. 25690 Anonymous
16th November 2016
Wednesday 2:17 am
25690 spacer
>>25686
It got me up to speed enough to be able to edit database entries so I could fix the crappy search, and I now know enough to add new products to the inventory. Can't complain.
>> No. 25693 Anonymous
24th November 2016
Thursday 12:03 am
25693 spacer
Continuing to get away with it lads. Every time a new problem is put in front of me I say "Of course I can do that, I'll have it done by X time" when what I'm thinking is "How the fuck am I going to do this by X time?!". Haven't missed a deadline once.
>> No. 25694 Anonymous
24th November 2016
Thursday 12:08 am
25694 spacer
>>25693
I had some advice from a fairly successful entrepreneur which was to do exactly what you're doing. Companies will ask him or his business if they can do something and they just say yes then just work out how to. Seems a bit obvious in retrospect.
>> No. 25695 Anonymous
26th November 2016
Saturday 6:23 am
25695 spacer
>>25694
Yes, I'm going to take this approach in the future. It makes sense.

Well, the work is pretty much finished (I've finally blown through the budget they had set aside for the e-commerce side of things). I knew this was coming up soon so was a nice bloke and wrote a load of scripts for the server to look after itself, do daily checks for load problems and sort it if so, and a bunch of other stuff the last guy didn't do like make sure the server/database sets itself up again if it has to be rebooted.

There's some talk of work being thrown my way regarding the promotions/sales aspect of it, with a nice (20%) commission on any sales. Which I suspect they will need, because the site doesn't even show up in google yet if you google the website name. I'm pretty good with SEO as well, and they know this.

First "proper" tech job I've had, and I fell into it by accident. Perfect work for me, think I might look into doing this more.
>> No. 25696 Anonymous
26th November 2016
Saturday 7:43 am
25696 spacer
>>25694

At my work people hate our CEO. He comes into the office, tells us to do something, and everyone starts complaining that what he's asking is impossible, and of course he ignores this and says do it anyway.
Usually it turns out that he's actually right, it is possible and gets done on time.
>> No. 25697 Anonymous
26th November 2016
Saturday 3:54 pm
25697 spacer
>>25695
Good work lad.

Return ]
whiteline

Delete Post []
Password