ICEfaces抄袭PrimeFaces

简介: 版权声明:本文为博主chszs的原创文章,未经博主允许不得转载。 https://blog.csdn.net/chszs/article/details/7254825 ICEfaces涉嫌抄袭PrimeFacesICEfaces 3发布后,本来我是很激动的,以为这是一个伟大的版本。
版权声明:本文为博主chszs的原创文章,未经博主允许不得转载。 https://blog.csdn.net/chszs/article/details/7254825

ICEfaces涉嫌抄袭PrimeFaces

ICEfaces 3发布后,本来我是很激动的,以为这是一个伟大的版本。但是,PrimeFaces的同行们发现了ICEfaces抄袭了PrimeFaces的部分代码。ICEfaces的行为真令人失望!


由于PrimeFaces和ICEfaces都是开源产品,因此抄袭在法律上没有问题。但是在道德上,则无法过关。抄袭的代码对比如下:

一、PrimeFaces PanelRenderer

package org.primefaces.component.panel;
 
import java.io.IOException;
import java.util.Map;
 
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
 
import org.primefaces.component.menu.Menu;
import org.primefaces.renderkit.CoreRenderer;
 
public class PanelRenderer extends CoreRenderer {
 
    @Override
    public void decode(FacesContext context, UIComponent component) {
        Panel panel = (Panel) component;
        String clientId = panel.getClientId(context);
        Map params = context.getExternalContext().getRequestParameterMap();
 
        //Restore toggle state
        String collapsedParam = params.get(clientId + "_collapsed");
        if(collapsedParam != null) {
            panel.setCollapsed(Boolean.valueOf(collapsedParam));
        }
 
        //Restore visibility state
        String visibleParam = params.get(clientId + "_visible");
        if(visibleParam != null) {
            panel.setVisible(Boolean.valueOf(visibleParam));
        }
 
        decodeBehaviors(context, component);
    }
 
    @Override
    public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
        Panel panel = (Panel) component;
 
