« first day (2895 days earlier)      last day (2050 days later) » 
00:00 - 21:0021:00 - 00:00

9:04 PM
hey friends....in e commerce web application, how does "notification" table stay updated? is there any scheduled query fired everyday every time that fetches today's delivery-orders and stores into "notification" table?
Thanks.
 
why?
@ArunRaaj can't the Notifications simply have a property activateOn, which contains the timestamp?
 
but notifications are fetched from "notification" table right?
then who stores data into notification table
 
o.O
 
that's my concern
 
Umm... you?
 
9:08 PM
how
do we have to update the notification manually every day or it is scheduled task?
 
Up to you.
 
how would you do?
I dont have any idea
 
@ArunRaaj when someone creates and order, then the notification gets created
 
Depends on the system
 
^ that
 
9:10 PM
yes, but the notification about delivery, like it is "out for delivery"?
 
Who tells you it's out for delivery? And how.
 
as per the tracking
 
Do they send a pigeon with a note?
 
okay i had a different case actually, it's a healthcare app. in which u have to inform the patient that he has an appointment today.
the patient who booked appointment week back, u have to notify on the day of appointment
 
Okay. So run a CRON script which checks the database for people who need to be notified
 
9:13 PM
does this cron script firstly stores data into "notification" table?
 
@ArunRaaj so, when the appointment was created, it also created the notification
 
Yeah then when you query the notification table for todays (or tomorrows) notifications, send them.
 
and if the appointment gets altered, then the notification gets altered too
... it's as if you see "notifications" as some kind of an alien technology
 
haha. no i had to know if it's scheduled task or not
im a newbie
 
Read about CRONs
 
9:17 PM
ys, thanks.
 
@ArunRaaj scheduled task also get written in a table somewhere, and either get executed in order or by some filter (like 'execute-after-timestamp" parameter). It's just that scheduler is a separate script that runs in a different "execution stream" from your website
like for example, using crontab
 
alright! 👍👍
 
supervisord.org is good too
 
@Levi I feel like Rowan is missing the whole point. You do not win anything by having to make something nullable, because, if something is nullable, it means that you ought checking it against null. However if you access something not nullable before initialization, it's a logic error.
 
guys when u save a "product" in your ecommerce application. the uploaded picture of that product gets stored into table or some file system?
 
9:25 PM
^^^inb4. That name reminds me, is there a software that can be used as an alternative for a Project Manager(the person)?
 
@ArunRaaj file system
 
@Levi It's like having function getSomeValue(): Foo { if (!$this->foo) { throw new \Error("Not available yet"); } return $this->foo; } }
 
Ultimately it is true - a class shall be fully initialized when being moved outside of a library boundary (unless intentionally like when hydrating via doctrine) - but that's nothing we can really enforce @Levi
 
guys, in 3-tier architecture application, 1st tier is client-side, 3rd tier is database. but where does the 2nd tier i.e. business logic reside? is it on cloud-storage?
 
9:46 PM
@ArunRaaj why would it be on cloud storage?
 
where would it be?
 
wherever you want it to be, I assume
 
where does the code go when u submit ur work while logging out at ur workplace?
 
for example, where I work, our public website is self-hosted
on the web server here
 
ok, does web server belong to 2nd tier in 3 tier app?
 
9:50 PM
the server which the website is hosted on has both the business logic and the database
 
is it still 3 tier app?
 
I dunno
I don't care if it is or isn't
 
@ArunRaaj why do you care about trying to structure something as a 3-tier app?
 
it is being asked
what is a 3 tier and n-tier app
 
29 secs ago, by Arun Raaj
it is being asked
 
9:52 PM
it's being asked in interviews
 
I think the answer they are looking for is just "server side" - whether that's a real server or a vps, or possibly a serverless thing like amazon lamda
 
assume amazon.com, how many tier of app would it be?
 
what is a 2nd tier app?
 
2 tier
 
ok, what is a two-tier app?
 
9:55 PM
@ArunRaaj mu
 
I think you were interviewed by a stuffed muppet (pretending to be a project manager)
 
client side and database
2 tiers total
 
@ArunRaaj the terms you are describing, are typical of language used in the 1990's or early 2000's. Amazon don't have tiers, they have lots and lots of different message processing systems.
they aren't arranged in tiers, they are far more complex than that.
 
it's not like you can't access database directly from the browser, but you really really shouldnt ... being able to write SQL in browsers debug console sounds terrifying
 
does it mean u havent heard about n-tier app?
in ur schooling or graduation?
 
9:59 PM
please write words properly. Particularly when you're being snarky about someone else's education.
 
orthogonal architecture, n-tier architecture, mvc architecture
those are generic names for broad concepts
and they have nothing to do what you described as "two-tier app"
 
i apologize
 
How can you check if the new password you enter is similar to the other passwords you had (Like google does for security), because even if you save old passwords, you save them hashed?
 
@Jony by giving each password a score according to some pattern
most likely they feed all your password into some small neural network and have it categorize it
 
@tereško So thats not really similarity, but following a pattern, e.g if I used ben123456 in the past and then I use jony123456 it will not allow me to do it
 
10:03 PM
I am just guessing
 
Evenings
 
I didn't try, but if you change one character in the password, would the hashed result be 100% different?
 
the general guideline is: do not force users to change passwords every month, because that way you end up with passwords like "mvow487h-201809", "mvow487h-201810", "mvow487h-201811"
@Jony yes
 
10:52 PM
o/
I have to insert data to mysql db via php form but as the same time I don't go to another page . how to achieve that
echo '<form action="addproducts.php" method="post" enctype="multipart/form-data" class="form-horizontal well col-xs-8 col-xs-offset-2">';
If I remove addprducts.php my task wouldn't be accomplished
 
00:00 - 21:0021:00 - 00:00

« first day (2895 days earlier)      last day (2050 days later) »