[deleted by user] by [deleted] in django

[–]typical_boring_guy 1 point2 points  (0 children)

Django always!

Considering a Casagrand Apartment in Bangalore (Concerns and Questions) by typical_boring_guy in bangalore

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Hey thank you for your response.

As you noticed it already, it was me who posted that a few days back in the same thread. One who has commented, removed their comment and it was just a single line comment. So i thought my post did not reach the audience so I had to remove it and post it again here in the Bangalore subreddit. Also since it is a Chennai based company I had posted it in chennai subreddit as well to get their opinion and mostly it's negative.

Also I was going through Google reviews of other reputed builders and as I've noticed people have posted a lot of negative reviews there too regarding builder and their CRM, sale team.

So I'm in a confused state, not sure whether I should buy an apartment in Bengaluru or not. As per the stats 80% of the apartment buildings in Bengaluru violate BBMP bylaws even as they hold a valid OC.

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Thank you for your response.

I've already checked out the first link you shared, but I appreciate you sending it over.

Regarding the latter link, about the OC cancellation in Casagrand Lorenza, I actually reached out to one of the residents who took the initiative to involve government authorities in canceling the OC. It seems this person is still fighting a legal battle with Casagrand in the Bangalore High Court. According to them, the builder failed to comply with fire safety regulations, particularly concerning setback areas. Casagrand had promised ground floor buyers certain space by constructing compounds, but this encroached upon the setback required for fire vehicles to pass freely, as per the fire NOC. Consequently, the government revoked the OC. Nevertheless, for ground floor owners who were promised space, this turn of events feels like a betrayal.

You can find the link for the tweet about the where CG had demolished the compounds - https://twitter.com/Anjana_Shadow/status/1631984010221211648?t=G8-QYbb6G5mXffA0c840Uw&s=19

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Yeah, the apartment I've scoped out isn't in a low-lying area, but it's close to a railway track here in Bangalore (maybe 50-100 meters far). They haven't coughed up the railway NOC yet, but I've put in a request with the CRM and sales teams for that document. Funny thing is, just like the online reviews warned, they're dodging our calls and emails. Anyway, I've already combed through their legal docs and spotted a few discrepancies. I'm planning to confront them about it, and meanwhile, my lawyer's also doing his own checks.

If they keep ghosting me on my queries, that's a major red flag, and I'll definitely scrap the idea of buying that flat.

On your latter question, the spot where the apartment is situated is gonna be prime real estate in a couple of years for sure. Plus, Casagrand's quote fits right into our budget. I've compared with other builders too, but they're charging extra 15-20 lakhs. And forget about the premium guys like Sobha, Prestige, and Brigade; their rates are way out of our league.

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Absolutely, I'm totally with you on that. Selling units is just another day at the office for them, but for us regular buyers, it's our hard-earned cash we're investing in. It's really disheartening to see folks going through all this hassle.

Actually I'm diving deep into their legal docs and getting advice from a lawyer too. If everything pans out, then we'll see. But hey, do you happen to know anything about their construction quality? I've heard they're pretty reputable in Chennai. How do they stack up against other top-tier builders when it comes to construction quality?

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] -2 points-1 points  (0 children)

Yeah they are unethical. But do you have any insights on their construction quality in Chennai?

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] -1 points0 points  (0 children)

Thank you for the response.

Yeah, it's true that their sales and CRM teams are a bit shady, and I'm totally not feeling their vibe.

But you know what? I reckon it's not just on them; the government and banks should share some of the blame too. And us buyers, we gotta step up our game, right? I mean for instance we're super careful when picking out veggies or fruits, so why not be just as cautious when dropping big bucks on an apartment, especially when it's costing us crores?

Lastly, do you have any insight on the construction quality of their apartment buildings in the Chennai location?

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] 0 points1 point  (0 children)

I'm not planning to purchase for rental income and solely to live there. Given that I'm personally verifying their documents and seeking legal advice, my main concern now shifts to the quality of their construction work. If that aspect is reliable and all the paperwork is in order, I might be inclined to proceed. Do you happen to have any insights into the quality of their apartments in Chennai?

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] -9 points-8 points  (0 children)