        encodeMarkup(facesContext, panel);
        encodeScript(facesContext, panel);
    }
 
    protected void encodeScript(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = panel.getClientId(context);
 
        startScript(writer, clientId);
 
        writer.write("PrimeFaces.cw('Panel','" + panel.resolveWidgetVar() + "',{");
        writer.write("id:'" + clientId + "'");
 
        //Toggle configuration
        if(panel.isToggleable()) {
            writer.write(",toggleable:true");
            writer.write(",toggleSpeed:" + panel.getToggleSpeed());
            writer.write(",collapsed:" + panel.isCollapsed());
        }
 
        //Toggle configuration
        if(panel.isClosable()) {
            writer.write(",closable:true");
            writer.write(",closeSpeed:" + panel.getCloseSpeed());
        }
 
        //Options menu configuration
        if(panel.getOptionsMenu() != null) {
            writer.write(",hasMenu:true");
        }
 
        encodeClientBehaviors(context, panel);
 
        writer.write("});");
 
        endScript(writer);
    }
 
    protected void encodeMarkup(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = panel.getClientId(context);
        Menu optionsMenu = panel.getOptionsMenu();
 
        writer.startElement("div", null);
        writer.writeAttribute("id", clientId, null);
        String styleClass = panel.getStyleClass() != null ? Panel.PANEL_CLASS + " " + panel.getStyleClass() : Panel.PANEL_CLASS;
        styleClass = panel.isVisible() ? styleClass : styleClass + " ui-helper-hidden";
        writer.writeAttribute("class", styleClass, "styleClass");
        if(panel.getStyle() != null) {
            writer.writeAttribute("style", panel.getStyle(), "style");
        }
 
        encodeHeader(context, panel);
        encodeContent(context, panel);
        encodeFooter(context, panel);
 
        if(panel.isToggleable()) {
            encodeStateHolder(context, panel, clientId + "_collapsed", String.valueOf(panel.isCollapsed()));
        }
 
        if(panel.isClosable()) {
            encodeStateHolder(context, panel, clientId + "_visible", String.valueOf(panel.isVisible()));
        }
 
        if (optionsMenu != null) {
            optionsMenu.setPosition("dynamic");
            optionsMenu.setTrigger(clientId + "_menu");
            optionsMenu.setMy("left top");
            optionsMenu.setAt("left bottom");
 
            optionsMenu.encodeAll(context);
        }
 
        writer.endElement("div");
    }
 
    protected void encodeHeader(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String widgetVar = panel.resolveWidgetVar();
        UIComponent header = panel.getFacet("header");
        String headerText = panel.getHeader();
        String clientId = panel.getClientId(context);
 
        if(headerText == null && header == null) {
            return;
        }
 
        writer.startElement("div", null);
        writer.writeAttribute("id", panel.getClientId(context) + "_header", null);
        writer.writeAttribute("class", Panel.PANEL_TITLEBAR_CLASS, null);
 
        //Title
        writer.startElement("span", null);
        writer.writeAttribute("class", Panel.PANEL_TITLE_CLASS, null);
 
        if(header != null) {
            renderChild(context, header);
        } else if(headerText != null) {
            writer.write(headerText);
        }
 
        writer.endElement("span");
 
        //Options
        if(panel.isClosable()) {
            encodeIcon(context, panel, "ui-icon-closethick", clientId + "_closer", panel.getCloseTitle());
        }
 
        if(panel.isToggleable()) {
            String icon = panel.isCollapsed() ? "ui-icon-plusthick" : "ui-icon-minusthick";
            encodeIcon(context, panel, icon, clientId + "_toggler", panel.getToggleTitle());
        }
 
        if(panel.getOptionsMenu() != null) {
            encodeIcon(context, panel, "ui-icon-gear", clientId + "_menu", panel.getMenuTitle());
        }
 
        writer.endElement("div");
    }
 
    protected void encodeContent(FacesContext facesContext, Panel panel) throws IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
 
        writer.startElement("div", null);
        writer.writeAttribute("id", panel.getClientId() + "_content", null);
        writer.writeAttribute("class", Panel.PANEL_CONTENT_CLASS, null);
        if (panel.isCollapsed()) {
            writer.writeAttribute("style", "display:none", null);
        }
 
        renderChildren(facesContext, panel);
 
        writer.endElement("div");
    }
 
    protected void encodeFooter(FacesContext facesContext, Panel panel) throws IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
        UIComponent footer = panel.getFacet("footer");
        String footerText = panel.getFooter();
 
        if (footer != null || footerText != null) {
            writer.startElement("div", null);
            writer.writeAttribute("id", panel.getClientId(facesContext) + "_footer", null);
            writer.writeAttribute("class", Panel.PANEL_FOOTER_CLASS, null);
 
            if (footer != null) {
                renderChild(facesContext, footer);
            } else if (footerText != null) {
                writer.write(footerText);
            }
 
            writer.endElement("div");
        }
    }
 
    protected void encodeIcon(FacesContext context, Panel panel, String iconClass, String id, String title) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
 
        writer.startElement("a", null);
        writer.writeAttribute("href", "javascript:void(0)", null);
        writer.writeAttribute("class", Panel.PANEL_TITLE_ICON_CLASS, null);
        if(title != null) {
            writer.writeAttribute("title", title, null);
        }
 
        writer.startElement("span", null);
 
        if(id != null) {
            writer.writeAttribute("id", id, null);
        }
 
        writer.writeAttribute("class", "ui-icon " + iconClass, null);
 
        writer.endElement("span");
 
        writer.endElement("a");
    }
 
    protected void encodeStateHolder(FacesContext context, Panel panel, String name, String value) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
 
        writer.startElement("input", null);
        writer.writeAttribute("type", "hidden", null);
        writer.writeAttribute("id", name, null);
        writer.writeAttribute("name", name, null);
        writer.writeAttribute("value", value, null);
        writer.endElement("input");
    }
 
    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        //Do nothing
    }
 
    @Override
    public boolean getRendersChildren() {
        return true;
    }
}


二、IceFaces PanelRenderer
package org.icefaces.ace.component.panel;
 
import java.io.IOException;
import java.util.Map;
 
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
 
import org.icefaces.ace.component.menu.Menu;
import org.icefaces.ace.renderkit.CoreRenderer;
 
import org.icefaces.ace.util.Utils;
import org.icefaces.ace.util.JSONBuilder;
import org.icefaces.render.MandatoryResourceComponent;
 
