I can automatically generate 99% of the programming blogger nicknames you’ll ever see!

Hello, everyone, today I am yu PI.

April Fool’s Day, let’s use technology for fun ~

preface

This morning, there is a programming technology public number friends small Giao said he now public number name is more complex, we can not remember, want to change a popular easy to remember the name.

Then the group of small partners on the crazy advice, what “code agi AO”, “programmer AGi AO”, “AGi AO learning programming” and so on, are some very common programming account nickname, but not to fool music.

Think so, it seems that a lot of friends have a tangle disease, that I am so willing to help the good youth, must not help everyone?

After analyzing the names of hundreds of public accounts, I found that many of the names were similar, so I gave up my lunch break and worked out a programming nickname generator. The use of back-end development, big data, artificial intelligence and other technologies, to help you take out in line with the programmer style of high quality name!

This Logo doesn’t have any special meaning, so we’re done

usage

It’s easy to use. If you need a strong personal IP and want the name to have a personal attribute, just fill in the first field and click to generate:

If you don’t need a personal IP, you can just fill in the second input box and click one button to generate:

Of course, you can keep the personal IP while indicating the direction of the account, both input fields can be filled!

You can also click “That’s it! “Button, gets a random name:

How about that? Is that very practical?

The principle of

Finally, a brief description of how to develop such a generator.

It is a pure front-end project, using Vue + ElementUI to develop the interface. The name is actually generated from the defined dictionary. Define a generator function that takes the user’s input (such as name name and domain direction) as arguments and replaces the variables in the string of the defined dictionary.

The function code is as follows:

export function getList(name, domain) {
  // Fill in the name and direction
  if (name && domain) {
    return [
      `${name}${domain}`.`${domain}${name}`.`${name}learn${domain}`]},// Enter only the name
  if (name) {
    return [
      `${name}`.` programmers${name}`]},// just fill in the direction
  if (domain) {
    return [
      Intelligent `${domain}`.`${domain}Bosom friend `,]}}Copy the code

Is it very simple?

The code is already open source, so it’s great to use it for practice, and you are welcome to improve the dictionary and come up with more good names!


Finally, happy April Fool’s Day!

The director’s project is good-Name.liyuprise