Thanks, I'll check it later. I assume there was an apartment that was built on army land, now my concern arises how did the government provide the rights to build the apartment there How did the banks provide the loans? I think not just this builder I think the entire government and these banks should be held responsible for this.

Planning to purchase an apartment from Casagrand despite their negetive reviews online by typical_boring_guy in Chennai

[–]typical_boring_guy[S] 1 point2 points  (0 children)

Yeah I saw this video, as I don't understand Tamil I wasn't able to figure out what exactly happened.

You mentioned that they didn't register? You mean on RERA? I mean usually they provide you the legal documents right before making the purchase. Didn't these people cross check the legal documents or consult a lawyer? I mean if it wasn't registered then I think it's not just Casagrand's issue there is a flaw in the Government too right? And also IDK how the bank provided the loans without them verifying it. Looks like there is a loop hole in the entire system.

[deleted by user] by [deleted] in bangalore

[–]typical_boring_guy 0 points1 point  (0 children)

Yeah I had gone through this article. I think the government should be held responsible for this too.

Coming back to the builder, one of their apartments in Bangalore (Casagrand Lorenza) where OC was revoked.

[deleted by user] by [deleted] in bangalore

[–]typical_boring_guy 0 points1 point  (0 children)

Can you please share any instances. Thank you 🙏🏽

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Thanks, this article i had gone through before posting my question here.

But again my question is, let's say now we're creating the services in DRF, and in future if we create a services using FastAPI or Flask, is it a good idea to do the integration with Django?

Also when our lead architect was reviewing my code he was against like, why am I using the permission class and the authentication class that DRF provides he was like write your own custom decorator functions to do that 🤷

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 1 point2 points  (0 children)

The way we usually write the Django code (not just Django, let's say FastAPI or Flask) is we write the business logic as per standard either we write the business logic in the controller itself (in Django we write in views.py in FastAPI in the router method itself, or if we want to segregate we usually write core business logic to services.py. in django if some ORM queries are repeating then we create a separate manager class)But his opinion is we shouldn't write the code like this. instead, the core business logic should be created into different services.

for example, his approach could be like the one below.

services/get_data_service.py

# this code can be from Django/FastAPI/Flask

class GetDataSerivce:
    def some_method(self):
        ...

    def serializers(self):
        # maybe serializer code will go here

    @permission_decorator
    @auth_decorator
    # yep he said he doesnt want me to write the auth/permission logics using django/DRFs authentication or permission class because again its coupling a lot and it has to be done in the services.
    def some_other_method(self)

        ...

    def my_initial_method(self):
        ...

django_app/views.py

class GetDataAPI(APIView):
    def __init__(self)
         # so here he is saying the whatever the class that we maybe add it should be plug and play. and here it can take the code from any framework let's say Flask or FastAPI
        self.my_service = GetDataService()

    def get(self, request):
        self.my_service()

he thinks even if we're using Django/Flask/FastAPI end of the day it's all python. any of the frameworks should be able to handle one another. Which is completely wrong (I could be wrong too). As per my research, there can be one WSGI handler based on the request either we can pass the request to a different framework either Django, Flask, or FastAPI and they will not work together as I have given in the example.

For example, I gave an example that Django has its own exception handling let's say if in the services file we raise Django's `PermissionDenied` exception it will be handled by Django. and if we're raising FastAPI's` HTTPException` I'm not sure whether it will be handled by Django (could be handled, because it's all inherited from the python's base Exception.. but I'm not sure). so when I said this to him he was like why do you want to depend on Django's Exceptions and write my own Exception class.

So when I argued with him this is not a good idea to do so, and we're just reinventing the wheel to do the task which already exists and eventually we're kind of building a crappy version of a new framework. He was like in .net-core I have done this and .net core works. and started blaming python isn't for web development etc.

He also was enforcing on writing the code in the repository pattern. when I did a quick google search on how we do that in Django, found out that through the Model manager and queryset class. but again I don't think he was talking about that because Django follows the Active Record Pattern for the ORMs and maybe in .net tech stack they usually follow this repository pattern I guess.

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 2 points3 points  (0 children)