@MandatoryResourceComponent(tagName="panel", value="org.icefaces.ace.component.panel.Panel")
public class PanelRenderer extends CoreRenderer {
 
    @Override
    public void decode(FacesContext context, UIComponent component) {
        Panel panel = (Panel) component;
        String clientId = panel.getClientId(context);
        Map params = context.getExternalContext().getRequestParameterMap();
 
        //Restore toggle state
        String collapsedParam = params.get(clientId + "_collapsed");
        if(collapsedParam != null) {
            panel.setCollapsed(Boolean.valueOf(collapsedParam));
        }
 
        //Restore visibility state
        String visibleParam = params.get(clientId + "_visible");
        if(visibleParam != null) {
            panel.setVisible(Boolean.valueOf(visibleParam));
        }
 
        decodeBehaviors(context, component);
    }
 
    @Override
    public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
        Panel panel = (Panel) component;
 
        encodeMarkup(facesContext, panel);
        encodeScript(facesContext, panel);
    }
 
    protected void encodeScript(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = panel.getClientId(context);
 
        writer.startElement("script", null);
        writer.writeAttribute("type", "text/javascript", null);
 
        writer.write(this.resolveWidgetVar(panel) + " = new ");
        JSONBuilder jb = JSONBuilder.create();
        jb.beginFunction("ice.ace.Panel")
            .item(clientId)
            .beginMap()
            .entry("visible", panel.isVisible());
 
        //Toggle configuration
        if(panel.isToggleable()) {
            jb.entry("toggleable", true);
            jb.entry("toggleSpeed", panel.getToggleSpeed());
            jb.entry("collapsed", panel.isCollapsed());
        }
 
        //Toggle configuration
        if(panel.isClosable()) {
            jb.entry("closable", true);
            jb.entry("closeSpeed", panel.getCloseSpeed());
        }
 
        //Options menu configuration
        if(panel.getOptionsMenu() != null) {
            jb.entry("hasMenu", true);
        }
 
        encodeClientBehaviors(context, panel, jb);
 
        jb.endMap().endFunction();
        writer.write(jb.toString());
 
        writer.endElement("script");
    }
 
    protected void encodeMarkup(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = panel.getClientId(context);
        Menu optionsMenu = panel.getOptionsMenu();
 
        writer.startElement("div", null);
        writer.writeAttribute("id", clientId, null);
 
        String styleClass = panel.getStyleClass() ;
        Utils.writeConcatenatedStyleClasses(writer, Panel.PANEL_CLASS, styleClass);
        String style = panel.getStyle();
        if(style != null) {
            writer.writeAttribute("style", style, "style");
        }
 
        encodeHeader(context, panel);
        encodeContent(context, panel);
        encodeFooter(context, panel);
 
        if(panel.isToggleable()) {
            encodeStateHolder(context, panel, clientId + "_collapsed", String.valueOf(panel.isCollapsed()));
        }
 
        if(panel.isClosable()) {
            encodeStateHolder(context, panel, clientId + "_visible", String.valueOf(panel.isVisible()));
        }
 
        if (optionsMenu != null) {
            optionsMenu.setPosition("dynamic");
            optionsMenu.setTrigger(clientId + "_menu");
            optionsMenu.setMy("left top");
            optionsMenu.setAt("left bottom");
 
            optionsMenu.encodeAll(context);
        }
 
        writer.endElement("div");
    }
 
    protected void encodeHeader(FacesContext context, Panel panel) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String widgetVar = this.resolveWidgetVar(panel);
        UIComponent header = panel.getFacet("header");
        String headerText = panel.getHeader();
        String clientId = panel.getClientId(context);
 
        if(headerText == null && header == null) {
            return;
        }
 
        writer.startElement("div", null);
        writer.writeAttribute("id", clientId + "_header", null);
        writer.writeAttribute("class", Panel.PANEL_TITLEBAR_CLASS, null);
 
        //Title
        writer.startElement("span", null);
        writer.writeAttribute("class", Panel.PANEL_TITLE_CLASS, null);
 
        if(header != null) {
            renderChild(context, header);
        } else if(headerText != null) {
            writer.write(headerText);
        }
 
        writer.endElement("span");
 
        //Options
        if(panel.isClosable()) {
            encodeIcon(context, panel, "ui-icon-closethick", clientId + "_closer");
        }
 
        if(panel.isToggleable()) {
            String icon = panel.isCollapsed() ? "ui-icon-plusthick" : "ui-icon-minusthick";
            encodeIcon(context, panel, icon, clientId + "_toggler");
        }
 
        if(panel.getOptionsMenu() != null) {
            encodeIcon(context, panel, "ui-icon-gear", clientId + "_menu");
        }
 
        writer.endElement("div");
    }
 
    protected void encodeContent(FacesContext facesContext, Panel panel) throws IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
 
        writer.startElement("div", null);
        writer.writeAttribute("id", panel.getClientId() + "_content", null);
        writer.writeAttribute("class", Panel.PANEL_CONTENT_CLASS, null);
        if (panel.isCollapsed()) {
            writer.writeAttribute("style", "display:none", null);
        }
 
        renderChildren(facesContext, panel);
 
        writer.endElement("div");
    }
 
    protected void encodeFooter(FacesContext facesContext, Panel panel) throws IOException {
        ResponseWriter writer = facesContext.getResponseWriter();
        UIComponent footer = panel.getFacet("footer");
        String footerText = panel.getFooter();
 
        if (footer != null || footerText != null) {
            writer.startElement("div", null);
            writer.writeAttribute("id", panel.getClientId(facesContext) + "_footer", null);
            writer.writeAttribute("class", Panel.PANEL_FOOTER_CLASS, null);
 
            if (footer != null) {
                renderChild(facesContext, footer);
            } else if (footerText != null) {
                writer.write(footerText);
            }
 
            writer.endElement("div");
        }
    }
 
    protected void encodeIcon(FacesContext context, Panel panel, String iconClass, String id) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
 
        writer.startElement("a", null);
        writer.writeAttribute("class", Panel.PANEL_TITLE_ICON_CLASS, null);
 
        writer.startElement("span", null);
 
        if(id != null) {
            writer.writeAttribute("id", id, null);
        }
 
        writer.writeAttribute("class", "ui-icon " + iconClass, null);
 
        writer.endElement("span");
 
        writer.endElement("a");
    }
 
    protected void encodeStateHolder(FacesContext context, Panel panel, String name, String value) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
 
        writer.startElement("input", null);
        writer.writeAttribute("type", "hidden", null);
        writer.writeAttribute("id", name, null);
        writer.writeAttribute("name", name, null);
        writer.writeAttribute("value", value, null);
        writer.endElement("input");
    }
 
    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        //Do nothing
    }
 
    @Override
    public boolean getRendersChildren() {
        return true;
    }
}

