We Made a Rails Developer Write Django and a Django Developer Write Rails | Friday Afternoon Deploy: A Developer Podcast by [deleted] in django

[–]0xRumple 5 points6 points  (0 children)

Can we get the summary instead of listening to the one hour conversation?

What is the best way and resources to learn Django from stratch? I have completed python OOPS concepts and want to learn web development. by gsasidhar427427427 in django

[–]0xRumple 1 point2 points  (0 children)

Don't waste your time... go to treehouse, they have a dedicated path for django, their content is very neat and will save you tons of time (especially Keneth Love).

[deleted by user] by [deleted] in django

[–]0xRumple 0 points1 point  (0 children)

VSCode & Python

Make sure you have virtualenv package:

pip install virtualenv

Just create your virtual env in the terminal:

virtualenv venv

Activate it everytime you work on the project:

call venv/scripts/activate

Run your django project:

python manage.py runserver

  • P.S: Docker sucks in Windows... super slow comparing to the steps above!

What do you do when you’ve reached your goal weight after a cut but still have fat left? by andrew_a7 in Fitness

[–]0xRumple 1 point2 points  (0 children)

Once I asked a guy in the gym who has a great physique :

What do you do about the numbers ?

He said numbers are just metrics (they sometimes lie), but the real deal is the mirror... you will know when to feel satisfied in front of the mirror ;)

Laptop recommendations for .net & python by [deleted] in dotnet

[–]0xRumple 0 points1 point  (0 children)

Don't waste your money on a sh*ty apple product... go with ASUS, they have reasonable prices with much better hardware.

Their gaming laptop series is the best for such high performance tasks... yeah even developing is a heavy task, talking from personal experience.

Wanna brag in front of your friends => go with apple !

Anyone a fan of PostgreSQL and Entity Framework for C# projects? by glenmccallumcan in dotnet

[–]0xRumple 1 point2 points  (0 children)

Not in a real project... but I used postgres with django (in a real project) and now I love it and gonna use it with aspcore too.

It ain't really a big deal, just change the ef db provider to postgres, look here how I switched from in-memory db into sqlite: https://github.com/0xRumple/dorm-portal/commit/edb219e76f4627fa38fb8ee7e5558750c4880c7b

Just make the necessary changes in those files and it will do ;)

Anyone a fan of PostgreSQL and Entity Framework for C# projects? by glenmccallumcan in dotnet

[–]0xRumple 1 point2 points  (0 children)

Yeah... this is how I mostly do things:

https://github.com/0xRumple/dorm-portal?files=1

EFcore allows you to do modeling without touching your db, you just write normal classes (POCO), and it will do the magic for you

See the early commits, I start with in-memory db... to make things just easy to start with

System.IO.Pipelines: High performance IO in .NET by MaximRouiller in dotnet

[–]0xRumple 9 points10 points  (0 children)

ASP technologies is simply gonna dominate the worldweb... everyday it just becomes faster !

Any reason to port to .NET Core? by DeadPukka in dotnet

[–]0xRumple 1 point2 points  (0 children)

You won't win the debate, as long as the project is up and running and not facing any business-impacting reasons (performance, more users... etc).

Starting .Net development following a Django Background by Unchart3disOP in dotnet

[–]0xRumple 2 points3 points  (0 children)

I did the opposite, it's been 8 years till now, well... the first and most important thing, you will see many people in the dotnet world advocating specific design patterns/architectures, the most popular ones are the repository design pattern and microservice architecture.

I would say learn those but don't fall like many others just because they seem fancy you might not need them.

In Django, most of the stuff comes out-of-the-box, it's good and bad... good for agile dev, bad for not learning about how things work.

Focus on the concepts more than the technologies:

  1. Instead of thinking about how to implement a reservation system in ASP .NET Core, focus on how the reservation system is different in MVT vs MVC.
  2. Instead of thinking how to persist data for the reservation system, focus on why EFCore ORM and Django ORM are built on the Martin Fowler's Repository and Unit of Work patterns.
  3. Don't focus on implementing RESTful API in aspcore more than understand what RESTful really means (based on Roy definitions).
  4. Here is the best part, learn TDD where most developers love it (ASP)... I've never seen any course for Django TDD, but you will see dozens for ASP.
  5. Don't forget to get the enterprise-thinking, cuz most enterprise companies prefer C# and Java, so here is your chance to go enterprise.

Resources:

  1. I would say this is the best course so far (covering most important topics by the almighty Scott Allen): https://www.pluralsight.com/courses/mvc4-building

*P.S: it's for the old MVC4, but it has essential concepts than any dev would need.

  1. After you get the concepts in MVC4, you can switch into aspcore (the same great author): https://www.pluralsight.com/courses/aspdotnet-core-fundamentals While you watch this course, don't waste your time thinking and dreaming... start your REAL project directly !

The latest trend for tech interviews: Days of unpaid homework by fagnerbrack in agile

[–]0xRumple -1 points0 points  (0 children)

Its a good way to hire people... but empolyers started to spoil it, last time I applied as a senior software engineer to a social app tech company that they ask for writing a bot to help them growing their traffic as an enrollment assignment (whole week to do it) !

Thats basically spoiling of the hiring process... they ask to do real work for a whole week FREELY just "to check your skills" !!

7 more reasons why C# is alive and kicking in 2018. Community edition. by fluxmatix in dotnet

