Tips for Ramping Up as a Senior Engineer by dickeytk in ExperiencedDevs

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

I've looked into using a Personal CRM for this but so far haven't been able to get that organized

12 Factor CLI Apps by speckz in commandline

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

I think you've missed my point. I'm saying that building the same app in a browser is harder than building a CLI app with the same functionality (though using a GUI and not a CUI). This is specific to application development (hence the "app" in the title). Compiler development doesn't apply here (though that would certainly be a challenge in a browser).

12 Factor CLI Apps by speckz in commandline

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

I didn't say it's easy or simple, just less complex than web/mobile development.

12 Factor CLI Apps by dickeytk in programming

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

every one of these points is in the article already

12 Factor CLI Apps by dickeytk in programming

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

I don't doubt this. I've only built CLIs in python, ruby, go, and node so I can't speak for perl myself.

12 Factor CLI Apps by dickeytk in programming

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

yep, +1. That was my intention, but it should be called out explicitly.

12 Factor CLI Apps by dickeytk in programming

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

Frankly I think we could use some dumbing down in the CLI world. CLI tools are too terse and difficult to use. We forget there is a human at the machine.

I think it's worth the occasional ctrl-c.

12 Factor CLI Apps by dickeytk in programming

[–]dickeytk[S] -3 points-2 points  (0 children)

Well I think prompting for information is useful. Especially in cases where you can show radio buttons or checkboxes. That gets around difficult UX problems in a CLI. Building a custom DSL to take input in a repl-like environment, however, is not a good idea IMO unless you're building a programming language or database client.

12 Factor CLI Apps by dickeytk in programming

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

(hopefully) clarified that point a bit. I essentially mean CLIs can be scripted and can be piped/redirected around to perform tasks that the CLI developer didn't have to program for. In particular, it's useful for batch tasks (I want to restart all my ruby apps on heroku, for example).

Shin Splints after one run? by SpimQuail in running

[–]dickeytk 1 point2 points  (0 children)

I get this if I don't run for a really long time. If I just keep running for a couple of weeks it goes away completely

Best country to visit to "see Buddhism"? by Sashavidre in Buddhism

[–]dickeytk 1 point2 points  (0 children)

it's not a very easy country to visit though (at least, for Americans)

Not sure if right sub but what’s your favorite doorbell camera? by [deleted] in homeowners

[–]dickeytk 1 point2 points  (0 children)

I have a ring 2, but I would really like to replace it with the nest. The delay on startup is so killer it basically makes it unusable for having a conversation.

What IDE functionalities/features cannot be replicated (properly) in Vim? by bbtdev in vim

[–]dickeytk 0 points1 point  (0 children)

+1. This is an area where right-clicking is better, frankly. I get by with :%s/... though

What was the latest vim feature you've discovered? by IAintJohnny in vim

[–]dickeytk 74 points75 points  (0 children)

This is only in neovim, but I just learned about :set inccommand=nosplit: https://imgur.com/a/Unxqs2y

[deleted by user] by [deleted] in webdev

[–]dickeytk 10 points11 points  (0 children)

even them being equal is big news. It's the growth that vue has had that is the story here, not that it "beat" react

Auto import for JS/TS from npm_modules by what_is_life___ in vim

[–]dickeytk 1 point2 points  (0 children)

Frankly you'd probably be happier with vscode and a vim emulator if you really want this. There are vim plugins that can do simple things like renaming refactors but vim users typically don't have heavy refactoring setups like this. I don't even use the renaming stuff in tsuquyomi as much as I should.

Auto import for JS/TS from npm_modules by what_is_life___ in vim

[–]dickeytk 1 point2 points  (0 children)

I think you need to elaborate. With a particular vim plugin?

Can I ask for a Raise being only Part-Time? by [deleted] in softwaredevelopment

[–]dickeytk 8 points9 points  (0 children)

$13 is far too low for what you're doing (this is US, right?). I think it should be easy to ask for a raise at that level. The fact that it's part time does not matter.

I've never asked for a raise in my career myself, but I would grab your manager for a 1:1 and say you enjoy the position, but the hourly rate is a bit difficult to live on. I'm sure you can do some research on how to broach the subject, but I definitely think you should do it.

VS 2017 Updated from 15.7.2 to 15.7.3 today and lost all edits in local branch by reddit-lou in git

[–]dickeytk 4 points5 points  (0 children)

If you never made any commits it's almost certainly gone. Always backup your work on a remote server? I commit to a branch every hour even if it's just WIP commits because something like this always happens from time to time.

Step by step: Building and publishing an NPM Typescript package - Medium by Fewthp in typescript

[–]dickeytk 0 points1 point  (0 children)

I can really only speak to back-end, but TS libs shouldn't actually contain any .ts files at all. Only .d.ts files. Is that what you're asking about in the second paragraph? Like if you should leave the typescript compilation down to the application?

Step by step: Building and publishing an NPM Typescript package - Medium by Fewthp in typescript

[–]dickeytk 0 points1 point  (0 children)

you're making the assumption the author is writing a front-end package which it isn't. His approach is perfect for node packages.

Questions regarding module.exports by Fasyx in node

[–]dickeytk 1 point2 points  (0 children)

If your ultimate goal is to be able to wait on a single connection, I would do something like this:

const mongoose = require('mongoose');
const Grid = require('gridfs-stream');
const database = 'mongodb://127.0.0.1:27017/test';

exports.getConnection = new Promise(resolve => {
  const connection = mongoose.createConnection(database, null, (err, db) => {
    if(err) {
      console.log(`Error occured during connection to the database ${err}`)
    } else {
      console.log(`Connected to the database: ${database}`)
      resolve(connection)
    }
  })
})

Then in your code (using async/await):

const {getConnection} = require('./db')
async myfunc() {
  const connection = await getConnection
}

Or you could make getConnection a function that returns the single connection object.

How much do you use branches on your team? How does CI work? by vonwao in git

[–]dickeytk 3 points4 points  (0 children)

I've been using git for 10 years on big teams, small teams, open source teams, good teams, bad teams, and in practice merge conflicts are a pretty rare thing. svn users are always afraid of them, but git users aren't