三、 PrimeFaces Panel.js
/**
 * PrimeFaces Panel Widget
 */
PrimeFaces.widget.Panel = function(cfg) {
    this.cfg = cfg;
    this.id = this.cfg.id;
    this.jqId = PrimeFaces.escapeClientId(this.id);
 
    if(this.cfg.toggleable) {
        this.toggler = $(this.jqId + '_toggler');
        this.toggleStateHolder = $(this.jqId + '_collapsed');
        this.content = $(this.jqId + '_content');
 
        this.setupToggleTrigger();
    }
 
    if(this.cfg.closable) {
        this.visibleStateHolder = $(this.jqId + "_visible");
 
        this.setupCloseTrigger();
    }
 
    if(this.cfg.hasMenu) {
        this.visibleStateHolder = $(this.jqId + "_visible");
 
        this.setupMenuTrigger();
    }
 
    this.postConstruct();
}
 
PrimeFaces.extend(PrimeFaces.widget.Panel, PrimeFaces.widget.BaseWidget);
 
PrimeFaces.widget.Panel.prototype.toggle = function() {
    if(this.cfg.collapsed) {
        this.toggler.removeClass('ui-icon-plusthick').addClass('ui-icon-minusthick');
        this.cfg.collapsed = false;
        this.toggleStateHolder.val(false);
    }
    else {
        this.toggler.removeClass('ui-icon-minusthick').addClass('ui-icon-plusthick');
        this.cfg.collapsed = true;
        this.toggleStateHolder.val(true);
    }
 
    var _self = this;
 
    this.content.slideToggle(this.cfg.toggleSpeed,
        function(e) {
            if(_self.cfg.behaviors) {
                var toggleBehavior = _self.cfg.behaviors['toggle'];
                if(toggleBehavior) {
                    toggleBehavior.call(_self, e);
                }
            }
        });
}
 
