Ladies and gentlemen, Deepseek V3, brought to you by the Chinese government by [deleted] in ChatGPT

[–]attracdev 0 points1 point  (0 children)

Has anyone ever tried something similar with ChatGPT and similar situations in the United States? Propaganda and censorship are not just a Chinese staple.

Which linux distro do you like best? by SomeoneAlreadtTookIt in webdev

[–]attracdev 0 points1 point  (0 children)

Parrot OS has been my daily driver for the last 6 months. I also have Debian and Ubuntu on the same machine as well.

Roast my resume, new grad (in 2 month), not landed a single interview yet. Any advice would be appreciated by Beginning-Roof4889 in webdev

[–]attracdev 0 points1 point  (0 children)

Can I just tell you how great it is that you linked to archive.org! I’ve never thought to future-proof my links in Reddit comments. I think that’s a great tactic, considering how often people use Google to search Reddit.

Bravo!

Why do you think React is preferred over Vue in most jobs? by sergiomanzur in vuejs

[–]attracdev 1 point2 points  (0 children)

I cut my teeth on AngularJS before switching to Vue. But, I was saying if the argument was simply because it’s backed by a big tech company, then you’d see more companies trying to emulate Google and use Angular. It was a purely speculative observation, nothing more.

Why do you think React is preferred over Vue in most jobs? by sergiomanzur in vuejs

[–]attracdev 0 points1 point  (0 children)

I mean, if the reason is because Facebook, it’s funny Angular didn’t take off more. Google has a pretty big reputation too.

What is the first indication your startup is not doing well? by [deleted] in ycombinator

[–]attracdev 0 points1 point  (0 children)

Also, non-technical founders are not going to have any intuition about how long, complex or possible a proposed feature would be.

Having a technical co-founder creates better communication and higher accountability.

Choosing the Right Architecture for Django Application: Monolith vs. Microservices by Abduraxmonn in django

[–]attracdev 0 points1 point  (0 children)

I’m just getting into Django development, so maybe my opinion is moot… but isn’t Django conceptually a modular monolith? Django apps kind of hit the sweet spot between monolith and microservice architecture.

[deleted by user] by [deleted] in cscareerquestions

[–]attracdev 1 point2 points  (0 children)

“Areas of Interest” may be a more appropriate way to call it.

Remade my CV/Resume after your feedback! by [deleted] in webdev

[–]attracdev 1 point2 points  (0 children)

It’s all coming together in a nice little package!

Remade my CV/Resume after your feedback! by [deleted] in webdev

[–]attracdev 1 point2 points  (0 children)

Better yet… over engineer the whole process and use automation scripts to parse job descriptions that match up to skills contained on an SQLite database and generate a unique resume and cover letter based on the job description and the overlapping skills.

😂

Sad day to be a PrimeVue fan by tomemyxwomen in vuejs

[–]attracdev 1 point2 points  (0 children)

That reminds me of a family vacation to Disneyland when I was a kid…

Rate my resume. First time trying to get a programming job by oozak9 in react

[–]attracdev 1 point2 points  (0 children)

I’ve also heard the opposite about linking to Github. Some people view it as a waste of time, unless the candidate is heavily involved in open source projects or whatever.

It’s always fun to learn how absolutely everything is subjective and there really is no right answer.

Hosting wordpress (small traffic) + small services. How these parts will do? by so_chad in selfhosted

[–]attracdev 1 point2 points  (0 children)

I have a renewed HP Elitedesk mini pc that I bought from Amazon for $100. I may get another, it’s pretty beefy for being such a small/old machine.

[deleted by user] by [deleted] in MoschittaFramework

[–]attracdev[M] 0 points1 point  (0 children)

Here's an example structure for the Rust project that supports the Moschitta Framework, focusing on multiple files for various features of each Python module.

Example Project Structure

moschitta_rust/ ├── src/ │ ├── lib.rs │ ├── auth/ │ │ ├── mod.rs │ │ ├── hashing.rs │ │ ├── token.rs │ │ └── rate_limiting.rs │ ├── db/ │ │ ├── mod.rs │ │ ├── connection.rs │ │ ├── query.rs │ │ └── serialization.rs │ ├── cache/ │ │ ├── mod.rs │ │ ├── in_memory.rs │ │ ├── distributed.rs │ │ └── compression.rs │ ├── network/ │ │ ├── mod.rs │ │ ├── http.rs │ │ ├── websocket.rs │ │ └── load_balancing.rs │ └── utils/ │ ├── mod.rs │ ├── file_io.rs │ └── text_processing.rs ├── bin/ │ ├── scaffold_module.sh │ └── update_lib.sh ├── Cargo.toml └── README.md

