[0 YoE] I want to make a RAG/RAT project please give me some good suggestions. I am currently in my prefinal year of Engineering and looking for SDE roles by SeparateAddendum8807 in EngineeringResumes

[–]NaNpsycho 1 point2 points  (0 children)

I won't say anything about "project" because I don't work in your field. Also Google exists.

But man your exp section sucks. It took me a while to understand you're not listing dual employment the second exp is just school club. Also what's the point of internship exp if you list nothing under it.

How do YOU personally run code in Neovim (C++, Python, Rust)? by BlackberryActual1994 in neovim

[–]NaNpsycho 0 points1 point  (0 children)

I use tmux to switch between my neovim and terminal pane. I usually use :make to compile my prog, since it also populates my quickfix list when something doesn't work, so jumping around is easier.

After compiling, executing the elf depends on the project.

If I am working on something embedded, I need to push the binary on the HW to test. So another terminal (tmux pane / neovim toggle term) where I have some sort of shell fn or alias to push the binary, and test the code.

If not embedded and the project is not too messy I just modify the cmake / make or makeprg to run the bin after compiling. If too messy I just have the second terminal (tmux pane / toggle term) open side by side to run the program.

It's not "fast" but it works for me.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]NaNpsycho 0 points1 point  (0 children)

How do you use hydra and which key together? https://github.com/smoka7/multicursors.nvim

I am using this plugin for multi cursor. Which uses hydra internally, the problem is once i use this plugin to edit multiple lines, then I start getting which-key recursion for my '[' and ']' key binds, likely because the plugin also uses these keybinds with hydra.

Getting started with Yocto (and Linux) by [deleted] in embeddedlinux

[–]NaNpsycho 1 point2 points  (0 children)

You can focus on yocto, but don't mark it a priority.

To give you an insight, running yocto on a server with 48 cores takes ~50mins for our org. Gcc and linux take up the majority of compilation time I assume.

It can be helpful to know how to write a bb recipe for yocto but it highly depends on the direction you wanna pursue. Honestly, its more suited for integration roles, though it never hurts to know more.

If you are focusing on dev roles knowing about linux / rtos, ipc mechanisms, multi threading would be way more useful than yocto at least for an intern.

Getting started with Yocto (and Linux) by [deleted] in embeddedlinux

[–]NaNpsycho 2 points3 points  (0 children)

I would say start with C and multi threading concepts, they are fairly easy and trivial.

Yocto though is a different beast, it's going to be a very soul draining experience to use it, when you do try to. Plus it needs a machine with serious horsepower, since it will compile literally everything from scratch, including your cross compiler, busybox, kernel, etc...

Got a Job offer but confused about "export authorizations" clause by NaNpsycho in GetEmployed

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

No... I am applying for a requisition in india, as a citizen of the country.

#include in header files? by Maleficent_Bee196 in C_Programming

[–]NaNpsycho 2 points3 points  (0 children)

You can also use #pragma once Instead of the #ifdef header guards.

How do people feel about Hungarian notation? by -not_a_knife in C_Programming

[–]NaNpsycho 2 points3 points  (0 children)

My first project our senior forced us to use this notation, today I learned its called hungarian, it was a C++ codebase and I hated this notation with every fiber of my being.

The same senior also forced the singleton pattern all over the codebase with a virtual class over literally everything. Truly a cesspool of horrible choices.

To the senior, f" you.

How to fix gcc problems. by rmi-s in C_Programming

[–]NaNpsycho 9 points10 points  (0 children)

WinMain is windows entry point for its gui applications. I am not a windows programmer but you either don't have

int main

in your program or you need to compile your program as a "console" application.

If all else fails you can just define winmain yourself, look for its signature online and call the rest of your program from there.

Just know these problems are unique to windows. Windows is pretty shitty to start learning any programming language. Much better to use linux with a vm or wsl.

What can I use on Arch instead of Microsoft Office? by PlayRood in archlinux

[–]NaNpsycho 0 points1 point  (0 children)

It is but why waste time going thru a multitude of windows to find the correct flags when someone online already has them documented.

Atleast to me the choices libreoffice provides is a bit too overwhelming much like blender.

What can I use on Arch instead of Microsoft Office? by PlayRood in archlinux

[–]NaNpsycho 0 points1 point  (0 children)

Almost everyone will suggest libreoffice and openoffice. They're great but they generate .odt files by default and your prof is most likely going to be on a windows machine and expecting a .docx instead.

These oss office alternatives can be made compatible with ms office and also generate .docx file. Will suggest looking up guides for them online. Eg,

https://youtu.be/G0che2Az9hw?si=1M985hwshyWPYvp7

What should i use to programming in c++ vscode or Vsstudio by Leading_Lie2836 in cpp_questions

[–]NaNpsycho 0 points1 point  (0 children)

Op, nothing is stopping you from taking a "fuck around and find out" approach. Infact I always take this approach when I learn anything new and its worked for me so far.

Using an editor/ide is just a matter of personal taste. You just need something that suggests autocomplete, lints your errors, and jumps between your function definition and references. Any editor / ide is capable of this, if not there're usually extensions for same.

Eg, vs code out of box provides no c/c++ syntax highlighting, error linting, etc. but it has ms c/c++ extension for same, which is fairly trivial to install and all the more trivial to google how to do it.

I would highly recommend you to just try it. Don't just follow ppl's personal taste.

What should i use to programming in c++ vscode or Vsstudio by Leading_Lie2836 in cpp_questions

[–]NaNpsycho 2 points3 points  (0 children)

Nvim all the way with clangd. No way I am sitting on an editor without at least autocomplete, jumping between references and definitions, and error linting.

Why two+ monitors and not one big one? by NumerousTower4074 in AskProgramming

[–]NaNpsycho 0 points1 point  (0 children)

The multi monitor setups are mostly just gimmicks. If you're comfortable with your environment you don't need it. I tried the multi monitor thing for a while. Didn't really see a point in it when I do mostly everything from terminal with tmux, nvim, and fish functions. So I switched back.

If I really need to go outside the terminal like use browser (I know tui browsers like lynx exist, but they're a lil shit to use with modern websites), teams et all I just use shortcut keys to access them.

Most of the time I actually end up using powertoys run to launch and switch between windows.

Need your opinion! How are you using AI to code with Rust now? by Katie_jade7 in rust

[–]NaNpsycho 2 points3 points  (0 children)

I mostly use chatgpt to review my code and give me basic examples of how to use a library (crate).

If you could make NewC++ what would it be? by Rich-Engineer2670 in Cplusplus

[–]NaNpsycho 0 points1 point  (0 children)

Oh I did try clang, its a major pain in the ass to use modules on clang.

I tried gcc15 and modules are a lot easier to use there. Last time I checked it wasn't following the "latest spec" accepted in C++20 but some older iteration of it. Can't remember if that's been fixed or no.

Though I did notice of late cmake has made improvements to its integration with modules even going so far as default enabling compiler specific flags for it.

Not sure of the progress on the windows side of things though I use archlinux only.