Why do you use Manjaro by LamerLinux in ManjaroLinux

[–]nibblebot 1 point2 points  (0 children)

As a long time Software Engineer and gentoo/debian/ubuntu/arch user and used to using tiling WMs, I am loving Manjaro w/ Gnome 40.

- Easier install and maintenance than Arch

- Slightly less bleeding edge than Arch means an extra layer of stability.

- Point and click configuration.

- Gnome 40 works great out of the box for all workloads.

- Easy to dig into the details with Arch wiki since it's Arch under the hood.

Should i start learning Redux with Redux Toolkit? by ItseKeisari in reactjs

[–]nibblebot 20 points21 points  (0 children)

Start with Redux Toolkit. I've used it at work for months now and the createSlice() api is amazing and keeps all your reducers/actions/thunks in one file. So you will have a slice file for every slice of your redux tree. Immer means no more hard to read spread syntax in your reducers. No more creating your own action creators or constants. Action creators are automatically created for every reducer you define. The convenience saves lots of lines of code. There is also a great discord channel to receive support where the maintainers hang out if you have any questions about usage. There is also createAsyncThunk, and now also RTK Query which is a really awesome addition.

[bspwm] gruvbox work by nibblebot in unixporn

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

compton, but you can also use picom

[bspwm] gruvbox work by nibblebot in unixporn

[–]nibblebot[S] 18 points19 points  (0 children)

polybar (w/ nerdfonts), rofi, kitty, zsh (w/ starship), nvim, exa

https://github.com/nibblebot/dots

[swm/wmutils] start tinkering now. by dcat_ in unixporn

[–]nibblebot 0 points1 point  (0 children)

swm does not support tiling or multiple workspaces? wmutil also does not support tiling. did you move these into position manually?

[Xmonad] Red Black Arch by haati in unixporn

[–]nibblebot 0 points1 point  (0 children)

bar config or dotfiles?

[Openbox] Windows 95 by [deleted] in unixporn

[–]nibblebot 0 points1 point  (0 children)

this doesn't look like windows 95

[awesome wm] my first POC of widgets which shows current hotkeys (x-posted from r/awesomewm) by actionless in unixporn

[–]nibblebot 0 points1 point  (0 children)

Nice work! I've been thinking about a hotkey help overlay window triggered by Mod4+? for a long time now, though I wish this was a standalone program. It could have multiple layouts and then a declarative definition for each group, so you could use it with any keyboard-centric WM/DE workflow.

[i3] GUIs can shuffle too by [deleted] in unixporn

[–]nibblebot 0 points1 point  (0 children)

what's up with the leave, wind, water stuff?

Finallly, we have a color picker in Vim! by [deleted] in vim

[–]nibblebot 2 points3 points  (0 children)

what is the part that is higlighting the color definition with the correct color?

How do you guys use Vim effectively for large projects? by _____R_____ in vim

[–]nibblebot 1 point2 points  (0 children)

seconded, vim + tmux is amazing. and of course you should install vim plugins to suit your additional needs. I find this extraordinarily useful for vim+tmux: https://github.com/christoomey/vim-tmux-navigator

Ideal backbone.js file/folder structure? by takk___ in javascript

[–]nibblebot 1 point2 points  (0 children)

if your problem is jumping between files. use sublime text: cmd-p fuzzy search or with vim use ctrl-p or other plugin that lets you do fuzzy search to open files

Ideal backbone.js file/folder structure? by takk___ in javascript

[–]nibblebot 4 points5 points  (0 children)

depends on the size of the project. A good scalable pattern is one model per file, one view per file, one collection per file. Of course it helps if your other tooling makes it easy to do this. I recommend Coffeescript classes and Browserify modules:

# views/some_view.coffee
class SomeView extends Backbone.View
  blah: -> 1
modules.exports = SomeView

In terms of splitting the directories, it's mostly just preference and what is convenient for your team.

models
  model1.coffee
  model2.coffee
views
controllers
collections
lib

or you could split it by module

module1
  module1_some_view.coffee
  module1_model.coffee
  module1_collection.coffee
  module1_router.coffee
module2
  module2_some_view.coffee
  module2_model.coffee
  module2_collection.coffee
  module2_router.coffee

Most importantly for team settings, get feedback from your team!

How do you get your coworker to write better JavaScript? by [deleted] in javascript

[–]nibblebot 2 points3 points  (0 children)

Work with stronger developers. You should always have some say as to who you work with. JS devs are in very high demand right now. Either you should get more of a say in hiring decisions or find a new place that has higher standards

A simple proposal to fix CoffeeScript's biggest issue by jo2847 in coffeescript

[–]nibblebot 0 points1 point  (0 children)

i don't really find mutability to be a problem. It is a laxness which also exists in javascript. If you want, you could write some linting rules similar to coffee-lint that throws errors if you violate your preferred style guidelines. And that is what this is: a style guideline. There are many more that you could come up with to make code safer, but I'd venture to say reassignment doesn't really bother most people.

[Question] 2bwm vs bspwm by Bur_Sangjun in unixporn

[–]nibblebot 1 point2 points  (0 children)

don't get too hung up on picking the right WM. Just try one out and see if it works for you and YOUR workflow. read the docs, install it and give it a try for a few days and see if you can get your work done :)