PrimeFaces.widget.Panel.prototype.close = function() {
    this.visibleStateHolder.val(false);
 
    var _self = this;
 
    $(this.jqId).fadeOut(this.cfg.closeSpeed,
        function(e) {
            if(_self.cfg.behaviors) {
                var closeBehavior = _self.cfg.behaviors['close'];
                if(closeBehavior) {
                    closeBehavior.call(_self, e);
                }
            }
        }
    );
}
 
PrimeFaces.widget.Panel.prototype.show = function() {
    $(this.jqId).fadeIn(this.cfg.closeSpeed);
 
    this.visibleStateHolder.val(true);
}
 
PrimeFaces.widget.Panel.prototype.setupToggleTrigger = function() {
    var _self = this,
    trigger = this.toggler.parent();
 
    this.setupTriggerVisuals(trigger);
 
    trigger.click(function() {_self.toggle();});
}
 
PrimeFaces.widget.Panel.prototype.setupCloseTrigger = function() {
    var _self = this,
    trigger = $(this.jqId + '_closer').parent();
 
    this.setupTriggerVisuals(trigger);
 
    trigger.click(function() {_self.close();});
}
 
PrimeFaces.widget.Panel.prototype.setupMenuTrigger = function() {
    var trigger = $(this.jqId + '_menu').parent();
 
    this.setupTriggerVisuals(trigger);
}
 
PrimeFaces.widget.Panel.prototype.setupTriggerVisuals = function(trigger) {
    trigger.mouseover(function() {$(this).addClass('ui-state-hover');})
            .mouseout(function() {$(this).removeClass('ui-state-hover');});
}

四、 IceFaces Panel.js
/**
 *  Panel Widget
 */
ice.ace.Panel = function(id, cfg) {
    this.id = id;
    this.cfg = cfg;
    this.jqId = ice.ace.escapeClientId(id);
 
    if(this.cfg.toggleable) {
        this.toggler = ice.ace.jq(this.jqId + '_toggler');
        this.toggleStateHolder = ice.ace.jq(this.jqId + '_collapsed');
        this.content = ice.ace.jq(this.jqId + '_content');
 
        this.setupToggleTrigger();
    }
 
    if(this.cfg.closable) {
        this.visibleStateHolder = ice.ace.jq(this.jqId + "_visible");
 
        this.setupCloseTrigger();
    }
 
    if(this.cfg.hasMenu) {
        this.visibleStateHolder = ice.ace.jq(this.jqId + "_visible");
 
        this.setupMenuTrigger();
    }
 
    if(!this.cfg.visible) {
        ice.ace.jq(this.jqId).css('display','none');
    }
}
 
ice.ace.Panel.prototype.toggle = function() {
    if(this.cfg.collapsed) {
        this.toggler.removeClass('ui-icon-plusthick').addClass('ui-icon-minusthick');
        this.cfg.collapsed = false;
        this.toggleStateHolder.val(false);
    }
    else {
        this.toggler.removeClass('ui-icon-minusthick').addClass('ui-icon-plusthick');
        this.cfg.collapsed = true;
        this.toggleStateHolder.val(true);
    }
 
    var _self = this;
 
    this.content.slideToggle(this.cfg.toggleSpeed,
        function(e) {
            if(_self.cfg.behaviors) {
                var toggleBehavior = _self.cfg.behaviors['toggle'];
                if(toggleBehavior) {
                    toggleBehavior.call(this, e);
                }
            }
        });
}
 
ice.ace.Panel.prototype.close = function() {
    this.visibleStateHolder.val(false);
 
    var _self = this;
 
    ice.ace.jq(this.jqId).fadeOut(this.cfg.closeSpeed,
        function(e) {
            if(_self.cfg.behaviors) {
                var closeBehavior = _self.cfg.behaviors['close'];
                if(closeBehavior) {
                    closeBehavior.call(this, e);
                }
            }
        }
    );
}
 
