首页 \ 问答 \ 要使用哪个框架/ CMS(Which framework/CMS to be used)

要使用哪个框架/ CMS(Which framework/CMS to be used)

我是一个在网络编程方面经验很少的业余爱好程序员,我每周花费20-30个小时,但随着夏天的到来,我有一些空闲时间去实验和学习。 任何人都可以告诉我,是否应该使用像(Kohana / cakePHP / CI)这样的框架,或者直接使用像drupal / joomla这样的CMS工具来制作一个类似于stackoverflow的网站,尽管规模较小。

谢谢你的帮助。


i am a hobby programmer with very little experience in web programming, i devote an average f 20-30 hours a week, but with summers coming i have some free time to experiment and learn. could anyone please tell me, whether a framework like (Kohana/cakePHP/CI) should be used or directly a CMS tool like drupal/joomla should be used to make a website something like stackoverflow, on a smaller scale though.

Thanks for your help.


原文:https://stackoverflow.com/questions/5804145
更新时间:2023-11-27 09:11

最满意答案

经过一番搜索,我找到了解决方案 。 它是/list (要知道要删除哪一行)和/drop

/drop [name[ name...]|id[ id...]]

丢弃一个片段,使其无效。 提供导入,类,方法或变量的名称或ID。 对于多个代码段,请使用空格分隔名称和ID 。 使用/list命令查看代码段的ID。

jshell> import java.lang.Math

jshell> /list

   1 : import java.lang.Math;

jshell> /drop 1

jshell> /imports
|    import java.io.*
|    import java.math.*
|    import java.net.*
|    import java.nio.file.*
|    import java.util.*
|    import java.util.concurrent.*
|    import java.util.function.*
|    import java.util.prefs.*
|    import java.util.regex.*
|    import java.util.stream.*

After some searching, I managed to find a solution. It's a combination of /list (to know which line to remove) and /drop.

/drop [name[ name...]|id[ id...]]

Drops a snippet, making it inactive. Provide either the name or the ID of an import, class, method, or variable. For more than one snippet, separate the names and IDs with a space. Use the /list command to see the IDs of code snippets.

jshell> import java.lang.Math

jshell> /list

   1 : import java.lang.Math;

jshell> /drop 1

jshell> /imports
|    import java.io.*
|    import java.math.*
|    import java.net.*
|    import java.nio.file.*
|    import java.util.*
|    import java.util.concurrent.*
|    import java.util.function.*
|    import java.util.prefs.*
|    import java.util.regex.*
|    import java.util.stream.*

相关问答

更多
  • 目前无法使用JShell创建模块,也不是JShell的目标 。 JShell功能 JShell API将提供所有JShell的评估功能。 输入到API的代码片段被称为"snippets" 。 jshell工具还将使用JShell完成API来确定何时输入不完整 (并且必须提示用户输入更多内容), 如果添加了分号 (在这种情况下,该工具将附加分号), 那么它将完成 如果完成请求时使用选项卡,如何完成输入。 代码片段必须符合以下JLS语法产品之一: 表达 声明 ClassDeclaration Interface ...
  • 经过一番搜索,我找到了解决方案 。 它是/list (要知道要删除哪一行)和/drop 。 /drop [name[ name...]|id[ id...]] 丢弃一个片段,使其无效。 提供导入,类,方法或变量的名称或ID。 对于多个代码段,请使用空格分隔名称和ID 。 使用/list命令查看代码段的ID。 jshell> import java.lang.Math jshell> /list 1 : import java.lang.Math; jshell> /drop 1 jshell ...
  • 早期版本的JShell有一个预定义的printf方法,但它从早期的访问版本中删除。 你当然可以定义你自己的printf方法: jshell> void printf(String format, Object... args) { System.out.printf(format, args); } 或者,您可以通过启动JShell来获得早期版本中的打印方法: jshell --start DEFAULT --start PRINTING (如果您仅使用 - 开始--start PRINTING ,则不 ...
  • 您可以使用此选项来使用javac命令行参数 ,例如考虑以下代码: String str = (String)"Hello" 正常启动jshell并使用相同的结果将导致: 同时您可以在警告( -Werror )上启用编译器错误,并在编译时使用-Xlint键,以警告您使用上述代码中使用的显式-Werror - jshell -C-Xlint:cast -C-Werror 并且相同的语句会导致Jshell编译器发出警告和错误: 虽然IMO,但就使用JShell -C命令行选项时所有标志应/不应使用的内容来说, ...
  • 这是一个普通的通常方法,为什么它会被创建为BiFunction ? 当然,除非你告诉它。 有一个名为jdk.jshell.JShell的顶级类,它拥有这个方法(或任何其他状态); 但你不能用它来声明方法引用: jshell> int add(int x, int y) { return x + y; } 这意味着这不起作用: jshell> BiFunction by = JShell::add; // or this::add 您必须在类中包装该add方法: jsh ...
  • 实际上还有一种方法。 点击CTRL + c : -> while(true) {} Killed. -> 它会杀死循环并且不会退出shell。 请注意,杀死进程完成需要大约1-2秒,如果你击中它两次它会杀死语句然后退出shell。 我在03-01-2016使用JDK 9 EA build 107(#4560) Actually there is a way. Just hit CTRL + c: -> while(true) {} Killed. -> It'll kill the loop a ...
  • 您可以在代码中使用eval之前使用addToClassPath ,如下所示: JShell js = JShell.create(); js.addToClasspath("path/to/add/to/the/classpath"); String code = "" + "try {" + " Class.forName(\"com.mysql.jdbc.Driver\").newInstance();" + "} catch (Exception ...
  • 据我所知(如果我错了,请更正我),你不能使用JShell 在特定包中创建一个类(在JShell中创建的类总是在默认包中)。 话虽这么说,你无法从JShell中访问你的包私有类。 这是“正常”的Java行为。 As far as i know (correct me if i am wrong), you cannot create a Class in a specific package using JShell (classes created within JShell are always in t ...
  • 似乎是一个未解决的问题: https : //bugs.openjdk.java.net/browse/JDK-8186876 Seems to be a unresolved issue: https://bugs.openjdk.java.net/browse/JDK-8186876

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。