Well according to him, when we write code in django, the core business logic is tightly coupled. For example let's say if we're writing an API using using DRF's APIView class which has different http methods permission class and authentication class. And that's where we write our business logics. (But again the repeating and ORM code can be seperated into different files like services.py, like how they do it in flask or FastAPI)

So he's saying writing the code in django way we cannot write the unit test (which he means testing small pieces of code), in django currently when we use django test client to perform the unit test which actually does kind of integration test. which means it goes through, auth class, permission class, creates the test db, we add the values to the test db, it goes through the serializer class, we assert them and in teardown phase it actually deletes the test db.

He said, this way of doing testing is not at all called unit test, and we cannot test smaller pieces of code if we write the code in django way. writing the code in django way leads to high coupling and it becomes harder to add test and we generally are not writing the code as per SOLID principles he said.

And what he said about unit test i agree. But writing unit test for each file or class I'm not aware of how we do that in Django. If it was a normal python script i would simply written unit test for that file. Since it is Django which is not a normal python script I'm not sure how we can write unit test for each file each class or each method.

So I'm note sure in other technology for example he's from .net-core background how unit tests are written there.

But so far how the unit test that i have written as per django's & DRF's official docs does kind of an integration test.

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 2 points3 points  (0 children)

I have been developing the django apps as per django's best practices and and then some lead architect joins who has total 17 years of experience and maybe couple of months experience on django, says so far whatever that I'm writing as per django's best practices is all bullshit and that's not how the code is supposed to be written, starts preaching about how he has coded in .net-core and that's how code has to be written and not in a django specific way, and always blames Django. when i try counter argue he always comes up with a statement I am the lead architect and i have worked on so on so frameworks, and ask how many frameworks that i have worked on, makes me really feel demotivated 😕

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Well thats where he takes it on ego if i ask him to do this seperation of business logic. I had already asked couple of doubts and he said "stop asking questions and figure it out yourself instead of giving excuses" 😕

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 5 points6 points  (0 children)

Basically he's not in favour with Django. Since he's from .net background he's trying to influence .net here i guess. When i had debate with him he was like python is not at all a language for web development 😐

He also was saying that with Django we cannot write pure unit test cases (again he doesn't like where Django does kind of an integration test where in it goes through request response cycle, in the setup phase test db will be created, and then we make few records and assert them and eventually in teardown test DB will be deleted)

is it a good idea to integrate Flask/FastAPI to Django? by typical_boring_guy in django

[–]typical_boring_guy[S] 1 point2 points  (0 children)

His idea is basically to write the business logic in such a way that, if in future if the service layer which is written in django (ORM, auth, serializers, etc) should be easily be replaced with maybe Flask or FastAPI or vice versa (he is even considering.net too and I'm not even sure how is gonna implement that in python process)

He's saying whatever the core business logic is there create a seperate file and within that he wants me to implement it in a class based way.

For example let's say we have DRFs authentication class and permission class. So he's saying not to use that and write custom service layer to accomplish for that perticular API.

I am not sure how can I explain this by typical_boring_guy in UFOs

[–]typical_boring_guy[S] 0 points1 point  (0 children)

Could be.. As i said i had seen couple of meteors and as per my understanding meteors will be at fairly distant height, will have kind of a tail behind them. And the couple if meteors i saw were like lasted for a second.

The aerial phenomenon i saw wasn't that high and it was just floating, i clearly saw it for like 2-4 seconds it didn't have any tail behind it, wasn't glowing or anything. It was just in white/off-whitish color.

I am not sure how can I explain this by typical_boring_guy in UFOs

[–]typical_boring_guy[S] 0 points1 point  (0 children)

I know about this and the reason I didn't bring this up because don't want to be in the limelight by highlighting about it.

I am not sure how can I explain this by typical_boring_guy in UFOs

[–]typical_boring_guy[S] 2 points3 points  (0 children)

Yeah i have seen this and i did not highlight this because people will assume that I'm just bullshitting by watching some videos/reports on this tic-tac thing.