ice.ace.Panel.prototype.show = function() {
    ice.ace.jq(this.jqId).fadeIn(this.cfg.closeSpeed);
 
    this.visibleStateHolder.val(true);
}
 
ice.ace.Panel.prototype.setupToggleTrigger = function() {
    var _self = this,
    trigger = this.toggler.parent();
 
    this.setupTriggerVisuals(trigger);
 
    trigger.click(function() {_self.toggle();});
}
 
ice.ace.Panel.prototype.setupCloseTrigger = function() {
    var _self = this,
    trigger = ice.ace.jq(this.jqId + '_closer').parent();
 
    this.setupTriggerVisuals(trigger);
 
    trigger.click(function() {_self.close();});
}
 
ice.ace.Panel.prototype.setupMenuTrigger = function() {
    var trigger = ice.ace.jq(this.jqId + '_menu').parent();
 
    this.setupTriggerVisuals(trigger);
}
 
ice.ace.Panel.prototype.setupTriggerVisuals = function(trigger) {
    trigger.mouseover(function() {ice.ace.jq(this).addClass('ui-state-hover');})
            .mouseout(function() {ice.ace.jq(this).removeClass('ui-state-hover');});
}

ICEsoft公司在开发ACE组件集时,把PrimeFaces的代码直接复制过来,然后修改包名和类名,其它的代码都是照搬。这种行为真丢脸。

结论:ICEfaces的行为让人及其失望,用PrimeFaces的开发者的一句原话作为本文的总结:“您可以复制我们的代码,但永远也拿不走我们的激情!”。












目录
相关文章
|
人工智能 算法 前端开发
8月博主有奖征文,百分百得奖
8月博主有奖征文,百分百得奖
1650 35
8月博主有奖征文,百分百得奖
不要等到被抄袭才想到保护原创产品设计
对于您的每一件原创产品,都建议申请一个外观专利。
251 0
|
人工智能 算法 前端开发
7月博主有奖征文,百分百得奖
7月博主有奖征文,百分百得奖
1368 14
|
前端开发 安全 开发者
辛辛苦苦原创的网站,被抄袭了怎么办?
辛辛苦苦原创的网站,被抄袭了怎么办?
267 0
辛辛苦苦原创的网站,被抄袭了怎么办?
|
存储 JSON 网络协议
摊牌了,我是热心网友!
不管是 RPC 或者 HTTP,只要传输的内容是「对象」,要想在接收方还原出一摸一样的「对象」,那就需要序列化和反序列化。
摊牌了,我是热心网友!
|
搜索推荐 前端开发 JavaScript
为什么抄袭者的网站更容易收录?
并不是你网站有文章,是你自己写的,就一定会被搜索引擎认为这是一篇原创文章,因为其中还有很多技术方面的问题,搜索引擎还未能解决。记得我曾经在一个网站每天更新一篇文章,一篇文章的字数只有100字左右,但是文章页面非常简单,简单到整个页面没有JS、CSS、HTML代码,只有文字,但收录却非常好,而有一些网站,用JS、CSS、html代码把网站修饰的非常漂亮,但是发布的文章却不收录,这让我开始觉得代码与原创度有直接关系。
1337 0
师傅带徒弟 但是不能 教会徒弟饿死师傅!
  有两句古话:师傅带徒弟、教会徒弟饿死师傅。   这两句是不是有点矛盾呢?     先来看看师傅带徒弟。这个在以前是比较常见的。在工厂车间里,刚分配来的学生,一般都会找一个成手,手把手的来教他。
2891 0
|
Java 程序员 PHP
朋友帮写的软文,大家看下如何
现在的社会很浮躁,就连程序员这么个低调稳重的物种都开始浮躁起来了。每天论坛里讨论得最多的不是技术,而是在争辩哪种编程语言最好,甚至诋毁其他语言。 作为一名集才华与正义于一身的资深程序员,我觉得这样很不好,程序员宝宝们需要的是团结,是不断学习,是共同进步啊!因此,我有必要站在客观公正的角度,理性地和大家分享一下几种主流语言的优缺点,以及为什么说PHP是最好的语言(严肃脸)。
1145 0