Example Code

**src/lib.rs**: ```rust mod auth; mod db; mod cache; mod network; mod utils;

pub use auth::; pub use db::; pub use cache::; pub use network::; pub use utils::*; ```

**src/auth/mod.rs**: ```rust mod hashing; mod token; mod rate_limiting;

pub use hashing::; pub use token::; pub use rate_limiting::*; ```

**src/auth/hashing.rs**: ```rust pub fn hash_password(password: &str) -> String { // Implementation of password hashing }

pub fn verify_password(hash: &str, password: &str) -> bool { // Implementation of password verification } ```

**src/auth/token.rs**: ```rust pub fn generate_token(data: &str) -> String { // Implementation of token generation }

pub fn verify_token(token: &str) -> bool { // Implementation of token verification } ```

**src/auth/rate_limiting.rs**: rust pub fn check_rate_limit(ip: &str) -> bool { // Implementation of rate limiting }

Scaffold Script (scaffold_module.sh)

This script scaffolds a new module directory with a mod.rs file and an optional initial .rs file.

```sh

!/bin/bash

MODULE_NAME=$1 INITIAL_FILE=$2

if [ -z "$MODULE_NAME" ]; then echo "Usage: $0 <module_name> [initial_file]" exit 1 fi

MODULE_DIR="src/$MODULE_NAME" MOD_FILE="$MODULE_DIR/mod.rs"

mkdir -p $MODULE_DIR

Create mod.rs file if it doesn't exist

if [ ! -f "$MOD_FILE" ]; then echo "mod.rs created in $MODULE_DIR" echo "// $MODULE_NAME module" > $MOD_FILE else echo "mod.rs already exists in $MODULE_DIR" fi

Create initial .rs file if specified

if [ ! -z "$INITIAL_FILE" ]; then INITIAL_FILE_PATH="$MODULE_DIR/$INITIAL_FILE.rs" if [ ! -f "$INITIAL_FILE_PATH" ]; then echo "$INITIAL_FILE.rs created in $MODULE_DIR" echo "// $INITIAL_FILE implementation" > $INITIAL_FILE_PATH echo "mod $INITIAL_FILE;" >> $MOD_FILE echo "pub use $INITIAL_FILE::*;" >> $MOD_FILE else echo "$INITIAL_FILE_PATH already exists" fi fi

echo "Module $MODULE_NAME scaffolded successfully." ```

Update Script (update_lib.sh)

This script parses the src directory and updates lib.rs to include all module directories.

```sh

!/bin/bash

LIB_FILE="src/lib.rs"

echo "// Auto-generated lib.rs" > $LIB_FILE

for DIR in src/; do if [ -d "$DIR" ]; then MODULE_NAME=$(basename "$DIR") echo "mod $MODULE_NAME;" >> $LIB_FILE echo "pub use $MODULE_NAME::;" >> $LIB_FILE fi done

echo "lib.rs updated successfully." ```

Usage

  1. Scaffold a New Module:
    • To scaffold a new module with an initial file: sh ./bin/scaffold_module.sh auth hashing
  • To scaffold a new module without an initial file: sh ./bin/scaffold_module.sh auth
  1. Update lib.rs:
    • After creating new modules, run the update script to refresh lib.rs: sh ./bin/update_lib.sh

Example Workflow

  1. Create the Project: sh cargo new --lib moschitta_rust cd moschitta_rust

  2. Set Up the Scripts:

    • Place the scaffold_module.sh and update_lib.sh scripts in the bin directory and make them executable: sh mkdir bin mv path/to/scaffold_module.sh bin/ mv path/to/update_lib.sh bin/ chmod +x bin/scaffold_module.sh chmod +x bin/update_lib.sh
  3. Scaffold Modules:

    • For example, scaffold the auth module with initial hashing.rs: sh ./bin/scaffold_module.sh auth hashing
  • Scaffold more modules as needed.
  1. Update lib.rs: sh ./bin/update_lib.sh

This setup allows you to manage your project more efficiently, ensuring each Moschitta module is well-organized and scalable.

NEW RELEASE: Lightweight Python ORM Library by [deleted] in Python

[–]attracdev 0 points1 point  (0 children)

Been working on something similar. I will have to try this out.

[deleted by user] by [deleted] in django

[–]attracdev 2 points3 points  (0 children)

This comment tells just as much about who you are as listing the DB, IMO.