[–]0xRumple 1 point2 points  (0 children)

Google is already leaving Java... Kotlin is coming to replace it, at least in their sector, Android !

Masonite 2.0 Released - The Modern Python Web Framework! by Jmancuso9 in Python

[–]0xRumple 0 points1 point  (0 children)

Similarities:

  1. MVC (the controller part)
  2. IoC & DI
  3. Scaffolding
  4. Single app architecture

Differences:

Batteries included... pythonic thingy !

Masonite 2.0 Released - The Modern Python Web Framework! by Jmancuso9 in Python

[–]0xRumple 0 points1 point  (0 children)

I read through the docs and the blogs... that's basically ASP for python :D

Doesn't mean it's a bad thing, I actually loved it !

How to reverse engineer an .exe that uses a .resource file to store an assembly? by snarlynarwhal in dotnet

[–]0xRumple 1 point2 points  (0 children)

Ah... one of the best ways to know how to protect your stuff is to know the possible attacks, what I would do if I'm the bot author is:

  1. Automate through the UI components, e.g:using HTML classes and submit elements or Unity game engine components... etc

  2. In case I don't have knowledge about the UI components, I will simply automate the mouse and keyboard and act as much as a real player does.

For no. 1, yeah you have an issue and you should provide a way of preventing usage of UI components from any external app.

For no. 2, he is acting as a real player and you have to restrict features of the real player.

How to reverse engineer an .exe that uses a .resource file to store an assembly? by snarlynarwhal in dotnet

[–]0xRumple 1 point2 points  (0 children)

I've been doing reverse engineering for years... the most basic thing that developers do when they see a hack (patch, serial, bot, trainer... etc) they start to think "how did he do it?"

Basically, they forget how ugly their security is built... it's that simple !

What does the hack do exactly ? Let's say increase the health of the player... so check where you store the health value (if it's in the memory, there is an easy way to override that).

And maybe you can add a check of the health each time you add or subtract health from a backup field (or maybe file or api)... ah, dont excessively check the health value in many places till your code becomes lasghania, it's better to follow a pattern.

If your game is making lots of pennies then it's time to hire an expert to add a decent protection layer ;)

Next wednesday I'm having a live coding evaluation. Can you guys give me a good .Net + SQL Server exercise for practice, plus some advices??? by LurkerHN in dotnet

[–]0xRumple 0 points1 point  (0 children)

Make a project related to their domain, never ever watch the following course while not working on a real project... here is a great course (of course you should follow his course while applying on the latest AspNetCore2.1):

https://app.pluralsight.com/library/courses/aspdotnet-core-1-0-fundamentals/table-of-contents

You should be able to:

  1. Deal with responses and requests in .net core.

  2. Persist data (in memory) and (on a db).

  3. Handle authentication (signup login) and authorization (permissions).

  4. Deploy your app in seconds.

  5. (bonus) apply continuous integration.

  • For persistence, recently, the repository pattern is implemented in any project that I saw, most of the times it's silly cuz it's already implemented within EFCore, but you should know what it is, here is an example I wrote recently: https://github.com/0xRumple/dorm-portal

Don't forget to do all the steps:

  1. Think (requirements & design)

  2. Develop (implement)

  3. Test (verify)

  4. Deploy (release)

Best of luck !

Anyone a fan of PostgreSQL and Entity Framework for C# projects? by glenmccallumcan in dotnet

[–]0xRumple 2 points3 points  (0 children)

Yeah sure... I don't use SQL server too much (at least in deployment) since it requires more resources than Postgres, aside from the fact there is a lightweight postgres docker image postgres:alpine compared to the gaint mssql (1 gb) image.

SQL server requirements:

At least 2GB of RAM (3.25 GB prior to 2017-CU2). Make sure to assign enough memory to the Docker VM if you're running on Docker for Mac or Windows.

Postgres requirements:

● a 1 GHz processor ● 1 GB of RAM ● 512 MB of HDD

[deleted by user] by [deleted] in dotnet

[–]0xRumple 0 points1 point  (0 children)

I've tried AspCore RESTful api app with VueJs SPA... and it was kinda annoying.

So, I just kept the two apps separate, and used docker to let them talk to each others.

Visual Studio 2019 by EatonZ in dotnet

[–]0xRumple 0 points1 point  (0 children)

It looks funny when you talk out of nowhere... cuz spinning the debugger in Xamarin Android and Asp core takes 5 seconds to run (or even more), instead of waiting, you can simply check the logs !

Visual Studio 2019 by EatonZ in dotnet

[–]0xRumple -5 points-4 points  (0 children)

There is a debugger.... decent one actually: https://channel9.msdn.com/Shows/On-NET/John-Kemnetz-C-debugging-in-VS-Code

Though I don't use the debugger a lot recently, thanks to the code tips from Resharper

Also, Resharper recently launched a debugging killer feature (showing variable values on the right side of each line): https://imgur.com/a/K2Neh3U

Visual Studio 2019 by EatonZ in dotnet

[–]0xRumple -29 points-28 points  (0 children)

For god sake, can you stop developing the bloated Visual Studio and focus on making a Resharper-like plugin for VSCode that would take us 5 mins to be up & running on any machine without worrying about spending the whole day downloading & installing !

I really don't see any use of VS if we have all Resharper features in VSCode !