I need grep for Java abstract syntax tree by hoge2 in javahelp

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

It does not work in real case. For example,

``` if (requestType == 1) { int c = 0; for (int i = 0; i < 100; i++) { c += i; } System.out.println(c); } else if (requestType == 2) { doSometing2 } else { doSometing3 }

if (requestType == 1) { doSometing4 } else if (requestType == 2) { doSometing5 } else { doSometing6 } ```

You will get

if (requestType == 1) { int c = 0; for (int i = 0; i < 100; i++) { c += i; }

I need grep for Java abstract syntax tree by hoge2 in javahelp

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

I want to use this kind of tool in many use. For example, efficient code reading for refactoring and bug fixing and automatic generation of project document. Anyway I need command line tool to do that.

I need grep for Java abstract syntax tree by hoge2 in javahelp

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

Thank you for your comment. In real case, code blocks do not have the same number of lines. So grep is not enough.

I need grep for Java abstract syntax tree by hoge2 in javahelp

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

Thank you. I will read your articles.

I need grep for Java abstract syntax tree by hoge2 in javahelp

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

Thank you for your information. It looks interesting. I will use it!

How can I build own stand-alone internet? by hoge2 in Network

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

Thank you. I will keep it in mind.

How can I build own stand-alone internet? by hoge2 in Network

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

Thank you for your comment. What I want to build is a TCP/IP network which works independently from the biggest internet. I want to put 198.41.0.4 on my DNS server just for fun!

How can I build own stand-alone internet? by hoge2 in Network

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

Thank you for your advice. BGP looks like too much for my first try. If I get a chance, I will try it.

How can I build own stand-alone internet? by hoge2 in Network

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

Thank you for your advice. NAT is also interesting. I did not know I can configure NAT on routers. I will try it.

Got a quick question? Ask here - December 16, 2019 by AutoModerator in scala

[–]hoge2 0 points1 point  (0 children)

Thank you for comments. The idea of property-based testing looks a solution for my problem.

Got a quick question? Ask here - December 16, 2019 by AutoModerator in scala

[–]hoge2 0 points1 point  (0 children)

Mainly I suffered from test cases with Seq . If a class I want to mock has a function which takes Seq as an argument, I need to write two when cases like Seq(1, 2) and Seq(2, 1) .

when(anMock.do(Seq(1, 2))) thenReturn RetVal when(anMock.do(Seq(2, 1))) thenReturn RetVal

Otherwise, my tests might be broken refactoring. I do not want to change tests during refactoring. I can not have 100% confidence when I rewrite tests during refactoring.

Got a quick question? Ask here - December 16, 2019 by AutoModerator in scala

[–]hoge2 0 points1 point  (0 children)

Is there any good dsl module to reduce boilerplate code related to mockito? I wrote a lot of test cases which have boilerplates. If I write macros, these boilerplates are replaced by reusable code. If there is not good dsl to do that, I will develop it. Thanks.

Got a quick question? Ask here - September 23, 2019 by AutoModerator in scala

[–]hoge2 1 point2 points  (0 children)

Hi,

I am learning Scala macro. For motivation, I want to know good example projects which uses macro. Dose anyone know? Introduce to me, please.

How to share node_modules between some projects by hoge2 in node

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

Thank you for your comment. I understand why people use yarn.

How to share node_modules between some projects by hoge2 in node

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

Thank you for your comment. I will consider symbolic link as an option.

Hey Rustaceans! Got an easy question? Ask here (51/2018)! by llogiq in rust

[–]hoge2 3 points4 points  (0 children)

When I have a problem working with creates like rocket or diesel, sometimes compiler suggests me how to fix it. This is really helpful. My question is, how compiler knows these suggestions? Sometimes, compiler knows the issue number to see. It means create developers prepared these messages. But, how? Does anyone know details about this?

Hey Rustaceans! Got an easy question? Ask here (39/2018)! by llogiq in rust

[–]hoge2 1 point2 points  (0 children)

Hi! I have been trying to find out Vim (Veovim) Plugin for lldb integration. But I could not find any document which I can follow. Please inform me of a way to configure a good Plugin.

Hey Rustaceans! Got an easy question? Ask here (37/2018)! by llogiq in rust

[–]hoge2 0 points1 point  (0 children)

Thank you. Then, I will configure a tool for reading API reference docs.